- Dołączył
- Kwiecień 4, 2008
- Posty
- 114
- Liczba reakcji
- 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 :
Kod:
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
Wirowi nada?em action ID 2002.Wpis w movements.xml :
Kod:
<movevent type="StepIn" itemid="8632" event="script" value="cave1.lua"/>
<movevent type="StepIn" actionid="2002" event="script" value="cave1.lua"/>
Masz rep++. Tylko teraz jak wejd? w wir to zostaje mi outfit p?ywaka, ale to ju? sobie poprawie ^^