mm |
Nowy |
|
|
Dołączył: 22 Lis 2006 |
Posty: 10 |
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Skąd: z 20 cm od monitora |
|
|
 |
 |
 |
|
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  |
|