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

TFS 0.3.6 crashing randomly

Delvire

°£°
Joined
Feb 24, 2008
Messages
236
Reaction score
9
What can It be? It happens at any time... sometimes I still hosting for more than 21 hours and I get no problems, but another hour, It simply crash... without any error message in the console...

Waiting for help, sorry for bad english
 
maybe there's a bug and some players are abusing of it, that happened on mine, i found 2 bug's the house one and another in demon oak
the house is that if you say aleta sio, som or grav and put a "*" on it the server automatically crash
the other one of the demon oak is that when a player is doing this quest an another player from outside kill him the server crash too
those are 2 reasons that happened to me
hope it help you
 
maybe what rago14 said or maybe because you put some data of one erver to another or stuff like that better check good luck!
 
Where in sources do i fix it and what i write :p?

Do you use 0.3.6?


And btw in house.cpp finde this:
Code:
	replaceString(outExp, "*", ".*");
	replaceString(outExp, "?", ".?");
and edit to this
Code:
	replaceString(outExp, "*", "");
	replaceString(outExp, "?", "");
 
Last edited:
Yes, paralyze rune.lua is one of them :S

[28/06/2010 22:07:52] [Error - Spell Interface]
[28/06/2010 22:07:52] data/spells/scripts/support/paralyze rune.lua:eek:nCastSpell
[28/06/2010 22:07:52] Description:
[28/06/2010 22:07:52] (luaDoPlayerSendCancel) Player not found

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 7000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	if getPlayerMana(cid) >= 1400 and getPlayerSoul(cid) >= 3 and isInArray({6, 10}, getPlayerVocation(cid)) then
		return doPlayerAddMana(cid, -1400, false) and doPlayerAddSoul(cid, -3) and doCombat(cid, combat, var)
	else
		doPlayerSendCancel(cid, getPlayerMana(cid) < 1400 and "You don't have enough mana." or getPlayerSoul(cid) < 3 and "You don't have enough soul points." or "Your vocation cannot use this rune.")
	end
end
 
Last edited:
this works for me
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 8000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -600)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)

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