[QUEST Release] Teleportation ring

08/20/2010 19:52 sennah#1
this quest will teleport a player to another player.
if you like it, thank me =)


Features:

-You only can teleport once every hour.
-You can set some names witch are forbidden to teleport to.(like gm's)

Things that can be better:
-the quest does not check if the player is online

Installation:
Copy and paste the quest in a text editor.
Save it as: teleportring.quest
upload it into your serverfiles
add the quest into hongkong.list
run sh make.sh
execute /reload q in game

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

Quest file:
PHP Code:
quest teleportring begin
    state start begin
        when 70007.
use begin 
            local left 
pc.getqf("next_time") - get_time()
            
local left2 left 60
            say_title
("Teleportation ring")
            
say("With this ring you can teleport")
            
say("to any other player ingame.")
            
say("")
            
say("You can only teleport once every hour!")
            
say_reward("Do you want to teleport?")
            
local a select("Yes","No")
            if 
== 1 then
                say_title
("Teleportation ring")
                
say("When you enter a playername that")
                
say("is not online, your ring will have to ")
                
say("recharge for 1 hour anyway.")
                
say_reward("You want to continue?")
                
local b select("Yes","No")
                if 
== 1 then
                    
if get_time() > pc.getqf("next_time")then
                        say_title
("Teleportation ring")
                        
say_reward("What is the name off the player?")
                        
local name input()
                        if 
name == "[SA]1" or name == "[SGM]2" or name == "[SGM]3" or name == "[GM]4" or name == "[GM]5" or name == "[GM]6" or name == "[GM]7" then
                            say
("you can not teleport to a gm")
                            return
                        else
                            
pc.teleport(name)
                            
pc.teleport(name)
                            
pc.setqf("next_time"get_time() + 3600)
                        
end
                    
else            
                        
say("You have to wait "..left2.." minutes longer to teleport again.")
                    
end
                
else 
                    return
                
end
            
else
                return
            
end
        end 
    end 
end 
08/20/2010 19:55 patrickstaar7x#2
Funktioniert es ?

Sieht gut aus ;)
08/20/2010 20:16 lautlosertot#3
was bringt die soll die ein player zum gm porten wenns geht wärs lustig ;-)
08/20/2010 21:06 PVP-Gamer#4
looks very good, i'll try
thanks given
08/20/2010 22:32 sennah#5
this ring is great for an itemshop item.

you can even create an item to reset the timer, and add that into the itemshop too =)
08/20/2010 22:51 Avulsed#6
Very nice :)

Thank you
08/20/2010 23:18 BoGaRaM#7
Nice^^
Thanks xD
08/20/2010 23:53 sennah#8
your welcome, more quests will follow soon =)
08/21/2010 14:55 LxR'EsoZiaL#9
ist das nicht der Teleporter als Item Version ?
10/27/2010 15:58 sennah#10
bumpy
10/27/2010 16:00 #Minecraft#11
Thanks!! ;D
10/27/2010 16:09 sennah#12
your welcome
01/17/2012 16:18 born2rule#13
tnx it's work