son_of_sillve |
Wysłany: Pon 19:05, 14 Maj 2007 Temat postu: Skrypt na skill rune |
|
Ten skrypt zrobiłem sam ^^
Chyba nie muszę nic tłumaczyć ;P
w folderze data/actions/scripts robimy plik o nazwie skillrune.lua
i wpisujemy tam to:
Kod: |
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2288 then
doPlayerAddSkillTry(cid,0,10000)
doPlayerAddSkillTry(cid,1,10000)
doPlayerAddSkillTry(cid,3,10000)
doPlayerAddSkillTry(cid,4,10000)
doPlayerAddSkillTry(cid,5,10000)
doPlayerAddSkillTry(cid,6,10000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Nagle poczułem dużą siłę!!",16)
else
doRemoveItem(item.uid,1)
end
return 1
end |
następnie oczywiście w actions.xml dodajemy:
Kod: |
<action itemid="2288" script="skillrune.lua" /> |
życzę miłego skillowania ^^ xD
cYa again... |
|