Sebastian Ching
New Member
Greetings ppls, i m tryng add manarune to my server, but isnt work , im using othire 0.0.3 and i m using
this script
[/LIST]
pls someone help me
this script
Code:
[LIST=1]
[*]local exhaust = createConditionObject(CONDITION_EXHAUST)
[*]setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
[*]
[*]function onUse(cid, item, fromPosition, itemEx, toPosition)
[*] local level = getPlayerLevel(cid)
[*] local mlevel = getPlayerMagLevel(cid)
[*] local mana_minimum = (level * 1) + (mlevel * 1) - 50
[*] local mana_maximum = (level * 1.2) + (mlevel * 1)
[*] local mana_add = math.random(mana_minimum, mana_maximum)
[*]
[*] doPlayerAddMana(cid, mana_add)
[*] doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
[*] doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
[*] doRemoveitem(item.uid)
[*] return TRUE
[*]end
[*]
pls someone help me