• 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

When i save and all this stuff i reload spells and i get this error
[12/06/2012 15:18:39] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/attack/The Druid Spell.lua)
[12/06/2012 15:18:39] data/spells/scripts/attack/The Druid Spell.lua:1: unexpected symbol
 
Idk why but I cant edit my posts Oo

So srry for the next post -.-

If I set up a dmg the spell doesnt make that dmg Oo I set up min dmg 40k max dmg 40k and i hit 16 and 19... not 16k or 19k...just 16 or 19 -.-
 
How can I add some other sprites like other people of forum did? :p

Use your custom .spr/.dat used for your own client.
Idk why but I cant edit my posts Oo

So srry for the next post -.-

If I set up a dmg the spell doesnt make that dmg Oo I set up min dmg 40k max dmg 40k and i hit 16 and 19... not 16k or 19k...just 16 or 19 -.-

Post your script and/or upload the .scs file.
 
This is the script:

PHP:
-- SpellCreator generated.

-- =============== COMBAT VARS ===============
-- Areas/Combat for 0ms
local combat0_NewItem5469 = createCombatObject()
setCombatParam(combat0_NewItem5469, COMBAT_PARAM_EFFECT, CONST_ME_LOSEENERGY)
setCombatParam(combat0_NewItem5469, COMBAT_PARAM_TYPE, CONST_ME_ENERGYHIT)
setCombatArea(combat0_NewItem5469,createCombatArea({{2}}))
function getDmg_NewItem5469(cid, level, maglevel)
	return (10)*-1,(20)*-1 
end
setCombatCallback(combat0_NewItem5469, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_NewItem5469")local combat0_NewItem3322 = createCombatObject()
setCombatParam(combat0_NewItem3322, COMBAT_PARAM_EFFECT, CONST_ME_BLOCKHIT)
setCombatParam(combat0_NewItem3322, COMBAT_PARAM_TYPE, CONST_ME_ENERGYHIT)
setCombatArea(combat0_NewItem3322,createCombatArea({{2}}))
function getDmg_NewItem3322(cid, level, maglevel)
	return (10)*-1,(20)*-1 
end
setCombatCallback(combat0_NewItem3322, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_NewItem3322")local combat0_NewItem23676 = createCombatObject()
setCombatParam(combat0_NewItem23676, COMBAT_PARAM_EFFECT, CONST_ME_LOSEENERGY)
setCombatParam(combat0_NewItem23676, COMBAT_PARAM_TYPE, CONST_ME_ENERGYHIT)
setCombatArea(combat0_NewItem23676,createCombatArea({{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}))
function getDmg_NewItem23676(cid, level, maglevel)
	return (40000)*-1,(40000)*-1 
end
setCombatCallback(combat0_NewItem23676, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_NewItem23676")

-- =============== CORE FUNCTIONS ===============
function RunPart(c,cid,var) -- Part
	if (isCreature(cid)) then
		doCombat(cid, c, var)
	end
end

function onCastSpell(cid, var)
	RunPart(combat0_NewItem5469,cid,var)
	RunPart(combat0_NewItem3322,cid,var)
	RunPart(combat0_NewItem23676,cid,var)
	return true
end
 
Your newlines are messed up. Either get the correct script or upload the .scs, even though your script seems to work alright.
Tried increasing the value even more, to check if you hit the cap or so?
 
The damages seem to be working, are you sure you changed the damages when you created the brush?
 
Okey guys...i made everything new and works just fine now! :)

But got another problem...how can I make spells that the spell goes to the direction where the players is tunred to? :p
 
But got another problem...how can I make spells that the spell goes to the direction where the players is tunred to? :p

Spell => Properties, tick Directional. Then make your spell (the player faces upwards, so make your spell there).
 
Haha, the new feature allows things like this;

testimg22.gif


Looks crazy ^^. (The bullets do not "aim" yet, they all face north for testing purposes)
 
Oh dude...dot another problem^^

I make such a spell:

j9bs4k.png


And all i get is this:

1ru49y.png


what is wrong? I already clsoed and opened the creator again but nothin happened :(
 
Great support bro :)

The spr/dat selection doesn't work for me well because it requires my files to be called Tibia.spr/Tibia.dat, but my custom client doesn't use these names. There is no need for it to be checking the dat/spr names. Also they shouldnt need to be in the same location.

EDIT: all good just edited the ini file, it assumes the fiels are in the same dir, yay for user friendliness haha :X
 
Last edited:
Great support bro :)

The spr/dat selection doesn't work for me well because it requires my files to be called Tibia.spr/Tibia.dat, but my custom client doesn't use these names. There is no need for it to be checking the dat/spr names. Also they shouldnt need to be in the same location.

I think you can just do

valueCheck =0

in settings.ini
 
Back
Top