Register for your free account! | Forgot your password?

You last visited: Today at 13:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



New Teleport System

Discussion on New Teleport System within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
Cool New Teleport System


Hi epvp community,

I not test this quest.I'm sorry,because the server was the problem.
I'll test tomorrow

PHP Code:
--[[
    -- New 
Teleport System
    
-- by HaveBeen™
]]--
quest teleport begin
    state start begin
    
        
function Getmaplist()
            
local maplist = {
--                
Vnum  Mapname Coordi(X)  Coordi(YMinimumLevel
                
[1] = {"Pyungmo",10000,2200,85},
                [
2] = {"Bakra",10000,23000,90},
            }
            
local lvl pc.get_level()
            
mapname,x,y,level = {},{},{},{}
            
table.foreachi(maplist,
                function(
n,p)
                    
mapname[n],x[n],y[n],level[n] = p[1],p[2],p[3],p[4]
            
end)
            --print(
mapname[1].." "..x[1].." "..y[1].." "..level[1])
            return 
mapname,x,y,level
        end
        
        when 9011.chat
." I want to teleport " begin
            say_title
(mob_name(npc.get_race())..":")
            
say("")
            ---
            
say("This place is really a nice village. ")
            
say("Hmm,you want to go somewhere else. ")
            
say("So if you have some money you can take. ")
            
say("")
            
local s select("Ok","No,thanks")
            if(
== 2then
                
return
            
end
            say_title
(mob_name(npc.get_race())..":")
            
say("")
            ---
            
local list = teleport.Getmaplist()
            
say("Okey,where will you go? ")
            
say("")
            
table.insert(mapname,"Close")
            
local a select_table(mapname)
            if(
table.getn(mapname) == sthen
                
return
            elseif(
table.getn(mapname) >= sthen
                say_title
(mob_name(npc.get_race())..":")
                
say("")
                ---
                if(
level[a] < pc.get_level()) then
                    say
("You can't go here. Because the level is low. ")
                    
say("You level must be exactly "..level[a])
                    return
                elseif(
pc.get_gold() < 10000then
                    say
("There are a lot less money.With this money I can't take you. ")
                    return
                
end
                pc
.change_gold(-10000)
                
pc.warp(x[a],y[a])
            
end
        end
    end
end 
1. Adding new a map ;

[vnum] = {"Mapname",x,y,minimumlevel}, -- You will like this


mfg HaveBeen™

HaveBeen™ is offline  
Thanks
19 Users
Old 06/02/2013, 21:12   #2
 
.PolluX's Avatar
 
elite*gold: 81
Join Date: Nov 2012
Posts: 975
Received Thanks: 531
Hmm.. another warpquest..
thanks for your work but there were another 4 releases of warp quests in the last days.. xD
.PolluX is offline  
Thanks
2 Users
Old 06/02/2013, 22:30   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 2,997
Received Thanks: 3,391
Kostümsystem hat bisschen aufgehört jetzt kommen Teleportquests.......
Das gehört in Sammelthread, kann mal jemand ihn sagen bitte.
CrystalPrime is offline  
Old 06/02/2013, 22:44   #4
 
elite*gold: 10
The Black Market: 200/0/3
Join Date: May 2012
Posts: 4,490
Received Thanks: 623
Gibt es doch schon x-mal ehy, reicht doch langsam!
LEL0UCH' is offline  
Old 06/26/2013, 07:07   #5
 
elite*gold: 0
Join Date: Nov 2012
Posts: 131
Received Thanks: 43
The quest is a little bit bugged because you put something backwards in it.

Code:
if(level[a] < pc.get_level()) then
This means "if the level requirement is lower than the player level then".

It should be this to function properly:

Code:
if(level[a] > pc.get_level()) then
Pulp310 is offline  
Old 06/27/2013, 21:21   #6
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
Quote:
Originally Posted by Pulp310 View Post
The quest is a little bit bugged because you put something backwards in it.

Code:
if(level[a] < pc.get_level()) then
This means "if the level requirement is lower than the player level then".

It should be this to function properly:

Code:
if(level[a] > pc.get_level()) then
No, thank you for interest but that's better
HaveBeen™ is offline  
Old 06/27/2013, 22:54   #7
 
elite*gold: 0
Join Date: Nov 2012
Posts: 131
Received Thanks: 43
Quote:
Originally Posted by HaveBeen™ View Post
No, thank you for interest but that's better
I'm a little confused, are you telling me "no" and that what I said is incorrect?
Pulp310 is offline  
Reply


Similar Threads Similar Threads
v15 - (Neuz?) Problem - Teleport System
05/28/2013 - Flyff Private Server - 5 Replies
Heyho Community. Ich hab wieder einmal ein Problem mit meinem v15 Server. Ich habe gerade das Teleport System eingefügt & dabei dieses Tutorial befolgt: klick! Alles ohne Probleme, Compilen lief auch einwandfrei ab. Die Server kann ich ohne Probleme starten, aber wenn ich dann meine Neuz starten will um zu spielen kommt das hier: klick!
[Release] Teleport System
02/16/2013 - Flyff PServer Guides & Releases - 124 Replies
Heute Release ich etwas, undzwar das Teleport System von Fantasy Core, da ich das Team verlassen habe. Fangen wir an
Teleport System [ERROR]
07/18/2012 - Flyff Private Server - 4 Replies
Habe beim Compilen ein Error bekommen. Diesen hier: c:\Users\***\Desktop\Flyff\V15\Source\Official Source\WORLDSERVER\DPSrvr.cpp(12425): error C2562: 'CDPSrvr::OnSendTeleportPosition' : 'void' function returning a value Und diese Zeile hier ist der Error: default: return FALSE;
Teleport System frage
04/20/2012 - Flyff Private Server - 5 Replies
Hallo Elitepvpers, Also meine frage wäre.. Ich habe in meinem Server das Teleport system drine.. Ich wollte mal fragen ob es geht sein standort zu speichern bzw mann ist grad in knochenpfad(oder i wo anders) danach gehen die buffs aus dann drück ihr "Z" dann steht da akt. standort speichern mann telt sich nach flaris wegen buffs und wider auf die selbe stelle wie vorher... Kann mann sowas einfügen bzw machen?
[Suche] Teleport System
07/18/2011 - Flyff Private Server - 6 Replies
Hey, gibt es irgendwo ein Teleport System Release oder so?



All times are GMT +1. The time now is 13:59.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.