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

Lua Spells Crashing Server 0.3.6

Ceejzor

Murica Born N Raised!
Joined
Jul 5, 2008
Messages
2,295
Reaction score
188
Location
USA - Philippines
Hi, I'm using Frankfarmer's released RL Map I got everything set up and alot of quest's working but it seem's when I use "Support" spells ex. Utani hur, Utani Gran Hur, Utamo vita my server crashs. I get no console error's just my character freezes and I try to exit log then log back in him but it stop's everyone from logging in.

Any suggestions? I had two of my friend's check out the spell they said it looked fine but I will paste it here just incase.


EDIT: Most my spells are not working!

haste.lua
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 33000)
setConditionFormula(condition, 0.3, -24, 0.3, -24)
setCombatCondition(combat, condition)

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

strong haste.lua
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 22000)
setConditionFormula(condition, 0.7, -56, 0.7, -56)
setCombatCondition(combat, condition)

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

Any problems? :huh:
 
Last edited:
these spells are calculated off level, not maglevel ;oo
but ok probably it was having issues in adding spent mana.
 
Why i got you in here do you know how I can fix these problems?

PHP:
[09/02/2010 16:31:10] [Spawn::addMonster] Cannot find "Stonecracker"
[09/02/2010 16:31:10] [Spawn::addMonster] Cannot find "Snake"
[09/02/2010 16:31:10] [Spawn::addMonster] Cannot find "Snake"
[09/02/2010 16:31:10] [Spawn::addMonster] Cannot find "Snake"
 
Check whether you have them added in monsters.xml, existing in data/monsters/<path and filename from monsters.xml>, and make sure that XML syntax is not broken.
 
Check whether you have them added in monsters.xml, existing in data/monsters/<path and filename from monsters.xml>, and make sure that XML syntax is not broken.

I've fixed a ton of console error's with your help but one that won't go away is this "[09/02/2010 17:51:43] [Spawn::addMonster] Cannot find "Demon (Goblin)"

I've searched in monsters.xml for it and my monster folder's and there is no such thing why is this problem occuring?
 
Because it's in your spawn file, from the mapeditor. You need to create a Demon (Goblin). (Basically just a goblin with the looktype of a demon)
 
Back
Top