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

Is there a way to make this kind of spells?

WiLDTuRTLE

Member
Joined
Feb 26, 2011
Messages
478
Reaction score
5
Utori pox > dmg based on magic level? or something similar?

utito tempo > instead of giving skills, it gives attack speed?

exori con > cast 10x exori con?

& Also any idea why my /ban system doesnt work? using 4.0 tfs


++Rep if helped
 
Im not sure but you can try to just add 10x of the formula thing on the exori con
So instead of 1 of these:
Code:
function onCastSpell(cid, var)
	if getPlayerStorageValue(cid, 3212) <= 0 then
		setPlayerStorageValue(cid, 3212, os.time()+8000)  
		return doCombat(cid, combat, var)
	else
You add like 10 of them. You could atleast try it? :)
 
Yeah i got you give me a second to make the script.

P.s. My ban system doesn't work either, i never looked in to why :P

- - - Updated - - -

LUA:
local combat1 = createCombatObject()
    setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, 1)
    setCombatParam(combat1, COMBAT_PARAM_BLOCKSHIELD, 1)
    setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
	    function onGetFormulaValues(cid, level, skill)
local min = -(skill * 1.0)
local max = -(skill * 2.9)
return min, max
end

setCombatCallback(combat1, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

Basically, you need to set up the function for this script so you can use in as you please. But as of right now, it works off of a minimum/maximum attack. So the way it is set up right now, the caster would do damage between their skill level X 1 and their skill level X 2.9.

Get it?

So if you have a magic level of 100, you should hit a minimum of 100 and a maximum of 290. It will hit randomly between those two numbers, and yes if you get more skill level it will go up.

P.s. I was using this for a weapon so you will also need to change the combat params most likely. Sorry i do not have the time to do all that for you. Hope this helped.
 
Last edited:
Back
Top