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

Solved check skill level

Xagul

deathzot.net
Joined
Jun 30, 2008
Messages
1,295
Solutions
3
Reaction score
1,043
Hello and thank you for taking time to take a look at my issue.

I am trying to make a script that checks the players current level in club fighting and currently I am trying to use this function:

Code:
getPlayerSkillLevel(cid, SKILL_CLUB)

The problem is if Player A has 10 club fighting and the script checks his club fighting it will return the value 10 however if the player is wearing a club ring which grants 5 club fighting and the script then checks his club value it still returns 10 but in reality he actually has 15.
I would like to know if anyone has an idea on how to get around this via another function or what ever the case may be.
 
Last edited:
if club ring is the only way to raise your club fighting then you can check ring slot.
Code:
clubskill = getPlayerSkillLevel(cid, SKILL_CLUB) + (((getPlayerSlotItem(cid, CONST_SLOT_RING).itemid == 2212) * 5)
 
Yea thats the problem, there will be more ways to raise your skill, club ring being one example but also multiple other items/spell conditions as well.
 
Back
Top