Jump to content
metin2dev

Den

Members
  • Content count

    70
  • Joined

  • Last visited

Den last won the day on July 24

Den had the most liked content!

Community Reputation

22 Good

About Den

  • Rank
    Friendly

Profile Information

  • Gender
    Male
  • Location
    Poland

Recent Profile Visitors

281 profile views
  1. open Help Erro DC

    File "game.py", line 1322, in OnMouseLeftButtonUp Show your whole game.py or at least this function (OnMouseLeftButtonUp).
  2. open [client]

    Inventorywindow.py for the positions of the buttons and item slots. uiinventory.py (root) is where the functions are called.
  3. open Help Install MAP

    Did you also do that for files in 001000 etc. folders?
  4. open Query problem in quest

    Maybe instead of UPDATE use REPLACE INTO somewhere? REPLACE INTO makes a new row if it didn't find one.
  5. open Help Install MAP

    Try to change every filename on clientside to lowercase letters e.g. "Setting.txt" to "setting.txt".
  6. open channel crash

    Change the condition to: if (IsPC()) p.bHPPercent = 0; else if (GetMaxHP() <= 0) p.bHPPercent = 0; else p.bHPPercent = MINMAX(0, (GetHP() * 100) / GetMaxHP(), 100); You can't divide by 0 so you'll always get a crash when mob's maxhp is 0.
  7. open channel crash

    Show your char.cpp line 5239. You probably killed a mob that respawns with 0hp.
  8. The best login/select/empire/create I've ever seen. Good work, keep it up.
  9. open TIMER_BASED_ON_WEAR problem

    When item's type is ITEM_UNIQUE it takes Value0 to calculate expire time in minutes so in your case it will be: 71135 "71135" "ITEM_UNIQUE" "UNIQUE_NONE" 1 "NONE" "NONE" "WEAR_SHIELD" "NONE" 0 0 0 0 0 "LIMIT_NONE" 0 "LIMIT_NONE" 0 "APPLY_NONE" 0 "APPLY_NONE" 0 "APPLY_NONE" 0 480 0 0 0 0 0 0 0 0 Check it.
  10. open Bug Devil Tower

    Paste your deviltower_zone quest here.
  11. solved New pet system server source ERR

    Better do it this way: // START_OF_Player_EXP_TABLE_LOADING string temp_exp_line; char szExpTable[256]; snprintf(szExpTable, sizeof(szExpTable), "%s/exp.txt", LocaleService_GetBasePath().c_str()); ifstream exp_table_open(szExpTable); if (!exp_table_open.is_open()) { fprintf(stderr, "Failed to Load ExpTable from %s/exp.txt\n", LocaleService_GetBasePath().c_str()); sys_err("Failed to Load ExpTable from %s/exp.txt", LocaleService_GetBasePath().c_str()); return 0; } int exp_table_counter = 0; while (!exp_table_open.eof()) { exp_table_open >> temp_exp_line; str_to_number(exp_table_common[exp_table_counter], temp_exp_line.c_str()); exp_table_counter++; } fprintf(stderr, "EXP erfolgreich geladen von: %s\n", LocaleService_GetBasePath().c_str()); //sys_log(0, "EXP Table Loaded succsefully from %s", LocaleService_GetBasePath().c_str()); // END_OF_Player_EXP_TABLE_LOADING #ifdef NEW_PET_SYSTEM temp_exp_line = ""; //clearing std::ifstream exppet_table_open("/usr/home/game/share/exppettable.txt"); /*if (!exp_table_open.is_open()) return 0;*/ int exppet_table_counter = 0; int tmppet_exp = 0; while (!exppet_table_open.eof()) { exppet_table_open >> temp_exp_line; str_to_number(exppet_table_common[exppet_table_counter], temp_exp_line.c_str()); if (exppet_table_common[exppet_table_counter] < 2147483647) { sys_log(0, "Livelli Pet caricati da exppettable.txt: %d !", exppet_table_common[exppet_table_counter]); exppet_table_counter++; } else { fprintf(stderr, "[main] Impossibile caricare la tabella exp valore non valido\n"); break; } } #endif You didn't notice you've added something with the same name of variable before. Next time remember to check.
  12. solved New pet system server source ERR

    Before: std::ifstream exppet_table_open("/usr/home/game/share/exppettable.txt"); Add: std::string temp_exp_line; #ifdef NEW_PET_SYSTEM std::string temp_exp_line; std::ifstream exppet_table_open("/usr/home/game/share/exppettable.txt"); /*if (!exp_table_open.is_open()) return 0;*/ int exppet_table_counter = 0; int tmppet_exp = 0; while (!exppet_table_open.eof()) { exppet_table_open >> temp_exp_line; str_to_number(exppet_table_common[exppet_table_counter], temp_exp_line.c_str()); if (exppet_table_common[exppet_table_counter] < 2147483647) { sys_log(0, "Livelli Pet caricati da exppettable.txt: %d !", exppet_table_common[exppet_table_counter]); exppet_table_counter++; } else { fprintf(stderr, "[main] Impossibile caricare la tabella exp valore non valido\n"); break; } } #endif Learn some basics of C++ - it doesn't hurt.
  13. open serverfiles suggestion

    Look on last page (15).
  14. 1. char.cpp find void CHARACTER::PointChange(BYTE type, int amount, bool bAmount, bool bBroadcast) after: case POINT_EXP: [ ... ] else { if (gPlayerMaxLevel <= GetLevel()) return; add: if (GetMapIndex() == 1 && GetLevel >= 75) //instead of 1 insert your map index and instead of 75 insert your level return; Mind that it will also block exp from missions.
  15. open serverfiles suggestion

    I'm using these from the beggining so you can grab this.
×