• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Own spell

Why the spell script added to .txt not to .Lua?
Also I think this spell creator is too old and doesn't script for 1.3, You better script it by yourself instead of a software (Just take a look how most scripts are made and try copying/editing to make new one).
Or take a look in Here for posted custom spells.
Didn't notice you edited your other thread, one of the global moderators will take care of it soon.
 
Why the spell script added to .txt not to .Lua?
Also I think this spell creator is too old and doesn't script for 1.3, You better script it by yourself instead of a software (Just take a look how most scripts are made and try copying/editing to make new one).
Or take a look in Here for posted custom spells.
Didn't notice you edited your other thread, one of the global moderators will take care of it soon.
i copyed it from the software the software gave me a script and xml i just copyed it to upload it for you
Post automatically merged:

Let us know whats your server version, and if there are any errors in the console.
8.60 tfs 1.3 and no errors in the consol only error is the gamble npc error :D
 
So you added the spell to your server correctly? separated your Lua/XML? This is how its supposed to be added
LUA:
local combat0_blood = createCombatObject()
setCombatParam(combat0_blood, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat0_blood, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatArea(combat0_blood,createCombatArea({{1, 1, 1},
{1, 2, 1},
{1, 1, 1}}))


-- Areas/Combat for 100ms
local combat1_blood = createCombatObject()
setCombatParam(combat1_blood, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat1_blood, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatArea(combat1_blood,createCombatArea({{1, 1, 1},
{0, 2, 1},
{1, 1, 1}}))


-- Areas/Combat for 200ms
local combat2_Brush = createCombatObject()
setCombatParam(combat2_Brush, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatArea(combat2_Brush,createCombatArea({{1, 1, 1},
{1, 2, 1},
{1, 1, 1}}))
function getDmg_Brush(cid, level, maglevel)
    return (1000)*-1,(1100)*-1
end
setCombatCallback(combat2_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush")
local dfcombat2_Brush = {CONST_ANI_HOLY,0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1}

-- =============== CORE FUNCTIONS ===============
local function RunPart(c,cid,var,dirList,dirEmitPos) -- Part
    if (isCreature(cid)) then
        doCombat(cid, c, var)
        if (dirList ~= nil) then -- Emit distance effects
            local i = 2;
            while (i < #dirList) do
                doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x-dirList[i],y=dirEmitPos.y-dirList[i+1],z=dirEmitPos.z},dirList[1])
                i = i + 2
            end       
        end
    end
end

function onCastSpell(cid, var)
    local startPos = getCreaturePosition(cid)
    RunPart(combat0_blood,cid,var)
    addEvent(RunPart,100,combat1_blood,cid,var)
    addEvent(RunPart,200,combat2_Brush,cid,var,dfcombat2_Brush,startPos)
    return true
end
XML:
<instant name="burster" words="exori holy" lvl="1" maglv="1" mana="0" exhaustion="1000" prem="0" needlearn="0" blockwalls="0" aggressive="1" event="script" value="burster.lua">
    <vocation id="1"/>
    <vocation id="2"/>
    <vocation id="3"/>
    <vocation id="4"/>
    <vocation id="5"/>
    <vocation id="6"/>
    <vocation id="7"/>
    <vocation id="8"/>
</instant>
 
Spell creator creates spell scripts for 0.4, So for 1.3 you'll have to script it manually as I mentioned before and script supposed to give console error when you cast it, If it didn't then you didn't add it correctly.
 
okey i try to make it manually
Post automatically merged:

ok i made it right now the spells working with that programm found the fault
 
Last edited:
Back
Top