SphereCommunity
ore (skill gain) - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: ore (skill gain) (/Thread-ore-skill-gain)



ore (skill gain) - mrkarlo - 09-13-2012 06:14 AM

hello, help me please!
i want to make skill gain in mining only if you are digging with pickaxe or shovel. (not ore smelting with 1,2 piles). heeelp!


RE: ore (skill gain) - Shaklaban - 09-13-2012 06:24 AM

there can be better ways but you can do it like this:

[typedef t_ore]
on=@dclick
if <src.tag0.nomining> = 0
src.tag.nomining=1
src.timerf 1,src.tag.nomining=
endif

[comment this part under mining skill]
on=@gain
if <tag0.nomining> = 1
return 1
endif

you can also disable skill gain and use softcoded skill gain under @success of mining skill.


RE: ore (skill gain) - mrkarlo - 09-13-2012 06:45 AM

big thaanks Shaklaban!!