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

Help with Roxor server

malice987

New Member
Joined
Sep 22, 2008
Messages
144
Reaction score
0
Ok i just started a Roxor server and manarune works just fine but Donated Manarune ( called VIP Manarune in game) dosent seem to work. Every time i try and use the Donated Manarune in game it says sorry not possible or somthing like that, please help

[25/08/2009 18:37:27] >> Loading script systems
[25/08/2009 18:37:31] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua

http://otland.net/f16/roxor-help-47628/ <<<<<<more info
Cheers,
Malice
 
Last edited:
In scripts Custom

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 25000)
doCreatureSay(cid,"Ahh, VIP Manarune rocks.!!",19)
return doCombat(cid, combat, var)
end

Spell.xml

<rune name="Donated Manarune" id="2299" aggressive="0" charges="10" lvl="100" maglv="5" mana="250" soul="0" exhaustion="1" prem="0" enabled="1" allowfaruse="1" script="custom/Donated Manarune.lua"></rune>
 
In scripts Custom

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 25000)
doCreatureSay(cid,"Ahh, VIP Manarune rocks.!!",19)
return doCombat(cid, combat, var)
end

Spell.xml

<rune name="Donated Manarune" id="2299" aggressive="0" charges="10" lvl="100" maglv="5" mana="250" soul="0" exhaustion="1" prem="0" enabled="1" allowfaruse="1" script="custom/Donated Manarune.lua"></rune>


Lua:
-- >>CONFIG<< --by Wlj-of-otland.net--
local MIN_MANA_GAIN = 24000 -- How much is the lowest mana you can possibly gain (If your heal less than that amount of mana you will get that mana instead) ?
local MIN_MANA_RAND = 1000 -- The minimum amount of mana to be given (random)
local MAX_MANA_RAND = 26000 -- The maximum amount of mana to be given (random)
local ACCEPT_LUCK = true -- Should it be possible to get lucky and receive extra mana? true, false
local MAG_LEVEL_MULTI = 2 -- How many times should Magic Level be multiplied, to be added to the mana formula? 1 = same, 0 = nothing etc
local LEVEL_MULTI = 2 -- How many times should Level be multiplied, to be added to the mana formula? 1 = same, 0 = nothing etc 
local MAGIC_EFFECT = CONST_ME_SLEEP -- Magic effect that will be casted on the player each time it heals the mana.
local ANIMATION_COLOR = 37 -- What animation color will there be when you heal (Comes over player showing how much mana you healed) 1 - 255 (?)
local HEAL_TIMES = 1 -- How many times should you be healed when using the manarune once? Atleast 1
local FIRST_HEAL_DELAY = 0 -- How long time will it take before it heals FIRST time? In milliseconds
local HEAL_DELAY = 1000 -- How long time will it take before it heals one? In milliseconds
-- >>CONFIG<< --


local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local exhaust = createConditionObject(CONDITION_EXHAUSTED)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, HEAL_TIMES * HEAL_DELAY + FIRST_HEAL_DELAY)
        
function onCastSpell(cid, var)
doTargetCombatCondition(0, cid, exhaust, CONST_ME_NONE)
    local function doHealMana(parameters)
        local random = math.random(MIN_MANA_RAND, MAX_MANA_RAND)
        if ACCEPT_LUCK == true then
            local luck = math.random(1, 100)
            if luck >= 90 then
                random = random * 2
            elseif luck == 50 then
                random = random * 3
            end
        end
        local formula = (getPlayerLevel(cid) * LEVEL_MULTI) + (getPlayerMagLevel(cid) * MAG_LEVEL_MULTI) + random
        local manaGain = math.max(MIN_MANA_GAIN, formula)
        doPlayerAddMana(cid, manaGain)
        doCreatureSay(cid,"Hail VIP mana rune!",19)
        doSendAnimatedText(getPlayerPosition(cid), manaGain, ANIMATION_COLOR)
        doSendMagicEffect(getPlayerPosition(cid), MAGIC_EFFECT)
        doCombat(parameters.cid, parameters.combat, parameters.var)
    end

    local times = HEAL_TIMES
    local parameters = {cid = cid, combat = combat, var = var}
    while times > 0 do
        if times == HEAL_TIMES then
            addEvent(doHealMana, FIRST_HEAL_DELAY, parameters)
        else
            addEvent(doHealMana, HEAL_DELAY * times, parameters) 
        end
        times = times - 1
    end
end


rip me :):)
 
more errors




[25/08/2009 21:02:13] >> Loading script systems

[25/08/2009 21:02:14] Lua Script Error: [Test Interface]
[25/08/2009 21:02:14] data/spells/scripts/custom/Donated Manarune.lua

[25/08/2009 21:02:14] luaCreateConditionObject(). Condition not found

[25/08/2009 21:02:14] Lua Script Error: [Test Interface]
[25/08/2009 21:02:14] data/spells/scripts/custom/Donated Manarune.lua

[25/08/2009 21:02:14] luaSetConditionParam(). Condition not found

[25/08/2009 21:02:14] Lua Script Error: [Spell Interface]
[25/08/2009 21:02:14] data/spells/scripts/custom/Donated Manarune.lua

[25/08/2009 21:02:14] luaCreateConditionObject(). Condition not found

[25/08/2009 21:02:14] Lua Script Error: [Spell Interface]
[25/08/2009 21:02:14] data/spells/scripts/custom/Donated Manarune.lua
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_CONST_SLEPP)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 9000, 0, 19000)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

giv ip of serv too ;D
 
Still

[25/08/2009 21:15:05] >> Loading script systems

[25/08/2009 21:15:05] Lua Script Error: [Test Interface]
[25/08/2009 21:15:05] data/spells/scripts/custom/Donated Manarune.lua

[25/08/2009 21:15:06] luaCreateConditionObject(). Condition not found

[25/08/2009 21:15:06] Lua Script Error: [Test Interface]
[25/08/2009 21:15:06] data/spells/scripts/custom/Donated Manarune.lua

[25/08/2009 21:15:06] luaSetConditionParam(). Condition not found

[25/08/2009 21:15:06] Lua Script Error: [Spell Interface]
[25/08/2009 21:15:06] data/spells/scripts/custom/Donated Manarune.lua

[25/08/2009 21:15:06] luaCreateConditionObject(). Condition not found

[25/08/2009 21:15:06] Lua Script Error: [Spell Interface]
[25/08/2009 21:15:06] data/spells/scripts/custom/Donated Manarune.lua

[25/08/2009 21:15:06] luaSetConditionParam(). Condition not found
[25/08/2009 21:15:08] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua


reckon it has somthing to do with

<rune name="Donated Manarune" id="2299" aggressive="0" charges="10" lvl="100" maglv="5" mana="250" soul="0" exhaustion="1" prem="0" enabled="1" allowfaruse="1" script="custom/Donated Manarune.lua"></rune>



also the server isnt up yet, my scripter is away so im just getting rid of most of the bugs lol, ill pm it to you when its up
 
what version of the roxor distro are you using?

make sure this is in your healing folder for spells under donated manarune.lua

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 2000)
return doCombat(cid, combat, var)

end

local area = createCombatArea(AREA_MANAWAVE5)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 
Last edited:
RoXoR Server 8.50 (v0.3) (TFS v0.2.5) GUI


now its even more screwed, when it gets to loading scripts its debugs. and befor it was in my custom secttion but i just put it into my healing :/
 
RoXoR Server 8.50 (v0.3) (TFS v0.2.5) GUI


now its even more screwed, when it gets to loading scripts its debugs. and befor it was in my custom secttion but i just put it into my healing :/

tested

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_CONST_SLEPP)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 9000, 0, 19000)

function onCastSpell(cid, var)
        return doCombat(cid, combat, var)
end
 
ok... i ran that in healing not custom and this came up..

[25/08/2009 21:36:21] >> Loading script systems
[25/08/2009 21:36:22] Warning: [Event::checkScript] Can not load script. /scripts/custom/Donated Manarune.lua
[25/08/2009 21:36:22] cannot open data/spells/scripts/custom/Donated Manarune.lua: No such file or directory
[25/08/2009 21:36:24] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua

then i ran it in custom and this came up

[25/08/2009 21:41:46] >> Loading script systems
[25/08/2009 21:41:49] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua
 
Last edited:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_SLEEP)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 26000) 
return doCombat(cid, combat, var)
end
 
ffs! sadly

[25/08/2009 21:46:40] >> Loading script systems
[25/08/2009 21:46:43] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua

also is this good?

<!-- Custom Runes -->
<rune name="VIP Manarune" id="2299" allowfaruse="1" charges="100" lvl="8" exhaustion="0" maglv="3" aggressive="0" needtarget="1" blocktype="solid" script="Donated Manarune"/>


Edit: i chaged shit around to custom ect now this comes up

[25/08/2009 21:51:17] Warning: [Event::checkScript] Can not load script. /scripts/Donated Manarune
[25/08/2009 21:51:17] cannot open data/spells/scripts/Donated Manarune: No such file or directory
[25/08/2009 21:51:20] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua


Well im going to sleep can you try and see whats wrong whilt im asleep thanks :)
 
Last edited:
ffs! sadly

[25/08/2009 21:46:40] >> Loading script systems
[25/08/2009 21:46:43] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua

also is this good?

<!-- Custom Runes -->
<rune name="VIP Manarune" id="2299" allowfaruse="1" charges="100" lvl="8" exhaustion="0" maglv="3" aggressive="0" needtarget="1" blocktype="solid" script="Donated Manarune"/>


Edit: i chaged shit around to custom ect now this comes up

[25/08/2009 21:51:17] Warning: [Event::checkScript] Can not load script. /scripts/Donated Manarune
[25/08/2009 21:51:17] cannot open data/spells/scripts/Donated Manarune: No such file or directory
[25/08/2009 21:51:20] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua


Well im going to sleep can you try and see whats wrong whilt im asleep thanks :)

<rune name="VIP mana rune" id="2299" aggressive="0" charges="0" lvl="9" maglv="3" mana="100" soul="0" exhaustion="1000" prem="1" enabled="1" allowfaruse="1" script="healing/Donated Manarune.lua"></rune>
 
Ok... i now have in spells.xml i have this \/

<rune name="VIP mana rune" id="2299" aggressive="0" charges="0" lvl="9" maglv="3" mana="100" soul="0" exhaustion="1000" prem="1" enabled="1" allowfaruse="1" script="healing/Donated Manarune.lua"></rune>


and its bring an error report as this \/

[26/08/2009 16:43:10] >> Loading script systems
[26/08/2009 16:43:13] Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua


Even though spells.xml says its in healng not donated.....

But.. in game i can use a Vip manarune BUT it doesnt give me any mana but it puts my ml up.....

Also when i use it all these ZZZZZZ's come up in read wrighting below "Vip mana rune rocks" :/

please help :D
 
Back
Top