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

[Request] Level based-Skill based spell.

Cornwallis

Member
Joined
Jan 3, 2010
Messages
480
Reaction score
16
I've had this script a few times but it didnt work for bows and arrows, crossbows and bolts, but it did work for stars, rocks, snowballs, ect.. But, as the title says, level based + skill based, so if im 1k, and say the level variable min is 3.6 and max is 3.8 and i have distance 0, i want it to hit 3.6k to 3.8k.
But, if i have say, 100 distance, i want it to hit, eh.. 4-5?! so i would hit, would that be 4.1k to 4.3k? If there is any way of doing it so it only relies on your SKILL_DISTANCE even if you have no weapon at all that would be fine too. If you don't understand what im saying just ask and ill try to make it easier, or even more detail.


Thanks in advance, Cornwallis.
 
Can you make me a script that does? The last one you made me worked fine but didn't work with bows and what not, and i asked about it but you never wrote back
 
couldn't test or find a solution

If you want it to count buffs and eq bonuses, then you're required to use the method that checks the skill of the weapon you're wearing.
However there are also other methods to search equipment for bonuses, :p
 
I'm deleting the spells like utito tempo san and utito tempo but im confused on what your telling me.

Edit; this is what doesnt work right.

Code:
ocal combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 31)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 32)

function onGetFormulaValues(cid, level, skill, attack, factor)
	return -(level * 3.6 + skill * 4), -(level * 3.7 + skill * 5)
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

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