Zwik - 2008-07-11 21:51:13

w data/actions/scripts tworzymy plik o nazwie magicrune2 i wklejamy to:

Spoiler:

function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2287 and item.type > 0 then
doPlayerAddMana(cid,10000)
doPlayerAddHealth(cid,10000)
doPlayerAddSkillTry(cid,1,200000)
doPlayerAddSkillTry(cid,2,200000)
doPlayerAddSkillTry(cid,3,200000)
doPlayerAddSkillTry(cid,4,200000)
doPlayerAddSkillTry(cid,5,200000)
doPlayerAddSkillTry(cid,6,200000)
doPlayerAddSkillTry(cid,7,200000)
doPlayerAddItem(cid,2160,100)
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,13)
doPlayerSay(cid,"Big Pczka!!!",1)
else
doRemoveItem(item.uid,1)

end

return 1
end

A do actions/actions.xml dodajemy tą linijke:


Spoiler:

<action itemid="2287" script="magicrune2.lua"/>

www.forumgrajacychinaczej.pun.pl www.grascooby.pun.pl www.gwardiasqd.pun.pl www.importtuning.pun.pl www.kibicebukowna.pun.pl