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

[8.54][TFS 0.3.6pl1] Fishing > Magic Blocker

margoh

{{ user.title }}
Joined
Apr 1, 2013
Messages
807
Solutions
18
Reaction score
355
Hello,

Can someone help me to change how to advancing this skill?
Should be changed if we get hurt by magic this skill is going up.

I hope that I have presented it clearly.

Kind regards,
margoh.
 
Last edited:
nope, fishing skill is changed into magic blocker skill, but i don't want to advancing it by using fishing rod, only when i get some hits by all kind of magic.
 
Bump. No one? ;/


More clearly.

When player is attacked by any type of spell, skill should advance.
Every single hit form spells, should add skill ticks.

How to do that in lua?
 
Last edited:
LUA:
function onStatsChange(cid, target, type, combat, value)
	if(target and isPlayer(attacker) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS)) then
	doPlayerAddSkillTry(cid, 6, hit / 2)
	return true
end
return true
end

Am I do it right?
 
Back
Top