Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkJoiners()
- local checker = true
- local players = {}
- local vocations = {false,false,false,false}
- for i = 1, #standing_positions do
- local cid = getTopCreature(standing_positions[i]).uid
- if cid > 0 then
- if getPlayerStorageValue(cid,player_quest) < 2 then
- table.insert(players,cid)
- end
- end
- local number = isKnight(cid) and 4 or isPaladin(cid) and 3 or isDruid(cid) and 2 or isSorcerer(cid) and 1 or 5
- vocations[number] = true
- end
- if #players < 4 then
- checker = false
- end
- for _, found in ipairs(vocations) do
- if not found then
- checker = false
- break
- end
- end
- return checker and players or false
- end
Add Comment
Please, Sign In to add comment