Autor Wiadomość
vilagie
PostWysłany: Śro 18:35, 22 Mar 2006    Temat postu: Runa telepotrujaca na wspolrzedne

Very Happy w data/actions/scripts

function onUse(cid, item, frompos, item2, topos)
player1pos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253}
player1 = getThingfromPos(player1pos)
if player1.itemid > 0 then
temple = {x=135, y=55, z=7} -- wspolzedne
doSendMagicEffect(topos,12)
doTeleportThing(cid,temple)
doSendMagicEffect(temple,12)
return false
else
doSendMagicEffect(frompos,2)
return 0
end
end

w data/actions/actions.xml

<action itemid="3095" script="trune.lua" />

Powered by phpBB © 2001,2002 phpBB Group