Lua GetMaxSkill

From ArcEmu-Wiki
Jump to: navigation, search
+/-
Main Page        LuaArcEmu Website     ArcEmu Forum     Bug Tracker



Ico maintenance.png Some of the content of this wikipage is not up to date and need some maintenance. Please help to improve this page and do some update.


Syntax

int MaxSkill = pPlayer:GetMaxSkill(int SkillID)

Description

Will return the level of the given skill.
A skill ID must be used, not skill names!

Examples

Will return the level for 'Swords' (id = 43)

function OnEnterCombat(pUnit, event, pAttacker)
  if(pAttacker:IsGm() == true) then
    MaxSk = pAttacker:GetMaxSkill(43)
    pUnit:SendChatMessageToPlayer(14, 0, "Oh my god.. Your defense level is " .. MaxSk .., pAttacker)
  end
end
Personal tools