Ir para conteúdo

vasconcellos

Membro
  • Registro em

  • Última visita

Tudo que vasconcellos postou

  1. data/libs/functions/player.lua function Player.isSorcerer(self) return table.contains({VOCATION.ID.SORCERER, VOCATION.ID.MASTER_SORCERER}, self:getVocation():getId()) end function Player.isDruid(self) return table.contains({VOCATION.ID.DRUID, VOCATION.ID.ELDER_DRUID}, self:getVocation():getId()) end function Player.isKnight(self) return table.contains({VOCATION.ID.KNIGHT, VOCATION.ID.ELITE_KNIGHT}, self:getVocation():getId()) end function Player.isPaladin(self) return table.contains({VOCATION.ID.PALADIN, VOCATION.ID.ROYAL_PALADIN}, self:getVocation():getId()) end function Player.isMage(self) return table.contains({VOCATION.ID.SORCERER, VOCATION.ID.MASTER_SORCERER, VOCATION.ID.DRUID, VOCATION.ID.ELDER_DRUID}, self:getVocation():getId()) end function Player.isWarrior(self) return table.contains({VOCATION.ID.WARRIOR }, self:getVocation():getId()) end Isso não era para existir: return Vocation_t::VOCATION_WARRIOR_CIP; // Warrior } Isso acho que é para estar assim: enum Vocation_t : uint16_t { VOCATION_NONE = 0, VOCATION_SORCERER = 1, VOCATION_DRUID = 2, VOCATION_PALADIN = 3, VOCATION_KNIGHT = 4, VOCATION_MASTER_SORCERER = 5, VOCATION_ELDER_DRUID = 6, VOCATION_ROYAL_PALADIN = 7, VOCATION_ELITE_KNIGHT = 8, VOCATION_WARRIOR = 9, VOCATION_LAST = VOCATION_WARRIOR, // Cip tibia client ids VOCATION_KNIGHT_CIP = 1, VOCATION_PALADIN_CIP = 2, VOCATION_SORCERER_CIP = 3, VOCATION_DRUID_CIP = 4, VOCATION_WARRIOR_CIP = 0 };

Informação Importante

Confirmação de Termo