Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. beranSystem = {
  2. ["channel"] ={
  3. [1] = 0,
  4. [2] = 0,
  5. },
  6. ["password"] ={
  7. [1] = "",
  8. [2] = "",
  9. },
  10. ["player"] ={
  11. [1] = {},
  12. [2] = {},
  13. },
  14. ["count"] ={
  15. [1] = 0,
  16. [2] = 0,
  17. },
  18. ["time"] ={
  19. [1] = 120,
  20. [2] = 120,
  21. },
  22. ["talk"] ={
  23. [1] = 0,
  24. [2] = 0,
  25. },
  26. ["entry"] ={
  27. [1] = 0,
  28. [2] = 0,
  29. },
  30. ["exit"] ={
  31. [1] = 0,
  32. [2] = 0,
  33. },
  34. ["callReload"] ={
  35. [1] = 0,
  36. [2] = 0,
  37. },
  38. ["logOutSystem"] ={
  39. [1] = 0,
  40. [2] = 0,
  41. },
  42. }
  43.  
  44. function beranSystem.reload(idChannel)
  45.  
  46. beranSystem.channel[idChannel] = 0
  47. beranSystem.password[idChannel] = ""
  48. beranSystem.player[idChannel] = {}
  49. beranSystem.count[idChannel] = 0
  50. beranSystem.entry[idChannel] = 0
  51. beranSystem.exit[idChannel] = 0
  52. beranSystem.callReload[idChannel] = 0
  53. beranSystem.logOutSystem[idChannel] = 0
  54. notice_all("La Stanza di Cristallo รจ di nuovo libera. (Channel "..idChannel..")")
  55.  
  56. end
  57.  
  58. function beranSystem.exitDungeon(idChannel)
  59.  
  60. for i=0,beranSystem.count[idChannel],1 do
  61. player = find_pc_by_name(beranSystem.player[idChannel][i])
  62. pc.select(player)
  63. if pc.get_map_index() == 2 and pc.get_local_x()<= 250 and pc.get_local_y() <= 220 then
  64. warp_to_village()
  65. end
  66. end
  67. if beranSystem.logOutSystem[idChannel] == 1 then
  68. clear_server_timer("logOutSystem"..idChannel)
  69. beranSystem.logOutSystem[idChannel] = 0
  70. end
  71. beranSystem.reload(idChannel)
  72.  
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement