• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

RevScripts Manarune tibia 8.6

Analfabetaa

New Member
Joined
Jan 26, 2019
Messages
16
Reaction score
0
Siema chcialbym prosic was o skrypt na manarune co leczy wraz z wzrostem levela.
Z gory dziekuje.


Hello, I would like to ask you for a script on the manarune, which heals along with the increase in level.
Thank you in advance.
 
Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 2000))

function onUse(cid, item, fromPosition, itemEx, toPosition)
    local level = getPlayerLevel(cid)
    local mlevel = getPlayerMagLevel(cid)
    local hp_minimum = (level * 2.9) + (mlevel * 1) - 50
    local hp_maximum = (level * 5.0) + (mlevel * 1)
    local hp_add = math.random(hp_minimum, hp_maximum)
 
    if getPlayerLevel(cid) > 700 then 
    doPlayerAddHealth(cid, hp_add)
    doRemoveItem(item.uid, 1)
    doSendMagicEffect(getThingPos(itemEx.uid), 5)
        else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 700 lvl to use this.")
    return TRUE
      
    end
end

aktualnie konczy się przedmiot jak chcesz zeby nie znikał to usun linijke doRemoveItem(item.uid, 1)
 
Back
Top