forked from metin2/server
186 lines
7.0 KiB
Plaintext
186 lines
7.0 KiB
Plaintext
quest ghost_story begin
|
|
state start begin
|
|
when 30121.chat.gameforge.ghost_story._020_npcChat with pc.get_map_index() == 73 begin
|
|
local maindialog = 0
|
|
local storymode = 0
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._030_say)
|
|
repeat
|
|
if pc.getqf("know_sura") == 1 then
|
|
maindialog = select(gameforge.ghost_story._060_npcChat, gameforge.ghost_story._080_npcChat, gameforge.ghost_story._120_npcChat, gameforge.ghost_story._160_npcChat, gameforge.ghost_story._200_npcChat, gameforge.ghost_story._240_npcChat, gameforge.ghost_story._280_npcChat)
|
|
if maindialog == 1 then
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._070_say)
|
|
wait()
|
|
elseif maindialog == 2 then
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._090_say )
|
|
wait()
|
|
elseif maindialog == 3 then
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._130_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._140_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._150_say)
|
|
wait()
|
|
elseif maindialog == 4 then
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._170_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._180_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._190_say)
|
|
wait()
|
|
elseif maindialog == 5 then
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._210_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._220_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._230_say)
|
|
wait()
|
|
elseif maindialog == 6 then
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._250_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._260_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._270_say)
|
|
wait()
|
|
else
|
|
say(gameforge.ghost_story._290_say)
|
|
end
|
|
else
|
|
maindialog = select(gameforge.ghost_story._060_npcChat, gameforge.ghost_story._040_npcChat)
|
|
if maindialog == 1 then
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._070_say)
|
|
wait()
|
|
local subdialog1 = select(gameforge.ghost_story._080_npcChat)
|
|
if subdialog1 == 1 then
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._090_say)
|
|
pc.setqf("know_sura", 1)
|
|
wait()
|
|
end
|
|
else
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._050_say)
|
|
maindialog = 7
|
|
end
|
|
end
|
|
until maindialog == 7
|
|
return
|
|
end
|
|
when 30122.chat.gameforge.ghost_story._310_npcChat begin
|
|
local maindialog = 0
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._320_say)
|
|
repeat
|
|
if pc.getqf("know_warrior") == 1 then
|
|
maindialog = select(gameforge.ghost_story._350_npcChat, gameforge.ghost_story._370_npcChat, gameforge.ghost_story._390_npcChat, gameforge.ghost_story._430_npcChat, gameforge.ghost_story._480_npcChat)
|
|
if maindialog == 1 then
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._360_say)
|
|
wait()
|
|
elseif maindialog == 2 then
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._380_say)
|
|
wait()
|
|
elseif maindialog == 3 then
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._400_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._410_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._420_say)
|
|
wait()
|
|
elseif maindialog == 4 then
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._440_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._450_say)
|
|
storymode = select (gameforge.locale.levelup.prev_quest_go, gameforge.ghost_story._280_npcChat)
|
|
if storymode == 2 then
|
|
return
|
|
end
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._460_say)
|
|
wait()
|
|
else
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._490_say)
|
|
end
|
|
else
|
|
maindialog = select(gameforge.ghost_story._350_npcChat, gameforge.ghost_story._040_npcChat)
|
|
if maindialog == 1 then
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._360_say)
|
|
wait()
|
|
local subdialog1 = select(gameforge.ghost_story._370_npcChat)
|
|
if subdialog1 == 1 then
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._380_say)
|
|
pc.setqf("know_warrior", 1)
|
|
wait()
|
|
end
|
|
else
|
|
say_title(gameforge.ghost_story._300_sayTitle)
|
|
say(gameforge.ghost_story._050_say)
|
|
maindialog = 5
|
|
end
|
|
end
|
|
until maindialog == 5
|
|
return
|
|
end
|
|
when 30121.chat.gameforge.ghost_story._100_npcChat with pc.get_map_index() == 73 begin
|
|
say_title(gameforge.ghost_story._010_sayTitle)
|
|
say(gameforge.ghost_story._110_say)
|
|
end
|
|
end
|
|
end |