Rybok112
|
Wysłany:
Pią 15:04, 13 Paź 2006 Temat postu: Z jajka Hydry wykluwa sie Hydra :D |
|
a wiec w ots/data/actions/actions.xml
musizmy dopisac:
<action itemid="4850" script="hydra.lua" />
i dac zapisz:P
Potem wots/data/scripts
robimy plik hydra.lua a w nim piszemy
-- Make Hydra by Pitbull --
function onUse(cid, item, frompos, item2, topos)
pos = getPlayerPosition(cid)
if getTilePzInfo(topos) == 0 then
if getTilePzInfo(pos) == 0 then
if item.itemid == 4850 then
doSummonCreature("Hydra", pos)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Amgad",1)
doRemoveItem(item.uid,item.type)
else
doPlayerSendCancel(cid,"You cannot use that.")
end
else
doPlayerSendCancel(cid,"You Cannot use this Egg while you are in a Protect Zone.")
end
else
doPlayerSendCancel(cid,"You cannot use this Egg on a protect zone.")
end
return 1
end
I juz moze sie wykluwac hudra z jej jajek na naszym otsie :) |
|