Th1Doose Posted June 22, 2022 at 04:23 PM Share Posted June 22, 2022 at 04:23 PM Boas malta, desculpem chatear-vos com isto, mas é um pouco urgente, preciso de meter uma verificação dos membros da minha party ao entrar num mapa, têm alguma maneira de o fazer?? Link to comment
[Admin] tierrilopes Posted June 22, 2022 at 09:39 PM Share Posted June 22, 2022 at 09:39 PM if party.is_leader() then local warp = select("Teleportar","Abortar") if warp == 1 then local pids = {party.get_member_pids()} local notEnoughLevelMembers = {} local levelCheck = true for i, pid in next, pids, nil do q.begin_other_pc_block(pid) local canPass = false if pc.level < 75 then --LEVEL A MUDAR table.insert(notEnoughLevelMembers, pc.get_name()) levelCheck = false end q.end_other_pc_block() end if not levelCheck then say("Este aqui é fraco e tem de ir upar:") for i, name in next, notEnoughLevelMembers, nil do say(color(1,1,0), " "..name) end return end if levelCheck then -- Colocar código de entrar na dungeon, questflags e etc aqui end end end Não mexo nisso há muito tempo por isso não testei Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now