This repository was archived by the owner on Aug 12, 2025. It is now read-only.
forked from WiWi33/Questing.lua
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathQuesting.lua
More file actions
66 lines (51 loc) · 1.45 KB
/
Copy pathQuesting.lua
File metadata and controls
66 lines (51 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
-- Copyright © 2016 g0ld <g0ld@tuta.io>
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the COPYING file for more details.
name = "Questing"
author = "g0ld, wiwi33, m1l4"
description = [[MainQuesting until end of Hoenn region.]]
dofile "config.lua"
local QuestManager
local questManager = nil
function onStart()
math.randomseed(os.time())
QuestManager = require "Quests/QuestManager"
log("all fine")
questManager = QuestManager:new()
--for longer botting runs
if DISABLE_PM and isPrivateMessageEnabled() then
log("Private messages disabled.")
return disablePrivateMessage()
end
--disable AutoEvolve for reduced exp needed to lvl up
disableAutoEvolve()
end
function onPause()
questManager:pause()
end
function onResume()
end
function onStop()
end
function onPathAction()
questManager:path()
if questManager.isOver then
return fatal("No more quest to do. Script terminated.")
end
end
function onBattleAction()
questManager:battle()
end
function onDialogMessage(message)
questManager:dialog(message)
end
function onBattleMessage(message)
questManager:battleMessage(message)
end
function onSystemMessage(message)
questManager:systemMessage(message)
end
function onLearningMove(moveName, pokemonIndex)
questManager:learningMove(moveName, pokemonIndex)
end