• 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!

never ending Super Uh

tuduras

Member
Joined
Jun 4, 2017
Messages
76
Solutions
1
Reaction score
11
Helloo,
how can I make forever super uh ?
Here my script:

LUA:
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 health_minimum = (level * 7.3) + (mlevel * 7.0) * 1.75
    local health_maximum = (level * 7.85) + (mlevel * 10.0) * 1.75
    local health_add = math.random(health_minimum, health_maximum)
    
    doCreatureAddHealth(cid, health_add)
    doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
    return TRUE
end
 
Solution
Helloo,
how can I make forever super uh ?
Here my script:

LUA:
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 health_minimum = (level * 7.3) + (mlevel * 7.0) * 1.75
    local health_maximum = (level * 7.85) + (mlevel * 10.0) * 1.75
    local health_add = math.random(health_minimum, health_maximum)
  
    doCreatureAddHealth(cid, health_add)
    doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
    return TRUE
end
in config.lua there
removeChargesFromRunes =...
Helloo,
how can I make forever super uh ?
Here my script:

LUA:
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 health_minimum = (level * 7.3) + (mlevel * 7.0) * 1.75
    local health_maximum = (level * 7.85) + (mlevel * 10.0) * 1.75
    local health_add = math.random(health_minimum, health_maximum)
  
    doCreatureAddHealth(cid, health_add)
    doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
    return TRUE
end
in config.lua there
removeChargesFromRunes = true
turn it into
removeChargesFromRunes = false
 
Solution
Tell us what OTS engine you use?

LUA:
    if item.type > 1 then
        doItemSetAttribute(item.uid, "charges", item.type)
    end

This is an onUse script, so I understand that you mean the number of charges.
 
Back
Top