• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

otx3.8rebirth script manarune --

tuduras

Well-Known Member
Joined
Jun 4, 2017
Messages
340
Solutions
2
Reaction score
58
Hello, I have otx3.8rebirth and I look around manarune script based on MaxMana and nothing doesn't work. Do have someone script for otx ?
 
Solution
Take a look : Releases · mattyx14/otxserver (https://github.com/mattyx14/otxserver/releases) . It seems its 3.8 based on 1.3.But i dont have Scrript folder in /data.
And I see its revscript you send me .
best Regards

data/actions/manarune.lua
LUA:
local config = {
    min = 10,
    max = 12,
    color = 210,
    itemId = 2299,
    effect = 1
}

local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, 500)

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local targetPlayer = Player(target)
    if not targetPlayer then
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You can use this only on players!")
        return true
    end
    local conditionFound =...
OTX Server 3.8 :: Version " LEZICK " based tfs 1.3

LUA:
local manarune = Action()


local config = {
    min = 10,
    max = 12,
    color = 210,
    item = 2299,
    effect = 1
}

local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, 500)

function manarune.onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local targetPlayer = Player(target)
    if not targetPlayer then
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You can use this only on players!")
        return true
    end
    local conditionFound = player:getCondition(CONDITION_EXHAUST_HEAL)
    if conditionFound and conditionFound:getEndTime() > os.mtime() then
        return true
    end
    local min = (player:getMaxMana() / 100) * config.min
    local max = (player:getMaxMana() / 100) * config.max
    local healAmount = math.random(min, max)
    player:addMana(healAmount)
    Game.sendAnimatedText('+'..math.floor(healAmount)..'', player:getPosition(), config.color)
    player:getPosition():sendMagicEffect(config.effect)
    player:addCondition(exhaust)
    return true
end

manarune:id(config.item)
manarune:allowFarUse(true)
manarune:register()
 
Take a look : Releases · mattyx14/otxserver (https://github.com/mattyx14/otxserver/releases) . It seems its 3.8 based on 1.3.But i dont have Scrript folder in /data.
And I see its revscript you send me .
best Regards

data/actions/manarune.lua
LUA:
local config = {
    min = 10,
    max = 12,
    color = 210,
    itemId = 2299,
    effect = 1
}

local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, 500)

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local targetPlayer = Player(target)
    if not targetPlayer then
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You can use this only on players!")
        return true
    end
    local conditionFound = player:getCondition(CONDITION_EXHAUST_HEAL)
    if conditionFound and conditionFound:getEndTime() > os.mtime() then
        return true
    end
    local min = (player:getMaxMana() / 100) * config.min
    local max = (player:getMaxMana() / 100) * config.max
    local healAmount = math.random(min, max)
    player:addMana(healAmount)
    Game.sendAnimatedText('+'..math.floor(healAmount)..'', player:getPosition(), config.color)
    player:getPosition():sendMagicEffect(config.effect)
    player:addCondition(exhaust)
    return true
end

acitons.xml
LUA:
<action itemid="2299" script="manarune.lua" />
 
Solution
oo coool works ;p thanx Mate
Post automatically merged:

btw: PS : do you know maybe what number of color is Blue ? light blue
 
Last edited:
Back
Top