[Quest Release]Warpring *redesigned*

08/21/2010 00:20 sennah#1
this quest is the normal warpring, but redesigned so that's easier to add maps and change maps.

if you like it, thank it =)


Features:
-enables players to warp to maps with an item.

Things that can be better:


Installation:
Copy and paste the quest in a text editor.
Save it as: warpring.quest
upload it into your serverfiles
add the quest into hongkong_list
remove the original warpring quest from hongkong_list
run sh make.sh
execute /reload q in game

item used:
- [Only registered and activated users can see links. Click Here To Register...]

Special note:
The level requirment is for my pvp event, that i will release later, since i'm not happy with it right now.

Quest file:
PHP Code:
quest warpring begin
    state start begin
        when 40002.
use begin
            local empire 
pc.get_empire()
            
local level pc.get_level()
            --
local pvpMinLevel game.get_event_flag("pvpMinLevel")
            --
local pvpMaxLevel game.get_event_flag("pvpMaxLevel")
            --
local pvpMapOpen game.get_event_flag("pvpMapOpen")
            
say_title("Warp Ring:")
            
say("Would you like to teleport?")
            
local a select("Yes","No")
        if 
== 1 then
            say
("Where would you like to teleport?")
            --
Open menu   
            local sub_set 
select("Map 1""Map 2""Nula Valley""Wasteland""Tangra valley""Pit of Death""Next Page""Close")
            if 
sub_set == 7 then
                local sub_set2 
select("Valkus""Demon Tower""V2""Red Forest""Watery Cavern""Close")
            
end
            
            
-- Exiting
            
if sub_set == 8 then
                
return
            
end
            
if sub_set2 == 6 then
                
return
            
end
            
-- Warping blue
            
if sub_set == and empire == 3 then
                pc
.warp(921600204800 )
            elseif 
sub_set == and empire == 3 then
                pc
.warp(819200204800 )
            elseif 
sub_set == and empire == 3 then
                pc
.warp(321300808000 )
            elseif 
sub_set == and empire == 3 then
                pc
.warp(344000502500 )
            elseif 
sub_set == and empire == 3 then
                pc
.warp(491800173600 )
            elseif 
sub_set2 == and empire == 3 then
                pc
.warp(730700689800 )   
            elseif 
sub_set2 == and empire == 3 then
                pc
.warp(590500110500 )
            elseif 
sub_set2 == and empire == 3 then
                pc
.warp(704100464100 )
            elseif 
sub_set2 == and empire == 3 then
                pc
.warp(1119900,70800 )
            elseif 
sub_set2 == and empire == 3 then
                pc
.warp(103551212929 )
            
end
            
-- Warping yellow
            
if sub_set == and empire == 2 then
                pc
.warp(0102400 )
            elseif 
sub_set == and empire == 2 then
                pc
.warp(102400204800 )
            elseif 
sub_set == and empire == 2 then
                pc
.warp(270400739900 )
            elseif 
sub_set == and empire == 2 then
                pc
.warp(221900502700 )
            elseif 
sub_set == and empire == 2 then
                pc
.warp(270400739900 )
            elseif 
sub_set2 == and empire == 2 then
                pc
.warp(597800622200 )   
            elseif 
sub_set2 == and empire == 2 then
                pc
.warp(590500110500 )
            elseif 
sub_set2 == and empire == 2 then
                pc
.warp(704100464100  )
            elseif 
sub_set2 == and empire == 2 then
                pc
.warp(1119900,70800 )
            elseif 
sub_set2 == and empire == 2 then
                pc
.warp(103551212929 )
            
end
            
-- Warping red
            
if sub_set == and empire == 1 then
                pc
.warp(409600896000 )
            elseif 
sub_set == and empire == 1 then
                pc
.warp(307200819200 )
            elseif 
sub_set == and empire == 1 then
                pc
.warp(402677673589 )
            elseif 
sub_set == and empire == 1 then
                pc
.warp(217800627200 )
            elseif 
sub_set == and empire == 1 then
                pc
.warp(434200290600 )
            elseif 
sub_set2 == and empire == 1 then
                pc
.warp(599400756300 )   
            elseif 
sub_set2 == and empire == 1 then
                pc
.warp(590500110500 )
            elseif 
sub_set2 == and empire == 1 then
                pc
.warp(704100464100 )
            elseif 
sub_set2 == and empire == 1 then
                pc
.warp(1119900,70800 )
            elseif 
sub_set2 == and empire == 1 then
                pc
.warp(103551212929 )
            
end
                
-- Warping pvp map
            
if sub_set == 6 then
say
("This option is for pvp event that will be released later.")
                --if 
pvpMapOpen == 0 then
                
--    say_title("Warp ring")
                --    
say("The pvp map is closed now")
                --    
say("Come back later")
            --    else
            --        if 
level pvpMinLevel or level pvpMaxLevel then
            
--            say_title("Warp ring")
            --            
say("You don't furfill the level requirments.")
            --            
say("")
            --            
say("Minimum level is: "..pvpMinLevel..".")
            --            
say("Maximum level is: "..pvpMaxLevel..".")
            --            
say_reward("Your level is: "..level..".")
            --        else
            --            if 
empire == 1 then
            
--                pc.warp(95354418282)
            --            elseif 
empire == 2 then
            
--                pc.warp(93686322145)
            --            else
            --                
pc.warp(94776837327)
            --            
end
            
--        end
            
--    end
            end
        
else
            return
        
end
        end 
-- end when
    end
end 
08/21/2010 01:16 tr0j3n18#2
[Only registered and activated users can see links. Click Here To Register...]
08/21/2010 01:19 sennah#3
??
08/21/2010 01:21 .Plies#4
Spam
#reported