Jump to content

Recommended Posts

  • Premium

M2 Download Center

This is the hidden content, please
( Internal )

Hello!

 

TELEPORT SYSTEM - HOW TO

 

How To: Unpack root.eix/.epk

 

open game.py

add:

import uiteleport  

Search:

self.__ProcessPreservedServerCommand()  

Add under:

        self.teleport = uiteleport.TeleportWindow()  

Search:

__ServerCommand_Build  

Add under:

    "Teleport"                : self.Teleport,  

Search:

OpenQuestWindow(self, skin, idx):  

Replace:

    def OpenQuestWindow(self, skin, idx): 
        if constInfo.CApiSetHide == 1: 
            net.SendQuestInputStringPacket(str(constInfo.SendString)) 
            constInfo.CApiSetHide = 0 
            return 
        self.interface.OpenQuestWindow(skin, idx)  

Add new function in game.py:

    def Teleport(self, getString): 
        if getString.find("index") != -1: 
            self.teleport.UpdateIndex(int(getString.split("x")[1])) 
        else: 
            constInfo.SendString = str(self.teleport.SendToServer) 
            constInfo.CApiSetHide = 1  

To give a button function to open it you can, for example, how I did it use the J button. For this you need to edit the following function:

 

kGQxc.png

 

Fals you want to use a different button, you can do it in the game.py following command to open / close:

self.teleport.Open()  

And finally the constInfo.py open and the following reinschreiben above:

CApiSetHide = 0 
SendString = ""  

 

Spoiler

191851q8pob.jpg.f4e987653416e681e2ccf027

 

The following quest under the Notes "teleport_edit.zip" it adds in euerm orders Quest (Quest by Kilroy.).
If it does not work you have it entered incorrectly say the system.

Ingame start (STRG+J)

root.rar
LINK DELETED.
teleport_edit.rar
https://mega.nz/#!XRBQVJ7Z!9DGdHGkTyjA-eEiQSMq7_zCRmNfVuMW-SxkUKu6Bydo

BTW: Sorry for my bad English.

Kind Regards, .Avua

 

By: Ace / CryPrime

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 268
  • kekw 2
  • Eyes 5
  • Flame 1
  • Dislove 2
  • Angry 1
  • Sad 1
  • Smile Tear 2
  • Think 2
  • Confused 3
  • Good 89
  • muscle 5
  • Love 14
  • Love 231
Link to comment
https://metin2.dev/topic/6049-gui-teleport-system/
Share on other sites

  • Premium

def OpenQuestWindow(self, skin, idx): 
    if constInfo.CApiSetHide == 1: 
        net.SendQuestInputStringPacket(str(constInfo.SendString)) 
        constInfo.CApiSetHide = 0 
    else:
        self.interface.OpenQuestWindow(skin, idx)  

Change it like this.

Link to comment
https://metin2.dev/topic/6049-gui-teleport-system/#findComment-38516
Share on other sites

  • Premium

 

The system its not working, i think that you forgot to add a server command.

What do you mean by 'not working'?

 

When i press any button on the map it doesn't teleport me. So i think that he forgot to post a python chat cmd to get the selected map from the button.

Link to comment
https://metin2.dev/topic/6049-gui-teleport-system/#findComment-38533
Share on other sites

  • Premium

 

 

The system its not working, i think that you forgot to add a server command.

What do you mean by 'not working'?

 

When i press any button on the map it doesn't teleport me. So i think that he forgot to post a python chat cmd to get the selected map from the button.

 

 

When i press any button on the map it doesn't teleport me.... 

Link to comment
https://metin2.dev/topic/6049-gui-teleport-system/#findComment-38537
Share on other sites

  • Former Staff

Try this quest

quest teleport begin
    state start begin
        when login begin
            local map = pc.get_map_index()
            cmdchat("Index mapa : "..map)
        end
        when info or button begin
            local i = tonumber(input(cmdchat("Teleport GetInfo")))
            if type(i) != "number" then return end
            local warp = teleport.warp_kords()
            if warp == nil then return end
            pc.warp(warp[1],warp[2])
        end
        
        function warp_kords()
            return     {
                        {459800,953900},    --Dt
                        {459800,953900},    --Tempel
                        {459800,953900},    --Donner
                        {459800,953900},    --Roter Wald
                        {459800,953900},    --Kap
                        {459800,953900},    --AD
                        {459800,953900},    --Lungsam
                        {459800,953900},    --NW
                        {459800,953900},    --Berg Sohan
                        {459800,953900},    --Bakra
                        {459800,953900},    --OT
                        {459800,953900},    --DC
                        {459800,953900},    --Bokjung
                        {459800,953900},    --AD
                        {459800,953900},    --Chunjo
                        {459800,953900},    --Nephritibucht
                        {459800,953900},    --Grotte1
                        {459800,953900},    --Grotte2
                        {459800,953900},    --Grotte Boss
                        {459800,953900},    --Sd2
                        {459800,953900},    --Sd3
                        {459800,953900},    --Sd Boss
                        {459800,953900},    --Yayang
                        {459800,953900},    --Shinsoo
                        {459800,953900},    --AD
                        {459800,953900},    --Wüste
                        {459800,953900},    --Schlangenfeld
                        {459800,953900},    --Jinno
                        {459800,953900},    --Feuerland
                        {10,10}        --Gautamarkliff
                    }
        end
    end
end
  • Love 2
Link to comment
https://metin2.dev/topic/6049-gui-teleport-system/#findComment-38539
Share on other sites

  • Premium

Try this quest

quest teleport begin
    state start begin
        when login begin
            local map = pc.get_map_index()
            cmdchat("Index mapa : "..map)
        end
        when info or button begin
            local i = tonumber(input(cmdchat("Teleport GetInfo")))
            if type(i) != "number" then return end
            local warp = teleport.warp_kords()
            if warp == nil then return end
            pc.warp(warp[1],warp[2])
        end
        
        function warp_kords()
            return     {
                        {459800,953900},    --Dt
                        {459800,953900},    --Tempel
                        {459800,953900},    --Donner
                        {459800,953900},    --Roter Wald
                        {459800,953900},    --Kap
                        {459800,953900},    --AD
                        {459800,953900},    --Lungsam
                        {459800,953900},    --NW
                        {459800,953900},    --Berg Sohan
                        {459800,953900},    --Bakra
                        {459800,953900},    --OT
                        {459800,953900},    --DC
                        {459800,953900},    --Bokjung
                        {459800,953900},    --AD
                        {459800,953900},    --Chunjo
                        {459800,953900},    --Nephritibucht
                        {459800,953900},    --Grotte1
                        {459800,953900},    --Grotte2
                        {459800,953900},    --Grotte Boss
                        {459800,953900},    --Sd2
                        {459800,953900},    --Sd3
                        {459800,953900},    --Sd Boss
                        {459800,953900},    --Yayang
                        {459800,953900},    --Shinsoo
                        {459800,953900},    --AD
                        {459800,953900},    --Wüste
                        {459800,953900},    --Schlangenfeld
                        {459800,953900},    --Jinno
                        {459800,953900},    --Feuerland
                        {10,10}        --Gautamarkliff
                    }
        end
    end
end

No :/

  • Love 1
Link to comment
https://metin2.dev/topic/6049-gui-teleport-system/#findComment-38540
Share on other sites

quest teleport begin
    state start begin    
        when login begin
            cmdchat("Teleport index"..q.getcurrentquestindex())
        end
        when info or button begin
            local i = tonumber(input(cmdchat("Teleport GetInfo")))
            if type(i) != "number" then return end
            local warp = teleport.warp_kords()
            if warp[i] == nil then return end
            pc.warp(warp[i][1],warp[i][2])
        end
            
        function warp_kords()
            return     {
                        {10,10},    --Dt
                        {10,10},    --Tempel
                        {10,10},    --Donner
                        {10,10},    --Roter Wald
                        {10,10},    --Kap
                        {10,10},    --AD
                        {10,10},    --Lungsam
                        {10,10},    --NW
                        {10,10},    --Berg Sohan
                        {10,10},    --Bakra
                        {10,10},    --OT
                        {10,10},    --DC
                        {10,10},    --Bokjung
                        {10,10},    --AD
                        {10,10},    --Chunjo
                        {10,10},    --Nephritibucht
                        {10,10},    --Grotte1
                        {10,10},    --Grotte2
                        {10,10},    --Grotte Boss
                        {10,10},    --Sd2
                        {10,10},    --Sd3
                        {10,10},    --Sd Boss
                        {10,10},    --Yayang
                        {10,10},    --Shinsoo
                        {10,10},    --AD
                        {10,10},    --Wüste
                        {10,10},    --Schlangenfeld
                        {959900,269100},    --Jinno
                        {10,10},    --Feuerland
                        {10,10}        --Gautamarkliff
                    }
        end
    end
end
Link to comment
https://metin2.dev/topic/6049-gui-teleport-system/#findComment-39568
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.