Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 00:58

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

Advertisement



Channel Changer [PROBLEM]

Discussion on Channel Changer [PROBLEM] within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2016
Posts: 115
Received Thanks: 29
Channel Changer [PROBLEM]

Moin epvp
Ich habe bei mir den Channel Changer eingebaut
das Problem ist dass wenn ich mich porte kommt "du hast den Channel erfolgreich gewechselt" aber es passiert nichts
ich habe bei mir 2 Channels mit 5 Cores eingebaut:

Channel: 1/core_1 13001

Channel: 1/core_2 13002

Channel: 1/core_3 13003

Channel: 1/core_4 13004

Channel: 1/core_5 13005



Channel: 2/core_1 13101

Channel: 2/core_2 13102

Channel: 2/core_3 13103

Channel: 2/core_4 13104

Channel: 2/core_5 13105

und hier ist der Code:

Code:
    for(int i = 0; i < 2; i++){
       for(int i2 = 1; i2 < 9; i2++){
           ch[13*1000 + i*100 + i2] = i+1;
was genau muss ich da jetzt anpassen ? ich kapier das nicht...
hoffe ihr könnt mir helfen

edit: wenn mir das jemand löst
kriegt ne 10€ psc (offline psc und aus de)
Waaaasgeht is offline  
Old 12/17/2017, 14:14   #2
 
elite*gold: 0
Join Date: Jun 2016
Posts: 115
Received Thanks: 29
#push

edit: wenn mir das jemand löst
kriegt ne 10€ psc (offline psc und aus de)
Waaaasgeht is offline  
Old 12/18/2017, 16:50   #3
 
elite*gold: 157
Join Date: May 2014
Posts: 504
Received Thanks: 603
Teste es mal so:

Code:
 void CHARACTER::ChannelSwitch(int iNewChannel)
{

    long lAddr;
    long lMapIndex;
    WORD wPort;
    long x = this->GetX();
    long y = this->GetY();

    if (!CMapLocation::instance().Get(x, y, lMapIndex, lAddr, wPort))
    {
        return;
    }

    if(lMapIndex >= 10000){
        return;
    }
	
	if (IsHack ())
		return;

    std::map<WORD, int>ch;

	for(int i = 0; i < 4; i++)
	{
		for(int i2 = 0; i < 2; i++)
		{
			ch[(13 * 1000) + (i * 3000) + i2] = i + 1;
			if (i == 3)
				ch[(13 * 1000) + ((i * 3000) - 1000) + i2] = i + 1;
		}
	}
   
   int chan;
   if(ch.find(wPort) != ch.end())
   {
       chan = ch[wPort];
   }
   else
   {
        return;
   }
   Stop();
   Save();

   if(GetSectree())
   {
       GetSectree()->RemoveEntity(this);
        ViewCleanup();

        EncodeRemovePacket(this);
    }

    TPacketGCWarp p;
    p.bHeader    = HEADER_GC_WARP;
    p.lX    = x;
    p.lY    = y;
    p.lAddr    = lAddr;
    p.wPort    = (wPort - 3000*(chan-1) + 3000*(iNewChannel-1));

	ChatPacket(CHAT_TYPE_COMMAND, "Update %d",iNewChannel);
    GetDesc()->Packet(&p, sizeof(TPacketGCWarp));
}
DevBlade is offline  
Thanks
1 User
Old 12/18/2017, 18:52   #4
 
elite*gold: 0
Join Date: Jun 2016
Posts: 115
Received Thanks: 29
Quote:
Originally Posted by DevBlade View Post
Teste es mal so:

Code:
 void CHARACTER::ChannelSwitch(int iNewChannel)
{

    long lAddr;
    long lMapIndex;
    WORD wPort;
    long x = this->GetX();
    long y = this->GetY();

    if (!CMapLocation::instance().Get(x, y, lMapIndex, lAddr, wPort))
    {
        return;
    }

    if(lMapIndex >= 10000){
        return;
    }
	
	if (IsHack ())
		return;

    std::map<WORD, int>ch;

	for(int i = 0; i < 4; i++)
	{
		for(int i2 = 0; i < 2; i++)
		{
			ch[(13 * 1000) + (i * 3000) + i2] = i + 1;
			if (i == 3)
				ch[(13 * 1000) + ((i * 3000) - 1000) + i2] = i + 1;
		}
	}
   
   int chan;
   if(ch.find(wPort) != ch.end())
   {
       chan = ch[wPort];
   }
   else
   {
        return;
   }
   Stop();
   Save();

   if(GetSectree())
   {
       GetSectree()->RemoveEntity(this);
        ViewCleanup();

        EncodeRemovePacket(this);
    }

    TPacketGCWarp p;
    p.bHeader    = HEADER_GC_WARP;
    p.lX    = x;
    p.lY    = y;
    p.lAddr    = lAddr;
    p.wPort    = (wPort - 3000*(chan-1) + 3000*(iNewChannel-1));

	ChatPacket(CHAT_TYPE_COMMAND, "Update %d",iNewChannel);
    GetDesc()->Packet(&p, sizeof(TPacketGCWarp));
}
danke für dein kommentar
aber es kommt wieder "du hast den channel erfolgreich gewechselt" und passiert nichts

edit: wenn ich in ch1 bin und dann change kommt du hast den channel erfolgreich gewechselt passiert nichts aber sobald ich mich auf eine andere map warpe steht oben rechts ch2 aber in wirklich bin ich immer noch in ch1
Waaaasgeht is offline  
Old 12/20/2017, 11:30   #5
 
elite*gold: 0
Join Date: Jun 2016
Posts: 115
Received Thanks: 29
#push
Waaaasgeht is offline  
Old 12/22/2017, 11:21   #6
 
elite*gold: 0
Join Date: Jun 2016
Posts: 115
Received Thanks: 29
erledigt
#closerequest
Waaaasgeht is offline  
Reply


Similar Threads Similar Threads
Target is in Channel 1 (your Channel 99)??
06/03/2011 - Metin2 Private Server - 7 Replies
Hi also wo ich ein Spiele zu mir in den Gm-Himmel holen wollte (warp /350 /650) kommte der Fehler: Target is in Channel 1 (your Channel 99) wieso? Wie kann ich diesen Fehler beheben? ich höffe ihr könnt mir helfen.. Danke Schonmal im Voraus.... MfG CoolSunnyBoy P.S: Es ist ein Hamachi P-Server Instand Serverfiles
Neuer Youtube Channel like Grasshyren Channel
04/13/2011 - League of Legends - 17 Replies
Ja ich dachte mir, da es schon etwas für Amerikaner, Engländer usw. gibt, warum auch nicht für Deutsche? Unser Clan ist zwar klein aber immerhin :D. Er heißt ramatique. Fragt mich nicht wie wir auf diesen Namen gekommen sind. Lange Rede kurzer Sinn. Wenn ihr Lust habt mit uns mal zu zocken, könnt ihr mich gerne in Youtube oder LoL pnnen. Der Channel ist neu und muss noch umdekoriert werden. Wenn ihr keine Lust habt mit uns zu spielen könnt ihr uns/mich ja immer noch abonnieren :). Es wird...
RAM Problem! Single Channel / Dual Channel
02/24/2011 - Technical Support - 6 Replies
Hallo ihr lieben! Ich besitze 2 Ram Riegel. Beide fassen 4GB! ( also insgesamt 8) Ich benutze Windows 7 Ultimate 64 Bit Es sind folgende Riegel: G.Skill DDR-1066 Pc3-8500
Habe Ts3 channel mit ca 20 channel zu vergeben !!!
01/24/2011 - CrossFire - 6 Replies
Hallo leute ich habe noch 20 channel auf meinem ts3 Server zu Vergenen wer brauch einfach hier rein Schreiben !:D:D:D



All times are GMT +2. The time now is 00:58.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.