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

spells problem please help REP++

brank50

New Member
Joined
Dec 14, 2009
Messages
78
Reaction score
1
this is what happened on my server and the spells work but i just dont know why it says this and i beleive this might be why my server crashes please help i will REP++

[26/07/2011 20:00:37] [Error - Spell Interface]
[26/07/2011 20:00:37] In a timer event called from:
[26/07/2011 20:00:37] data/spells/scripts/attack/dsw.lua:onCastSpell
[26/07/2011 20:00:37] Description:
[26/07/2011 20:00:37] (luaDoCombat) Creature not found
 
Make the timer event return true if creature is not present. Right now it most likely don't check if creature is recognized at all and error message appears.

Sample: You activate a spell, a "curse" on enemy player,

This curse lasts for 10 seconds, each second dealing 50 damage.

However: After 6 seconds, the character you cursed dies. He is no longer online (recognized by the script).

But the script will continue for (10 - 6 = 4) seconds, dealing damage to the creature. Buut daarnn.. ERROR pops up, creature not found! Because he is offline. The creature simply cant be found. (sadface).

So you should make a check on your events that makes sure that the creature is present before executing the character part of the script, else return true.
 
Back
Top