if you like it, thank it =)
Features:
-There is an information button for players.
-Only gm's can start the mini events.
- 3 mini events included ( tanaka, monster pownage, plague event
Things that can be better:
-You can easily add more events, just copy and paste, and make some changes
Installation:
Copy and paste the quest in a text editor.
Save it as: eventmanager.quest
upload it into your serverfiles
add the quest into hongkong_list
run sh make.sh
execute /reload q in game
NPC used:
- 20094
Quest file:
PHP Code:
quest eventmanager begin
state start begin
when 20094.chat."Information" begin
say("There will be an event here.")
say("Look for announcments for further information!")
say("")
say("Have fun, the <server name> team")
end
when 20094.chat."GM:Tanaka event" with pc.is_gm() begin
say_title("Tanaka event:")
say("This event will spawn 50 tanaka's.")
say("Don't forget to announce the event!")
say("Start this event?")
local a = select("Yes", "No")
if a == 1 then
command ("m 5001 50")
end
if a == 2 then
return
end
end
when 20094.chat."GM:Monster Pownage" with pc.is_gm() begin
say_title("Monster Pownage")
say("This event will spawn monster waves.")
say("Every 10 minutes there will be a new wave!")
say("Don't forget to announce the event!")
say("Start this event?")
local b = select("Yes", "No")
if b == 1 then
timer('wave1', 10)
elseif b == 2 then
return
end
end
when wave1.timer begin
local map = pc.get_map_index()
notice_in_map(map,"Wave 1 spawned!")
command ("m 636 20")
command ("m 602 5")
command ("m 637 5")
command ("m 691 2")
timer('wave2', 600)
end
when wave2.timer begin
local map = pc.get_map_index()
notice_in_map(map,"Wave 2 spawned!")
command ("m 2202 15")
command ("m 2203 15")
command ("m 2207 2")
timer('wave3', 600)
end
when wave3.timer begin
local map = pc.get_map_index()
notice_in_map(map,"Wave 3 spawned!")
command ("m 2064 25")
command ("m 2035 25")
command ("m 2091 2")
timer('wave4', 600)
end
when wave4.timer begin
local map = pc.get_map_index()
notice_in_map(map,"Wave 4 spawned!")
command ("m 1061 25")
command ("m 1062 25")
command ("m 1093 2")
timer('wave5', 600)
end
when wave5.timer begin
local map = pc.get_map_index()
notice_in_map(map,"Wave 5 spawned!")
command ("m 2402 25")
command ("m 2403 25")
command ("m 1192 2")
timer('wave6', 600)
end
when wave6.timer begin
local map = pc.get_map_index()
notice_in_map(map,"Wave 6 spawned!")
command ("m 1305 15")
command ("m 1302 15")
command ("m 1304 2")
timer('wave7', 600)
end
when wave7.timer begin
local map = pc.get_map_index()
notice_in_map(map,"Final wave spawned!")
command ("m 5001 50")
command ("m 5001 25")
end
when 20094.chat."GM:Plague event" with pc.is_gm() begin
say_title("Plague event:")
say("This event will spawn 1 plague boss.")
say("Don't forget to announce the event!")
say("Start this event?")
local d = select("Yes", "No")
if d == 1 then
command ("m 993 1")
end
if d == 2 then
return
end
end
end
end