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
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
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
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
<action itemid="2299" script="manarune.lua" />
oo coool works ;p thanx Mate
Post automatically merged:
btw: PS : do you know maybe what number of color is Blue ? light blue