Hitsugaya
Active User
- Joined
- Apr 4, 2008
- Messages
- 114
- Reaction score
- 3
Witam. Chcia?em napisa? skrypt, kt?ry powoduj? , ?e kiedy wp?yniemy na wir wodny to nas teleportuje.
Ale co? nie bardzo chce zaskoczy? Wirowi nada?em action ID 2002.
Wpis w movements.xml :
Code:
function onStepIn(cid, item, position, fromPosition)
local position = getCreaturePosition(cid)
local pos = {x = 1419 ,y = 464 ,z = 7}
if(item.actionid == 2002) and (item.id == 8632) and position == pos then
local pos = {x = 1410 ,y = 478 ,z= 8}
doTeleportThing(cid, pos)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Wow ! Odkryles/as tajemna pieczare!")
end
return TRUE
end
Wpis w movements.xml :
Code:
<movevent type="StepIn" itemid="8632" event="script" value="cave1.lua"/>
<movevent type="StepIn" actionid="2002" event="script" value="cave1.lua"/>