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

Error in Spell and fast attack

Deus Meus

New Member
Joined
May 18, 2014
Messages
120
Reaction score
1
Hello boys and girls otland.
make this post with the reason that I could not solve 2 errors that brings ot administered if not too much trouble I hope you can help me

  1. The first mistake is that I edit in data / xml / vocation.xml and edit attackspeed = "5"
    and even haci the atake is 1 second hope you can help me with this problem


  2. the second is the network spell spark here I leave the script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA_RED)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, TRUE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0.6, -220, 1.2, -190)

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

local condition = createConditionObject(CONDITION_PHYSICAL)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 1000, 3, -1000)
setCombatCondition(combat, condition)

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

Error in exe
wX884uQ.png

data: Use the tfs 0.4
PD: I know they are two problems but do one post to avoid violating the rules and spam.gracia attention spor
 
You can find the magic effects and conditions you can use in data/lib/000-constant.lua
To see which magiceffect is what you can use this.
http://otland.net/threads/magic-effects-10-41.221733/

CONST_ME_HITAREA_RED and CONDITION_PHYSICAL don't exist.

To change the speed you can do the spell, change the exhaustion, the time is in milliseconds so 500 = 0.5 seconds, 1000 = 1 second, 2000 = 2 seconds etc.
 
Change the attackspeed in vocations.xml to an amount of 500, 1000, 1500, 2000, so every 500 milliseconds, other number won't work properly.
 
I have already tried and still very slow attacks

anyone can help me with the fast attack
 
Last edited by a moderator:
Back
Top