Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trajet = {}
- trajet[1] = "7,7"
- trajet[2] = "271"
- function processMap()
- for index, map in pairs(trajet) do
- if onMap(map[1]) then
- changeMap(map[2])
- return true
- end
- end
- return false
- end
- -- Boucle principale qui tourne tant que nous sommes sur des maps connues
- -- Si aucune action n'est définie sur la map actuelle, stoppe le script
- function Main()
- while true do
- printMessage(tostring(trajet[2]))
- if not processMap() then
- printError("Oops, je crois que je suis perdu...")
- break
- end
- end
- end
- printMessage("Démarrage du script.")
- Main()
- printMessage("Fin du script.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement