Jump to content

danhakhavro

member
  • Posts

    138
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by danhakhavro

  1. Hello,

    I remember seeing a topic with these 2 passive skills but I can't find it.

    Sem-T-tulo.png

    Does anyone know what they are called? Or if you have a topic where i can look for them?

    One of the skills increases your HP, the other increases your resistance to piercing blows.

    Thanks

  2. Yep, is already working. Was the effect at binnary missing. The only problem now is that the effect seems to have the coordinates a little badly.

     

    505ce9b44e50e31ca0830582ce3f8199.png

  3. 7a93318c198847cc727b00a7ef8d54de.jpg

     

    Bubbles are arround my body, and the sword have missing some skins? Or this is sword effect that doesnt work ?

  4. Problem solved.

     

    If someone has the same problem, you need to install all the libs. 

     

    Make the following command:

     

    fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/12.2-RELEASE/lib32.txz
    tar Jxpvf lib32.txz -C /
    rm lib32.txz

     

    In my case, my FreeBSD version is 12.2.

    Choose the version of your FreeBSD in this link bellow and make the respective change.

    ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/

     

    • Metin2 Dev 2
    • Good 3
    • Love 1
    • Love 5
  5. I suppose it's somewhere around here:

     

    #ifdef ENABLE_CHAT_COLOR_SYSTEM
    	static const char* colorbuf[] = {"|cFFffa200|H|h[Staff]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    #else
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    #endif

     

  6. Hi,
    Today I installed the Owsap Align Bonus Affect feature. 

    The installation was simple and everything was very well explained but I found a bug, when we die the bonus disappears and no longer appears.

    For those who do not know this "feature" give life points with the Karma. Like this: Preview

     

    And here the bug: Bug Preview

     

    Does anyone know where and how to solve this problem?
    The only code that can be relative is this one:

    char_battle.cpp

     

    #if defined(__ALIGNMENT_AFFECT__)
    void CHARACTER::AlignmentBonus()
    {
    	if (IsPC() && (!GetDesc() || !GetDesc()->GetCharacter()))
    		return;
    
    	int iRealAlignment = m_iRealAlignment / 10;
    
    	int iAlignmentBonus[MAX_ALIGNMENT_LEVEL][3] = {
    		{ ALIGNMENT_LEVEL1 /* 12000 */, POINT_MAX_HP, 2000 },
    		{ ALIGNMENT_LEVEL2 /* 8000 */, POINT_MAX_HP, 1500 },
    		{ ALIGNMENT_LEVEL3 /* 4000 */, POINT_MAX_HP, 1000 },
    		{ ALIGNMENT_LEVEL4 /* 1000 */, POINT_MAX_HP, 500 },
    	};
    
    	for (int i = 0; i < MAX_ALIGNMENT_LEVEL; ++i)
    	{
    		if (iRealAlignment >= iAlignmentBonus[i][0])
    		{
    			AddAffect(AFFECT_ALIGNMENT, iAlignmentBonus[i][1], iAlignmentBonus[i][2], AFF_NONE, INFINITE_AFFECT_DURATION, 0, true, true);
    			return;
    		}
    	}
    
    	RemoveAffect(AFFECT_ALIGNMENT);
    }
    #endif

     

    Thanks

  7. Hello,

    I am 3 days looking for a solution to this problem, unfortunately so far without success.

    Last hope is here in this forum 😅

     

    I'm using the 

    This is the hidden content, please
    ,  I installed everything and I have no errors in the sysser but when i changing the channel, the game returns to the login page after 3 seconds.

     

    For what I've been researching, this is a port problem in char.cpp.

     

    #ifdef ENABLE_CHANGE_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 - 4*(g_bChannel-1) + 4*(channelId-1));
    	
    	GetDesc()->Packet(&p, sizeof(TPacketGCWarp));
    }
    #endif

     

    Logically I came to the conclusion that I should put " p.wPort    = (wPort - 4 *(....)  +4* (....) since these are my doors.

     

        Channel 1 Core 1 [30003] = 1;
        Channel 1 Core 2[30005] = 1;
        
        Channel 2 Core 1[30007] = 2;
        Channel 2 Core 2[30009] = 2;

     

    But the game continues to return to the login page. Can any good soul help me? What is the logic? What should i put at wPort -X ? Does the problem is not there?

    Thanks you.

    • Good 1
  8. When changing the channel, the game returns to the login page after 3 seconds.

    Can anyone explain how to configure the ports? More exactly this part: p.wPort = (wPort - 100*(g_bChannel-1) + 100*(channelId-1));

    For exemple: I have ch1_core1: 30000
    For exemple: I have ch1_core2: 30001

    For exemple: I have ch2_core1: 30002
    For exemple: I have ch2_core2: 30003

    How it works? What is the logic ? Thank you very much.

  9.  

    You encounter this error because you don't use CTOA, so, the client will not be able to convert integer numbers to C long, goint into an error.

     

     

    Solution:

     

    Add this to system.py:

    def StringColorToInt(colorstring):
        import grp
     
        colorstring = colorstring.strip()
     
        if len(colorstring) != 8:
            raise ValueError, "input #%s is not in #AARRGGBB format" % colorstring
     
        a, r, g, b = colorstring[:2], colorstring[2:4], colorstring[4:6],colorstring[6:8]
        a, r, g, b = [int(n, 16) for n in (a, r, g, ]
     
        return grp.GenerateColor(float® / 255.0, float(g) / 255.0, float( / 255.0, float(a) / 255.0)
     
    __builtin__.CTOA = StringColorToInt
     
    Search for 0xff codes in the client root/locale/uiscript and change them like this:
     

    0xffFFB96D = CTOA("ffFFB96D")

     

     

    Put it in all files?

    In all 400 lines?

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