QuickLearner
New Member
- Joined
- Mar 20, 2018
- Messages
- 15
- Reaction score
- 1
Hi, I'm playing with onEquip and onDeEquip methods and I want to add player a skills when he is wearing full set ( let's say leather set ) and decrease on unequiping one of the item from set.
Is it possible? I was playing with :
where value was :
15 - onEquip
-15 - onDeEquip
but that didn`t worked at all. I was reading the forum here and found out that I can trigger a SQL query to change player skill but I don`t want to do that.
Is it possible? I was playing with :
Lua:
player:addSkillTries(SKILL_CLUB, player:getVocation():getRequiredSkillTries(SKILL_CLUB, player:getSkillLevel(SKILL_CLUB) + value));
where value was :
15 - onEquip
-15 - onDeEquip
but that didn`t worked at all. I was reading the forum here and found out that I can trigger a SQL query to change player skill but I don`t want to do that.