mm |
Wysłany: Śro 16:37, 22 Lis 2006 Temat postu: Manarune |
|
1. otwieramy ots/data/action i otwieramy action XML i wpisujemy tam
<action itemid="2276" script="manarune.lua" />
2. otwieramy ots/data/action/scripts
robimy notatnik z nazwom manarune i wpisujemy
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2276 and item.type > 1 then
doPlayerAddMana(cid,1000)
doChangeTypeItem(item.uid,item.type-1)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Aaaaah...",1)
else
doRemoveItem(item.uid,1)
end
return 1
end
to wszytko  |
|