And I want add teleport ring quest to this file..
Sorry for my bad english.
quest warpring begin
state start begin
when 40002.use with pc.get_level() >= 10 begin
say("Welcome to the Userpannel")
local a = select ("Open Warehouse","Open Item Shop Storage", "Kingdom", "Teleport", "Close")
if a == 1 then
game.open_safebox()
elseif a ==2 then
game.open_mall()
elseif a == 3 then
say("Just pick ported in which kingdom")
say("you want to be. It's always Map1")
local c = select("Blue Kingdom", "Red Kingdom", "Yellows Kingdom", "Close")
if c == 4 then
return
elseif c == 1 then
pc.warp(969600, 278400)
elseif c == 2 then
pc.warp(469300, 964200)
elseif c == 3 then
pc.warp(55700, 157900)
end
elseif a ==4 then
say_title("Teleport Ring:")
say("Teleporting with Wormhole")
-- return
-- end
local map = pc.get_map_index()
local empire = pc.get_empire()
local level = pc.get_level()
-- say_title("Metin2Galactica")
-- say("-----------------------")
-- ?? ?? ???? ?? ?? (? ?? 1,2 ??)
if map == 1 or map == 3 or map == 21 or map == 23 or map == 41 or map == 43 then
local guild_map_names = {
"Guild Zone",
"Guild Zone",
"Guild Zone",
}
guild_map_name = guild_map_names[empire]
local empire_castle={
"Castle Battle",
"Castle Battle",
"Castle Battle",
}
empire_castle =empire_castle[empire]
local sub_set = 0
if level < 60 then -- 60?? : ?????, ???, ????, ???
sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain", empire_castle,"Other Maps")
if sub_set == 6 then -- ??
return
end
else -- 61?? : ????, ???, ????, ????
sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain", empire_castle,"Other Maps")
if sub_set == 6 then -- ??
say_title("Teleporter:")
say("Where do you want to be teleported?")
sub_set = select("Valkus", "Demon Tower", "Spider Dungeon", "Wild Forest", "Red Forest", "Land of the Giants", "Back", "Cancel") + 5
if sub_set == 13 then -- ??
return
end
if sub_set == 12 then -- ??
say_title("Teleporter:")
say("Where do you want to be teleported?")
--- l
sub_set = select(guild_map_name, "Nula Valley", "Waste Land", "Tangra Mountain", empire_castle,"Other Maps")
if sub_set == 6 then -- ??
say_title("Teleporter:")
say("Where do you want to be teleported?")
sub_set = select("Valkus", "Demon Tower", "Spider Dungeon", "Wilde Forest", "Red Forest", "Land of the Giants", "Cancel") + 5
if sub_set == 12 then -- ??
return
end
end
end
end
end
local warp = {
-- guild_map
{
{ 128500, 1000 },
{ 179500, 1000 },
{ 271800, 13000 },
},
-- 64 map_n_threeway
{
{ 402100, 673900 },
{ 270400, 739900 },
{ 321300, 808000 },
},
-- 63 metin2_map_n_desert_01
{
{ 217800, 627200 },
{ 221900, 502700 },
{ 344000, 502500 },
},
-- 61 map_n_snowm_01
{
{ 434200, 290600 },
{ 375200, 174900 },
{ 491800, 173600 },
},
--empire_castle
{
{975200, 133000},
{977200, 185000},
{923900, 183600},
} ,
-- 62 metin2_map_n_flame_01
{
{ 599400, 756300 },
{ 597800, 622200 },
{ 730700, 689800 },
},
-- devil_tower
{
{ 590500, 110500 },
{ 590500, 110500 },
{ 590500, 110500 },
},
-- 104 metin2_map_spiderdungeon
{
{ 60000, 496000 },
{ 60000, 496000 },
{ 60000, 496000 },
},
-- 67 metin2_map_trent
{
{ 288700, 5700 },
{ 288700, 5700 },
{ 288700, 5700 },
},
-- 68 metin2_map_trent02
{
{ 1119900, 70800 },
{ 1119900, 70800 },
{ 1119900, 70800 },
},
-- 70 metin2_map_nusluck01
{
{ 845100, 745900 },
{ 845100, 745900 },
{ 845100, 745900 },
},
}
test_chat(warp[sub_set][empire][1]..warp[sub_set][empire][2])
say_title("Ring:")
say("I teleport now.")
wait()
pc.warp(warp[sub_set][empire][1], warp[sub_set][empire][2])
else -- ? ?? 1,2 ? ??? ?????? ? ?? 1,2 ? ??? ?? ??
local sub_set2 = 3
--sub_set2 = select(locale.vileage1_name[empire], locale.vileage2_name[empire], locale.cancel)
if empire==1 then
sub_set2 = select("Red Kingdom #1","Red Kingdom #2" , locale.cancel)
elseif empire ==2 then
sub_set2 = select("Yellow Kingdom #1","Yellow Kingdom #2" , locale.cancel)
elseif empire ==3 then
sub_set2 = select("Blue Kingdom #1","Blue Kingdom #2" , locale.cancel)
end
if sub_set2 != 3 then
if sub_set2 == 1 then
say_title("Ring:")
say("Holly Wormhole!1one!1!!")
wait()
if empire == 1 then
pc.warp(474300,954800)
elseif empire == 2 then
pc.warp(63800,166400)
elseif empire == 3 then
pc.warp(959900,269200)
end
elseif sub_set2 == 2 then
say_title("Ring:")
say("Holly Wormhole!1one!1!!")
wait()
if empire == 1 then
pc.warp(353100,882900)
elseif empire == 2 then
pc.warp(145500,240000)
elseif empire == 3 then
pc.warp(863900,246000)
end
end -- end sub set check2 if
end -- end sub set check1 if
end -- end map check if
end -- new
end -- end when use item
end -- end state start
end -- end quest warpring3