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

Spells editing

Boyegas

New Member
Joined
Jan 27, 2009
Messages
159
Reaction score
1
Hello, Im using TFS 0.3.6pl and the spells scrips are different. They dont have this
00000000
00111000
00111000
00111000
00000000
I dont really know how it is but its something like that. If you dont understand the "picture" I mean that I dont know where to edit where I want the spell to take place.
Please Help
 
It's the new system, if you look inside spells/lib/spells.lua you will see the current areas, you can simply add your own area and name it to something new. Then just look inside some spells that already exists if you want to see examples on how it works.
 
Actually you can do it "old-school" style, directly in the spell script:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, -90, 0.7, -50)

arr1 = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0},
{0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}

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

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

bueno pues mire necesito ayuda en una cosita si alguien me podria decir como agregar C++ en mi ot pls quiero ponerle sources a mi ot para canviar el color de las spells pls
 

Similar threads

Back
Top