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

[8.40 Spells] The Forgotten Server V0.2

Knight God

Member
Joined
Oct 19, 2008
Messages
1,180
Reaction score
21
Hello to all, thanks to Pitufo for helping myself.. Good the point is that I have a mistake in the new spells look at this bug:

[02/02/2009 21:19:02] Lua Script Error: [Spell Interface]
[02/02/2009 21:19:03] data/spells/scripts/support/Sharpshooter.lua


And with the others it is the same thing here I give them the script of sharpshooter

PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 150)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)

local speed = createConditionObject(CONDITION_PARALYZE)
setConditionParam(speed, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(speed, -0.7, 56, -0.7, 56)
setCombatCondition(combat, speed)

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)

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

Thank you. Now another thing, when I use the spells of the party gives me a bug more or less like that

PHP:
[02/02/2009  21:31:49] data/spells/scripts/party/enchant.lua:15: attempt to call global 'getPlayerParty' (a nil value)
[02/02/2009  21:31:49] stack traceback:
[02/02/2009  21:31:49] 	data/spells/scripts/party/enchant.lua:15: in function <data/spells/scripts/party/enchant.lua:13>

Thanks =)
 
Back
Top