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

Windows Spell Error

juansanchez

Intermediate OT User
Joined
Apr 2, 2015
Messages
217
Reaction score
129
Hey Otland people, today i need some help, with a kind of a BUG, that i dont understand why it happens at all...

So... i have this scripit:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)

arr = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
}

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

function spellCallback(param)
local form = 2

if param.count > 0 or math.random(0, 1) == 1 then
doSendMagicEffect(param.pos, CONST_ME_MORTAREA)
doAreaCombatHealth(param.cid, COMBAT_DEATHDAMAGE, param.pos, 0, -(((form*getPlayerLevel(param.cid)/2)*getPlayerMagLevel(param.cid))/20)/2, -(((form*getPlayerLevel(param.cid)/2)*getPlayerMagLevel(param.cid))/20), CONST_ME_EXPLOSIONHIT)
end

if(param.count < 5) then
param.count = param.count + 1
addEvent(spellCallback, math.random(1000, 3000), param)
end
end

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

function onTargetTile(cid, pos)
local param = {}
param.cid = cid
param.pos = pos
param.count = 0
spellCallback(param)
end

setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

function onCastSpell(cid, var)
doSetCreatureOutfit(cid,{lookType = 290, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons}, 18 * 1000)
return doCombat(cid, combat, var)
end
`
And im changing from my styller yourots 0.7.5 rev 04, to a tfs32.


It's supossed to look like this:

BhUwnWe.jpg


Which is how it looks in the styller.

But it's actually looking like this:

tYrjc5P.jpg


This is in the TF server. And it's always hitting 100. No matter what, i dont know why.. Could someone help me plz?
 
This is the Vocations Spells:

<!-- Infernalist -->

<instant name="Ataque Solo Fogo" words="fogo unico!" lvl="12" mana="32" prem="0" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,1500" icon="89" needlearn="0" script="attack/infernalist flame strike.lua">
<vocation id="11"/>
<vocation id="12"/>

</instant>

<instant name="Ondas de Fogo" words="ondas de fogo!" lvl="18" mana="75" prem="0" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" script="attack/ondas flame.lua">

<vocation id="11"/>

<vocation id="12"/>

</instant>

<instant name="Parede de Fogo" words="parede de fogo!" lvl="51" mana="375" prem="0" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" script="attack/wall flame.lua">

<vocation id="11"/>

<vocation id="12"/>

</instant>

<conjure name="Runa do Inferno" words="inferno concentrado!" lvl="100" mana="3140" soul="6" reagentId="2260" conjureId="2307" conjureCount="1" exhaustion="1000" groups="3,2000" icon="23" needlearn="0" function="conjureRune">

<vocation id="12"/>

</conjure>

<rune name="Runa do Inferno" id="2307" allowfaruse="1" charges="1" lvl="100" maglv="60" exhaustion="2000" groups= "1" icon="21" needtarget="1" blocktype="solid" script="attack/inferno.lua">

<vocation id="12"/>

</rune>

<instant name="Mega Ondas de Fogo" words="mega ondas de fogo!" lvl="120" mana="675" prem="0" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" script="attack/mega ondas flame.lua">

<vocation id="12"/>

</instant>

<instant name="Rajada de Fogo" words="rajada de fogo!" lvl="150" mana="800" prem="0" direction="1" exhaustion="2000" groups="1,1500" icon="19" needlearn="0" script="attack/rajada ondas flame.lua">

<vocation id="12"/>

</instant>

<instant name="Armadilha Explosiva" words="armadilha explosiva!" lvl="170" mana="1200" prem="0" soul="1" aggressive="1" exhaustion="10000" groups="3,2000" icon="94" needlearn="0" script="attack/armadilha.lua">

<vocation id="12"/>

</instant>

<instant name="Espiritos do inferno" words="espiritos do inferno!" lvl="200" mana="3000" prem="1" aggressive="1" exhaustion="7500" groups="1,1500" icon="24" needlearn="0" script="attack/ultimate.lua">

<vocation id="12"/>

</instant>
</spells>

The last one is the picture one, Espiritos do iferno. And no i didnt add
 
Back
Top