Brothers 24 Report post Posted February 7, 2020 Hi guys, small question. I want to make a map, where only rebirth can entry. I know the code what checks inventory, but not like class. Does anyone know? - Ivy Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted February 8, 2020 Hello @Brothers! This should work, didn't tested as well. -- End of functions.lua. function GetRebirthLevel(role) local Rebirth = 0 local rebirthEXP = GetChaAttr(role, ATTR_CSAILEXP) if (rebirthEXP > 0) and (rebirthEXP < 900) then Rebirth = 1 elseif (rebirthEXP >= 9000) and (rebirthEXP < 1200) then Rebirth = 2 elseif (rebirthEXP >= 1200) then Rebirth = 3 end return Rebirth end --Entry.lua of map, checking if player has at least rebirth 1. function check_can_enter_garner2( role, copy_mgr ) if (GetRebirthLevel(role) < 1) then SystemNotice(role, "Only reborn characters may enter Chaos Argent!") return end end 1 Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted February 8, 2020 (edited) you don't need all of this i guess can be in this simple way if GetSkillLv (role,459) < 1 then --systemnotice here bla bla return end Edited February 8, 2020 by mkhzaleh 1 Quote Share this post Link to post Share on other sites