Super MR

Status
Zamknięty.

bazant12

Active User
Zarejestrowany
Dołączył
Kwiecień 20, 2010
Posty
108
Liczba reakcji
4
Witam!

Wchodzimy do /data/actions/scripts/ tworzymy tam sMR.lua i wrzucamy do niego to :
---By Bazant
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerLevel(cid) < 50) then
doCreatureSay(cid, "You need 50 level to use it!" , TALKTYPE_ORANGE_1)
else
if(os.time() > getPlayerStorageValue(cid, 1)) then
setPlayerStorageValue(cid, 1, os.time() + 1)
local mana = math.random(20000, 25000)
doCreatureAddMana(cid, mana)
doSendAnimatedText(getCreaturePosition(cid), mana, 85)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
else
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exhausted.")
end
end
return true
end
Nast?pnie wchodzimy do /data/actions/actions.xml i wklejamy tam to:
<action itemid="ID RUNY" event="script" value="manarune.lua"/>
Manaruna dodaje od 20k many do 25k many
 
Status
Zamknięty.
Back
Do góry