Jump to content

emanuel

Inactive Member
  • Posts

    324
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by emanuel

  1. Acum 21 ore, Pisti95 a spus:

    I have a problem, when my GM character on CH99 and other character CH1, and i wrote ( /a name level ), CH99 does stop.

     

    /A COMMAND BLOCK FOR PLAYERS

    Still in cmd_gm.cpp, search for the function "ACMD(do_advance)" and under

      Ascunde conținuturi

        LPCHARACTER tch = CHARACTER_MANAGER::instance().FindPC(arg1);

     

      Ascunde conținuturi

        if (tch->IsGM() == false)
        {
            ch->ChatPacket(CHAT_TYPE_INFO, "You can only change the level of GM characters.");
            return;
        }

    yes sometimes that's happen..why ? On mine core1 stop..

    • Good 1
  2.  

    La 28.03.2017 la 16:59, mustafaxddd a spus:

    Hi guys, I implemented title system to my server, but I have a problem. When I set my title, nothing happens. Syserr is empty. Its like I have it above name, but I can't see it and I dunno why. Anyone know how to solve this problem? Thanks!

    In locale game it's probblem i think,try to put original lines from locale_game from system,don't modify ,and see if work or nop

  3. Hello guys,i just edit in my source binary the version code,my version code from game is :

    config.cpp

     string    g_stClientVersion = "1215955205";

    The end of the file:

    void CheckClientVersion()
    {
    	if (LC_IsEurope())
    	{
    		g_bCheckClientVersion = true;
    	}
    	else
    	{
    		g_bCheckClientVersion = false;
    	}
    
    	const DESC_MANAGER::DESC_SET & set = DESC_MANAGER::instance().GetClientSet();
    	DESC_MANAGER::DESC_SET::const_iterator it = set.begin();
    
    	while (it != set.end())
    	{
    		LPDESC d = *(it++);
    
    		if (!d->GetCharacter())
    			continue;
    
    
    		int version = atoi(g_stClientVersion.c_str());
    		int date	= atoi(d->GetClientVersion() );
    
    		//if (0 != g_stClientVersion.compare(d->GetClientVersion()) )
    		if (version != date)
    		{
    			d->GetCharacter()->ChatPacket(CHAT_TYPE_NOTICE, LC_TEXT("Version is to old,please update the game!"));
    			d->DelayedDisconnect(5);
    		}
    	}
    }

     

    I put in ch1,2,3,4 and game this : 

    CheckClientVersion: 1
    ClientVersion: 1215955205

    In binary source i have like this :

    bool CPythonNetworkStream::SendClientVersionPacket()
    {
    	std::string filename;
    
    	GetExcutedFileName(filename);
    
    	filename = CFileNameHelper::NoPath(filename);
    	CFileNameHelper::ChangeDosPath(filename);
    
    	if (LocaleService_IsEUROPE() && false == LocaleService_IsYMIR())
    	{
    		TPacketCGClientVersion2 kVersionPacket;
    		kVersionPacket.header = HEADER_CG_CLIENT_VERSION2;
    		strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
    		strncpy(kVersionPacket.timestamp, "3142526374", sizeof(kVersionPacket.timestamp)-1); // # python time.time 앞자리
    		//strncpy(kVersionPacket.timestamp, __TIMESTAMP__, sizeof(kVersionPacket.timestamp)-1); // old_string_ver
    		//strncpy(kVersionPacket.timestamp, "1218055205", sizeof(kVersionPacket.timestamp)-1); // new_future
    		//strncpy(kVersionPacket.timestamp, "1214055205", sizeof(kVersionPacket.timestamp)-1); // old_past
    
    		if (!Send(sizeof(kVersionPacket), &kVersionPacket))
    			Tracef("SendClientReportPacket Error");
    	}
    	else
    	{
    		TPacketCGClientVersion kVersionPacket;
    		kVersionPacket.header = HEADER_CG_CLIENT_VERSION;
    		strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
    		strncpy(kVersionPacket.timestamp, "3142526374", sizeof(kVersionPacket.timestamp)-1);
    
    		if (!Send(sizeof(kVersionPacket), &kVersionPacket))
    			Tracef("SendClientReportPacket Error");
    	}
    	return SendSequence();
    }

    i change this line,te version code in binary source :

    strncpy(kVersionPacket.timestamp, "3142526374", sizeof(kVersionPacket.timestamp)-1);

    because i want to test it working or not,but when i log to game nothing happen why?

    The version code is different to binary source and client need to quit me out,because it's not correct client key,why is still online and didn't quit me ?

    Sorry for my english,wish i get some answers :D Thank you !

×
×
  • 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.