- World Of Tibia http://www.wot.pun.pl/index.php - Skrypty http://www.wot.pun.pl/viewforum.php?id=12 - [8.1]Jajeczko Niespodzianka http://www.wot.pun.pl/viewtopic.php?id=59 |
Punish - 2008-12-31 22:40:15 |
Skrypt Nie mój prawdziwy temat :http://tibia.net.pl/items/30699-jajko-niespodzianka-8-1-a.html Kod:function onUse(cid, item, frompos, item2, topos) prize = math.random(1, 5) if prize == 1 then doPlayerAddItem(cid,2437, 1) doSendMagicEffect(topos,12) doPlayerRemoveItem(cid,4850, 1) elseif prize == 2 then doPlayerAddItem(cid,2646, 1) doSendMagicEffect(topos,12) doPlayerRemoveItem(cid,4850, 1) elseif prize == 3 then doPlayerAddItem(cid,2523, 1) doSendMagicEffect(topos,12) doPlayerRemoveItem(cid,4850, 1) elseif prize == 4 then doPlayerAddItem(cid,2471, 1) doSendMagicEffect(topos,12) doPlayerRemoveItem(cid,4850, 1) elseif prize == 5 then doPlayerAddItem(cid,2408, 1) doSendMagicEffect(topos,12) doPlayerRemoveItem(cid,4850, 1) end return 1 end potem w data\actions/actions.xml dodajemy Kod:<action itemid="4850" script="jajko.lua" /> Teraz Wytłumacze co i Jak |