Jump to content

Tallywa

Inactive Member
  • Posts

    307
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Tallywa

  1. Version of Files XXX

    Hello, i use this fonction for switch channel

    	
    
    	void CHARACTER::ChangeChannel(DWORD channelId){
    	    long lAddr;
    	    long lMapIndex;
    	    WORD wPort;
    	    long x = this->GetX();
    	    long y = this->GetY();	
    
    	    if (!CMapLocation::instance().Get(x, y, lMapIndex, lAddr, wPort))
    	    {
    	        sys_err("cannot find map location index %d x %d y %d name %s", lMapIndex, x, y, GetName());
    	        return;
    	    }	
    
    	    if(lMapIndex >= 10000){
    	        this->ChatPacket(CHAT_TYPE_INFO, ("You can't change channel in private map."));
    	        return;
    	    }	
    
    	    //this->ChatPacket(CHAT_TYPE_COMMAND, "RefreshChannel %d", channelId);	
    
    	    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 - 100*(g_bChannel-1) + 100*(channelId-1));
    	    
    	    GetDesc()->Packet(&p, sizeof(TPacketGCWarp));
    	}	
    
    

    but i cant switch channel, i have timer when if i click, but, after, i retourn in page of login

    my port channel 1 16002 my port channel 2 16102

    and core 2 of channel 1 16003 core 2 of channel 2 16103

    i dont know why and thank you for reply

  2. @xXIntelXx

    I think is good, but, in compile i have this error 

    
    mob_drop_manager.cpp:478: error: return-statement with no value, in function returning 'int'
    
    

    for this function

    
    if(!pkChar || !pkKiller)
            return;
    
    

     

    i have remplace with 

    
    if(!pkChar || !pkKiller)
            return 0;
    
    

    for try compile and this good, but i dont know when modif is good or bad

  3. Hello i have error/bug on HP, eg use armor with 3,000 HP, use the item 71027 there if I change the equipment to an HP without my maximum HP is normal over HP is greater than the maximum HP, how to fix this error?

     

    bug ->

    9b944fdcd19b438993cb989819edfea1.png

  4. Hello, i have remplaced all my fonction for dynamic python but now i have this error

    0113 23:56:17572 ::   File "
    0113 23:56:17572 :: game.py
    0113 23:56:17572 :: ", line 
    0113 23:56:17572 :: 3055
    0113 23:56:17572 :: 

    0113 23:56:17572 ::     
    0113 23:56:17572 :: player = __import__(pythonApi.GetModuleName("player")) as ch

     

     

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