Advertisement
Guest User

Untitled

a guest
Aug 30th, 2019
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. -- Generated On Dofus-Map with Drigtime's SwiftPath Script Maker --
  2. -- Nom :
  3. -- Zone :
  4. -- Type :
  5. -- Version : 1.0
  6. -- Auteur :
  7.  
  8. goBanque = false
  9.  
  10.  
  11. global:printMessage("[Info] Script créé par Master Chief")
  12. -- Settings --
  13. nickname = "" -- Pseudo
  14. password = "2580" -- Mdp maison/coffre
  15. cellid_chest = "296" -- Cellid du coffre
  16. cellid_door_house = "146" -- Cellid de l'entrée de la maison
  17. cellid_exit_house = "386" -- Cellid de la sortie de la maison
  18. mapid_in_house = "87556102" -- Mapid de l'intérieur de la maison
  19. mapid_out_house = "20975361" -- Mapid de l'extérieur de la maison
  20. farm_direction = "right" -- Où doit aller le bot pour retourner farm ?
  21. --
  22. function throw_all_shits()
  23. if not map:onMap(mapid_in_house) then return end
  24. map:lockedStorage(tonumber(cellid_chest), password)
  25. exchange:putAllItems()
  26. npc:leaveDialog()
  27. global:printMessage("[Info] Reprise du farm (Pods: " .. inventory:podsP() .. "%)")
  28. return map:moveToCell(tonumber(cellid_exit_house))
  29. end
  30. --
  31. function knock_on_the_door()
  32. if not map:onMap(mapid_out_house) then return end
  33. return map:lockedHouse(tonumber(cellid_door_house), password, nickname)
  34.  
  35.  
  36. GATHER = {}
  37. OPEN_BAGS = true
  38. AUTO_DELETE = {}
  39.  
  40. MAX_MONSTERS = 8
  41. MIN_MONSTERS = 1
  42.  
  43. FORBIDDEN_MONSTERS = {}
  44. FORCE_MONSTERS = {}
  45.  
  46.  
  47.  
  48. function move()
  49. return {
  50. { map = mapid_out_house, path = farm_direction },
  51. { map = mapid_in_house, path = cellid_exit_house },
  52. {map = "5,-18", path = "left"},
  53. {map = "4,-18", path = "left"},
  54. {map = "3,-18", path = "top"},
  55. {map = "3,-19", path = "right"},
  56. {map = "4,-19", path = "right"},
  57. {map = "5,-19", path = "bottom"},
  58. }
  59. end
  60.  
  61. function bank()
  62. --si la fonction bank est activé pour la première fois, retour dans le havre sac !
  63. if (goBanque = false) then
  64. goBanque = true
  65. return {
  66. {map = map:currentMap(), path = "havenbag" },
  67. }
  68. --si la fonction bank à déjà été activé une fois go banque à partir du havre sac !
  69. --une fois
  70. elseif (goBanque = true) then
  71. return {
  72. --Retour maison--
  73. { map = mapid_out_house, path = knock_on_the_door() },
  74. { map = mapid_in_house, path = throw_all_shits() },
  75. {map = "0,0", path = "zaap(20973313)"}, -- Village Canopée
  76. {map = "-54,16", path = "right"},
  77. {map = "-53,-16", path = "right"},
  78. {map = "-51,16", path = "right"},
  79.  
  80. }
  81. end
  82.  
  83.  
  84. function phenix()
  85. return {
  86. }
  87. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement