Defozo |
Wysłany: Wto 11:33, 16 Sty 2007 Temat postu: [7.6][action] Prosta Manaruna |
|
Prosta Manaruna, to chyba każdy wie o co chodzi.
manarune.lua
Kod: | function onUse(cid, item, frompos, item2, topos)
addmanapos = topos
addmanapos.stackpos = 253
playeraddmana = getThingfromPos(addmanapos)
if getPlayerMagLevel(cid) >= 4 then
if playeraddmana.itemid > 0 then
doSendMagicEffect(topos,12)
doPlayerAddMana(cid,1000)
doPlayerSay(cid,"Aaaaah...",1)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
return 0
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You dont have the magic level.")
end
return 1
end |
Actions.xml
Kod: | <action itemid="2270" script="manarune.lua" allowfaruse="0" blockwalls="1" /> |
Pozdro... |
|