Jump to content

locale_string problem


Recommended Posts

It's not locale_string error i think

 

This is not correct?

 

Succes:

"%s ´Ô°úŔÇ ±łČŻŔĚ Ľş»ç µÇľú˝Ŕ´Ď´Ů.";
"Az üzlet %s személlyel sikerült.";

 
Not succes:

"ĽŇÁöÇ°żˇ şó °ř°ŁŔĚ ľř˝Ŕ´Ď´Ů.";
"Nincs elég hely a Leltáradban.";

 
If the trade is not succes, it's say: "Az üzlet %s személlyel sikerült." (Succes) So wtf...
 
I think it's caused by the 4 inventory...

 

(Yes, my English is not very good, but pls understand me  :) )

Link to comment
Share on other sites

Maybe yes, i think this code have error:

 

for (i = 0; i < INVENTORY_MAX_NUM / 4; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;


        s_grid1.Put(i, 1, item->GetSize());
    }
    for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;


        s_grid2.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize());
    }


    for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;


        s_grid3.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize());
    }
    for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;


        s_grid4.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize());
    }

But as i said, with the unedited code, the trades work fine..

for (i = 0; i < INVENTORY_MAX_NUM / 2; ++i)
	{
		if (!(item = victim->GetInventoryItem(i)))
			continue;

		s_grid1.Put(i, 1, item->GetSize());
	}
	for (i = INVENTORY_MAX_NUM / 2; i < INVENTORY_MAX_NUM; ++i)
	{
		if (!(item = victim->GetInventoryItem(i)))
			continue;

		s_grid2.Put(i - INVENTORY_MAX_NUM / 2, 1, item->GetSize());
	}

Magyarul:

Ha nem szerkesszük az exchange.cpp-nél azt a részt, hanem alapon hagyjuk, akkor nem buggos. Alap kóddal minden jól megy a kereskedésnél. Elég furcsa dolog.. Szerintem a 4 leltáras téma készítője csak leírta aztán kész, nem is érdekelte a dolog.. 

Link to comment
Share on other sites

  • Honorable Member

Mivel nem is kellett volna eleve szerkeszteni az exchange.cpp fájlt

:D
static CGrid s_grid(5, INVENTORY_MAX_NUM / 5);

Ez alapból megteszi amit kell.

INVENTORY_MAX_NUM 4 leltárnál 180, 180/5=36 -> 5x36os Grid készül az ellenörzéshez, amit feltölt adatokkal majd keres szabad helyet.

 

Szélesség: 5

Magasság: 36

Eredmény: 5x36=180

 

Ez az egész egy logic-failed :D

 

With the original exchange.cpp file will not show "succes" when the target's inventory is full.

Link to comment
Share on other sites

  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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