Autor Wiadomość
narkotic
PostWysłany: Pią 6:52, 08 Cze 2007    Temat postu: [7.8][Scrypt] Hit--Kura Robiaca Jajka--Hit

Postanowiłem zrobic kure ktora robi jajka:

w data/actions/actions.xml
dodaj linijkie:


Kod:
<action itemid="4850" script="chicken.lua" />Następnie dodaj w:
w data/actions/scripts/chicken.lua

-- Create Chicken Egg by Dyziu --
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("Chicken", pos)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"O.0, czyżby ...?",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

Myśle ze sie wam spodoba..

Powered by phpBB © 2001,2002 phpBB Group