-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWZGuildAuto.lua
200 lines (187 loc) · 6.49 KB
/
WZGuildAuto.lua
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
if not game:IsLoaded() then
game.Loaded:Wait()
print("Ready to do all your dirty work :/")
end
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local StartRaid = ReplicatedStorage.Shared.Teleport:WaitForChild("StartRaid")
local MissionFinished = ReplicatedStorage.Shared.Missions:WaitForChild("MissionFinished")
local GetDifficulty = ReplicatedStorage.Shared.Missions:WaitForChild("GetDifficulty")
local ActiveMission = ReplicatedStorage:WaitForChild("ActiveMission")
local PlaceId = game.PlaceId
local function oneDifficulty()
local difficulty = GetDifficulty:InvokeServer()
local missionID = ActiveMission.Value
print("UwU", "OwO", missionID, difficulty)
if difficulty < 4 then
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID + 1, 1)
end)
end
end
local function twoDifficulties()
local difficulty = GetDifficulty:InvokeServer()
local missionID = ActiveMission.Value
print("UwU", "OwO", missionID, difficulty)
if difficulty < 2 then
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID, difficulty + 1)
end)
else
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID + 1, 1)
end)
end
end
local function threeDifficulties()
local difficulty = GetDifficulty:InvokeServer()
local missionID = ActiveMission.Value
print("UwU", "OwO", missionID, difficulty)
if difficulty < 3 then
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID, difficulty + 1)
end)
else
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID + 1, 1)
end)
end
end
local function fourDifficulties()
local difficulty = GetDifficulty:InvokeServer()
local missionID = ActiveMission.Value
print("UwU", "OwO", missionID, difficulty)
if difficulty < 4 then
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID, difficulty + 1)
end)
else
MissionFinished.OnClientEvent:Connect(function()
wait(5)
if missionID == 4 then
StartRaid:FireServer(6, 1)
elseif missionID == 20 then
StartRaid:FireServer(21)
else
StartRaid:FireServer(missionID + 1, 1)
end
end)
end
end
local function fiveDifficulties()
local difficulty = GetDifficulty:InvokeServer()
local missionID = ActiveMission.Value
print("UwU", "OwO", missionID, difficulty)
if difficulty < 5 then
if difficulty == 2 and PlaceId == 6847034886 then
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID, 5)
end)
elseif difficulty == 2 and PlaceId == 6386112652 then
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID, 5)
end)
elseif difficulty == 2 and PlaceId == 6510862058 then
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID, 5)
end)
else
MissionFinished.OnClientEvent:Connect(function()
wait(5)
StartRaid:FireServer(missionID, difficulty + 1)
end)
end
else
MissionFinished.OnClientEvent:Connect(function()
wait(5)
if missionID == 7 then
StartRaid:FireServer(11, 1)
elseif missionID == 16 then
StartRaid:FireServer(18, 1)
elseif missionID == 26 then
StartRaid:FireServer(27)
else
StartRaid:FireServer(missionID + 1, 1)
end
end)
end
end
local function tower()
local missionID = ActiveMission.Value
local TowerFinished = ReplicatedStorage.MissionScripts[missionID]:WaitForChild("TowerFinished")
print("UwU", "OwO", missionID)
TowerFinished.OnClientEvent:Connect(function()
if missionID == 21 then
wait(15)
StartRaid:FireServer(23)
elseif missionID == 23 then
wait(15)
StartRaid:FireServer(24)
end
end)
end
if PlaceId == 2978696440 then -- Crabby
oneDifficulty()
elseif PlaceId == 4310476380 then -- Scarecrow
oneDifficulty()
elseif PlaceId == 4310464656 then -- Dire Prob
fourDifficulties()
elseif PlaceId == 4310478830 then -- Kingslayer
fourDifficulties()
elseif PlaceId == 3383444582 then -- Gravetower
fiveDifficulties()
elseif PlaceId == 3165900886 then -- Volcano Dungeon
fiveDifficulties()
elseif PlaceId == 3885726701 then -- Ruin
fourDifficulties()
elseif PlaceId == 3994953548 then -- Mama
fourDifficulties()
elseif PlaceId == 4050468028 then -- Volcano's Shadow
fiveDifficulties()
elseif PlaceId == 4465988196 then -- Mountain Pass
fourDifficulties()
elseif PlaceId == 4465989351 then -- Winter Cavern
fourDifficulties()
elseif PlaceId == 4465989998 then -- Winter Dungeon
fiveDifficulties()
elseif PlaceId == 4646475570 then -- Pyramid Dungeon
fiveDifficulties()
elseif PlaceId == 4646475342 then -- Deserted
fourDifficulties()
elseif PlaceId == 4646473427 then -- Scrap
fourDifficulties()
elseif PlaceId == 5703353651 then -- Prison Tower
tower()
elseif PlaceId == 6075085184 then -- Atlantis Tower
tower()
elseif PlaceId == 6386112652 then -- Konoh
fiveDifficulties()
elseif PlaceId == 6510862058 then -- Rough Waters
fiveDifficulties()
elseif PlaceId == 6847034886 then -- Underworld
fiveDifficulties()
elseif PlaceId == 7071564842 then -- Mez Tower
local missionID = ActiveMission.Value
local TowerFinished = ReplicatedStorage.MissionScripts[missionID]:WaitForChild("TowerFinished")
tower()
TowerFinished.OnClientEvent:Connect(function()
print("Wow the script worked.. Meow meow..")
end)
elseif PlaceId == 4526768588 then -- Klaus
local missionID = ActiveMission.Value
local MissionFinished = ReplicatedStorage.MissionScripts[missionID]:WaitForChild("MissionFinished")
print("UwU", "OwO", missionID)
MissionFinished.OnClientEvent:Connect(function()
wait(10)
StartRaid:FireServer(17)
end)
end