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

Lua getPlayerSkillLevel?

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
978
Solutions
17
Reaction score
373
GitHub
olrios
Twitch
jamagowy
Code:
        local sword = getPlayerSkillLevel(cid, 2)


Code:
attempt to call global 'getPlayerSkillLevel' (a nil value)
stack traceback:
        [C]: in function 'getPlayerSkillLevel'

hmm what? it worked well on 0.4 but doesnt in 1.0

what's wrong with it?
 
item:getAttack() for unique items (items in the game already, and you have access to the item object, it will prioritize attribute attack value first)
itemType:getAttack() for the "base" item (defined in items.xml, will NOT use attribute value)
If you have the item already and need to use the itemType method, use item:getType():getAttack().
 
Back
Top