Jump to content

Den

Inactive Member
  • Posts

    110
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Everything posted by Den

  1. There are so many ways to "unbug" your polymorph, change party role, autopotion etc. What is happening when you reset party role or autopotion? ComputePoints() is called. While using polymorph marble only ComputeBattlePoints() is called. I've changed it in void CHARACTER::SetPolymorph(DWORD dwRaceNum, bool bMaintainStat) char.cpp: If you don't your players do deal more damage by using ComputePoints() in other functions, you have to check everything and add condition with IsPolymorphed().
  2. All the vnums that are defined in unique_item.h because autopotions are defined by item vnum. So yes, only red/blue autopots.
  3. Enabling/disabling autopotion while being polymorphed increases your damage, yea? If you're talking about this then I think it's a problem with polymorph, not autopotion. Your autopotion helps you to get the correct damage in other way your damage will be lower than it should be. So I would rather fix the calculations after using polymorph marble than disabling autopotion.
  4. 1. Slot is not refreshing (check python files). 2. Wrong wear numeration server/client (check EWearPositions).
  5. char_item.cpp find: Then add this: Btw. why do you want to block it?
  6. If you want to check guild level inside Character class then it'll be something like this: CGuild* pGuild = GetGuild(); if (pGuild) { if (pGuild->GetLevel() > 10) { //your code } else { //your code } }
  7. Leave an empty line at the end of locale/poland/map/index. For new maps try to change every single file name to lowercase e.g. "MapProperty.txt" to "mapproperty.txt.".
  8. Does your item have type ITEM_USE and subtype ITEM_QUEST?
  9. Upload it to pastebin or something like that cause I can't download the file from your attachment.
  10. Try ("SELECT social_id FROM account.account WHERE id ="..pc.get_account_id())
  11. File "game.py", line 1322, in OnMouseLeftButtonUp Show your whole game.py or at least this function (OnMouseLeftButtonUp).
  12. Inventorywindow.py for the positions of the buttons and item slots. uiinventory.py (root) is where the functions are called.
  13. Did you also do that for files in 001000 etc. folders?
  14. Maybe instead of UPDATE use REPLACE INTO somewhere? REPLACE INTO makes a new row if it didn't find one.
  15. Try to change every filename on clientside to lowercase letters e.g. "Setting.txt" to "setting.txt".
  16. 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.
  17. Show your char.cpp line 5239. You probably killed a mob that respawns with 0hp.
  18. The best login/select/empire/create I've ever seen. Good work, keep it up.
  19. 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.
  20. Paste your deviltower_zone quest here.
  21. 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.
×
×
  • 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.