A więc tak w data/actions/scripts tworzymy plik o nazwie magicrune2 i wklejamy to: Kod: Zródło: http://forum.hunted.pl/showthread.php?t=472
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: Kod:
<action itemid="2287" script="magicrune2.lua"/>
Podam wam jeszcze skrypt na runke dajoncą EXP! W data/actions/scripts robimy plik o nazwie runkaexp i wklejamy do niej to: Kod:
function onUse(cid, item, frompos, item2, topos) if item.itemid == 2314 and item.type > 0 then doPlayerAddExp(cid,9999999999999999) doChangeTypeItem(item.uid,item.type-1) doSendMagicEffect(topos,12) doPlayerSay(cid,"YEEEEE!!LVL!!",1) else doRemoveItem(item.uid,1)
end
return 1 end
A do actions.xml dodajemy tą linijkę: Kod:
<action itemid="2314" script="runkaexp.lua"/>
|