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

OpenTibia SpellCreator: A graphical spell creation enviroment

Good tool, thanks.

4Zg3rWK.gif
 
i Got 1 huge problem with Thing, How do i scale the damage with magic level or skills, These spells seem to damage between Dmg A to dmg B, there is no multipliers. Aslo* When using shoot effect, with a directional spell. the shoot effects always go in 1 direction, no mater were you are facing and the rest of the spell works normal, looks really glitchy.
 
Great work here, I've been using this for a long time now and wondering if u plan on updating it for clients 9.00+
 
hey can someone give me a hand, i made some spells and tried them in game and they work perfectly, but they only hit like 15 damage max, can someone tell me how to fix this so i can make the spell hit more?
 
Will you release de source ? i saw the main post and you said that you would.
 
Untitled.jpg

this error is displayed mulptiple times when I start it up...
then the program starts..
how do i fix this?
 
Can you upgrade it till 9.8? because its give an error: Unable to read beyond the end of the stream.

Thank You :D great program
 
Hello, when i finish i get this code:

Code:
-- SpellCreator generated.

-- =============== COMBAT VARS ===============
-- Areas/Combat for 700ms
local combat7_Healing_Effect = createCombatObject()
setCombatParam(combat7_Healing_Effect, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat7_Healing_Effect, COMBAT_PARAM_TYPE, COMBAT_NONE)
setCombatArea(combat7_Healing_Effect,createCombatArea({{3}}))


-- Areas/Combat for 600ms
local combat6_Drain_Effect = createCombatObject()
setCombatParam(combat6_Drain_Effect, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat6_Drain_Effect, COMBAT_PARAM_TYPE, COMBAT_LIFEDRAIN)
setCombatParam(combat6_Drain_Effect, COMBAT_PARAM_BLOCKARMOR, true)
setCombatArea(combat6_Drain_Effect,createCombatArea({{1, 1, 1},
{1, 2, 1},
{1, 1, 1}}))
function getDmg_Drain_Effect(cid, level, maglevel)
   return (75),(125)
end
setCombatCallback(combat6_Drain_Effect, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Drain_Effect")

-- Areas/Combat for 500ms
local combat5_Axe_Effect = createCombatObject()
setCombatParam(combat5_Axe_Effect, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDAXE)
setCombatParam(combat5_Axe_Effect, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5_Axe_Effect, COMBAT_PARAM_BLOCKSHIELD, true)
setCombatArea(combat5_Axe_Effect,createCombatArea({{1, 1, 1},
{1, 2, 1},
{1, 1, 1}}))
setCombatFormula(combat5_Axe_Effect, COMBAT_FORMULA_SKILL, 75, 10, 75, 10)

local con___combat5_Axe_Effect = createConditionObject(0)
setCombatCondition(combat5_Axe_Effect, con___combat5_Axe_Effect)

local con_Live_Drain__combat5_Axe_Effect = createConditionObject(0+CONDITION_BLEEDING+CONDITION_ATTRIBUTES+CONDITION_SPELLCOOLDOWN)
addDamageCondition(con_Live_Drain__combat5_Axe_Effect, 3, 2500, -25)
setCombatCondition(combat5_Axe_Effect, con_Live_Drain__combat5_Axe_Effect)
local dfcombat5_Axe_Effect = {CONST_ANI_WHIRLWINDAXE,1,1,0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0}

-- =============== 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)
   addEvent(RunPart,700,combat7_Healing_Effect,cid,var)
   addEvent(RunPart,600,combat6_Drain_Effect,cid,var)
   addEvent(RunPart,500,combat5_Axe_Effect,cid,var,dfcombat5_Axe_Effect,startPos)
   return true
end

... and doesn't work on TFS 8.6 mistic spirit. Cant load spells.xml :( pleas help how to i can put in engine ;P
 
Error : Unable to read beyond the end of the stream. using tibia 9.81 :S

Getting the same error.

Can you upgrade it till 9.8? because its give an error: Unable to read beyond the end of the stream.

Thank You :D great program

I dont unterstand how it works...
I get no visual Effects.

I was having this problem, and I read through the first 15 pages or so to find that this project was based around the 9.4X to 9.5X versions of Tibia. I think it will support earlier versions, but not 9.6+ versions.

Solution:
1. Download earlier tibia client
2. use THOSE .spr and .dat files to generate spell code
3. manually update code as needed to meet your servers needs

I found that 9.44 files work just fine:

Tibia Clients can be found at:
http://tibiamulticlient.com/category/tibia-client/

Rep if you love me right now :D
 
---Update (can't edit post)----
Further testing shows it will work fine for all clients less than 9.6, BUT, if you want the areas to look right IN the spell editor, you need to use 8.6 .spr and .dat files.

I THINK the program generates the same code regardless of what .spr and .dat files you use... so use 8.6 to get the right visual effects down, and then edit the code manually if there are errors because you use a greater than 8.6 server.
 
Back
Top