Jump to content

Legor

Inactive Member
  • Posts

    15
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Legor

  1. This code is wrong....

    static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2);
    

    INVENTORY_MAX_NUM / 5 / 2 = 18...
    It should be 9, because inventory pages are 5x9......

    static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 4); //Where 4 is the number of pages..
    

     

    This is COMPLETELY wrong..... Because the second, third and fourth for iterate ever the same page

    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());
    	}

    It should be:

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

     

    And finally there are no implementation in the next source code to count the void spaces for 3° and 4° pages..

  2. 1) The experience received by the mob is closely linked to the difference in level. You must try a mob at the same level of your character:
     

    • >+15 level higher than your = 130% EXP
    • +14 level higher than your = 128% EXP
    • +13 level higher than your = 126% EXP
    • +12 level higher than your = 124% EXP
    • +11 level higher than your = 122% EXP
    • +10 level higher than your = 120% EXP
    • +9 level higher than your = 118% EXP
    • +8 level higher than your = 116% EXP
    • +7 level higher than your = 114% EXP
    • +6 level higher than your = 112% EXP
    • +5 level higher than your = 110% EXP
    • +4 level higher than your = 108% EXP
    • +3 level higher than your = 106% EXP
    • +2 level higher than your = 104% EXP
    • +1 level higher than your = 102% EXP
    • Same level = 100% exp
    • -1 level lower than your = 100% EXP
    • -2 level lower than your = 98% EXP
    • -3 level lower than your = 96% EXP
    • -4 level lower than your = 94% EXP
    • -5 level lower than your  = 92% EXP
    • -6 level lower than your = 90% EXP
    • -7 level lower than your = 85% EXP
    • -8 level lower than your = 80% EXP
    • -9 level lower than your = 70% EXP
    • -10 level lower than your = 50% EXP
    • -11 level lower than your = 40% EXP
    • -12 level lower than your = 30% EXP
    • -13 level lower than your = 20% EXP
    • -14 level lower than your = 10% EXP
    • ->14 level lower than your = 1% EXP
  3. 14 hours ago, arves100 said:

    Compile every source with Gcc5 and -std=c++14

    You have also to do this:

    replace any auto_ptr to unique_ptr

    replace any typeof to __typeof

    or add in common/stl.h

    #if defined(__GNUC__) && defined(_USE_CPP11_)

    #define typeof __typeof

    #define auto_ptr unique_ptr

    #endif

    after #ifndef itertype

    Also edit Makefile in db\game and add at CXXFLAG: -D_USE_CPP11_

    Ok, I try this. Thanks :)

  4. You need to add new "applyvalue*" and "applytype*" fields in player.item_proto database table and appropriate fields in player.item (as soon as I can I send you a complete list).
    After this you can try to search this field name in source code and implement the new field that you added before. You must search all the code thath use this field and modify them consequently.
    I think this is a good start base.

     

  5. Hello dears,

    I'm trying to compile source on my CentOS server. At this time, when I launch Makefile i receive an error with "strlcopy" function, this is BSD's function, so, I've installed the libbsd-devel and now:
    It's correct what I'm doing?
    How i can specify this library? I've try to specify in Makefile with "-L/usr/lib %allpossiblecombinations%".
    This is the first error that I receive, so I think I receive others in future.

    Someone that is more prepared than me can please show me the right way?

    Thanks a lot, Legor.:D

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