• 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] Big Big Problems!

Apollo

Herban Legend
Joined
Jul 11, 2007
Messages
519
Reaction score
1
Location
Canada
I need a really good and detailed spell tutorial for 8.2x. I made some spells, but any player can do the same damage. A level 340 knight does pretend 2.5k with exori pas (custom spell) and then a level 200 does the same 2.5k with the same spell. I'm wondering why its doing this?


My Script:

Code:
--Created with OSM--
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE,COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,CONST_ME_STONES)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.5, -2700, 1.6, -3000)

arr = {
{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, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 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(arr)
setCombatArea(combat, area)

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

Spells.xml:

Code:
<instant name="Knight Pyramid" words="exori pas" lvl="150" manapercent="25" exhaustion="1000" needlearn="0" direction="0" script="custom/knight pyramid.lua">
		<vocation name="Knight"/> 
		<vocation name="Elite Knight"/>
		<vocation name="Super Knight" />
	</instant>


I really want to fix this problem. I don't understand whats wrong with it.

Thanks

Xine


P.S. This spell is for knights.
 
Well Im not the big one with spells but not the tiny one.. :p

I think is this:

Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.5, [B]-2700[/B], 1.6, [B]-3000[/B])

:p?

Example of Wrath of Nature:

Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.6, 0)
 
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.5, -[B]2700[/B], 1.6, -[B]3000[/B])

Yes... using this things you are saying the server

Damage random between 2700 and 3000
 
The high damage isn't the problem.. its how lower levels do the same amount as a level 999.. with the best skills.


I fixed the problem anyways. Thanks

Xine
 
Back
Top