Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- beranSystem = {
- ["channel"] ={
- [1] = 0,
- [2] = 0,
- },
- ["password"] ={
- [1] = "",
- [2] = "",
- },
- ["player"] ={
- [1] = {},
- [2] = {},
- },
- ["count"] ={
- [1] = 0,
- [2] = 0,
- },
- ["time"] ={
- [1] = 120,
- [2] = 120,
- },
- ["talk"] ={
- [1] = 0,
- [2] = 0,
- },
- ["entry"] ={
- [1] = 0,
- [2] = 0,
- },
- ["exit"] ={
- [1] = 0,
- [2] = 0,
- },
- ["callReload"] ={
- [1] = 0,
- [2] = 0,
- },
- ["logOutSystem"] ={
- [1] = 0,
- [2] = 0,
- },
- }
- function beranSystem.reload(idChannel)
- beranSystem.channel[idChannel] = 0
- beranSystem.password[idChannel] = ""
- beranSystem.player[idChannel] = {}
- beranSystem.count[idChannel] = 0
- beranSystem.entry[idChannel] = 0
- beranSystem.exit[idChannel] = 0
- beranSystem.callReload[idChannel] = 0
- beranSystem.logOutSystem[idChannel] = 0
- notice_all("La Stanza di Cristallo รจ di nuovo libera. (Channel "..idChannel..")")
- end
- function beranSystem.exitDungeon(idChannel)
- for i=0,beranSystem.count[idChannel],1 do
- player = find_pc_by_name(beranSystem.player[idChannel][i])
- pc.select(player)
- if pc.get_map_index() == 2 and pc.get_local_x()<= 250 and pc.get_local_y() <= 220 then
- warp_to_village()
- end
- end
- if beranSystem.logOutSystem[idChannel] == 1 then
- clear_server_timer("logOutSystem"..idChannel)
- beranSystem.logOutSystem[idChannel] = 0
- end
- beranSystem.reload(idChannel)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement