son_of_sillve |
Wysłany: Nie 13:18, 13 Maj 2007 Temat postu: Skrypt na latającą miotłę |
|
use with na miotłę i na miejsce gdzie chcemy lecieć...
w data/actions/scripts robimy plik o nazwie miotlaziuu.lua i wklejamy to:
Kod: |
function onUse(cid, item, frompos, item2, topos)
npos = {x=topos.x, y=topos.y, z=topos.z}
if topos.x < 10000 then
doSendMagicEffect(topos,13)
doPlayerSay(cid,"Ziuuuuuu!!!",16)
doTeleportThing(cid,npos)
else
doPlayerSendCancel(cid, "Nie telepniesz sie do plecaka :P")
end
return 1
end
|
następnie w data/actions/actions.xml dodajemy:
Kod: |
<action itemid="2324" script="miotlaziuu.lua" allowfaruse="1" /> |
miłego latania see you... |
|