Jump to content

revengertmt

Member
  • Posts

    86
  • Joined

  • Last visited

About revengertmt

Informations

  • Gender
    Male

Recent Profile Visitors

1,711 profile views

revengertmt's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

6

Reputation

  1. go in navicat on player database in skill_proto tables search skill what you want to increase the range, and select him example: ( skill 94 Belssing of dragon) and roll to right at collum dwTargetRange then increase the range of skill I will back with some photo //up
  2. // LOCALE_SERVICE const int FILE_NAME_LEN = 256; char szCommonDropItemFileName[FILE_NAME_LEN]; char szETCDropItemFileName[FILE_NAME_LEN]; char szMOBDropItemFileName[FILE_NAME_LEN]; char szDropItemGroupFileName[FILE_NAME_LEN]; char szSpecialItemGroupFileName[FILE_NAME_LEN]; char szMapIndexFileName[FILE_NAME_LEN]; char szItemVnumMaskTableFileName[FILE_NAME_LEN]; char szDragonSoulTableFileName[FILE_NAME_LEN]; snprintf(szCommonDropItemFileName, sizeof(szCommonDropItemFileName), "%s/common_drop_item.txt", LocaleService_GetBasePath().c_str()); snprintf(szETCDropItemFileName, sizeof(szETCDropItemFileName), "%s/etc_drop_item.txt", LocaleService_GetBasePath().c_str()); snprintf(szMOBDropItemFileName, sizeof(szMOBDropItemFileName), "%s/mob_drop_item.txt", LocaleService_GetBasePath().c_str()); snprintf(szSpecialItemGroupFileName, sizeof(szSpecialItemGroupFileName), "%s/special_item_group.txt", LocaleService_GetBasePath().c_str()); snprintf(szDropItemGroupFileName, sizeof(szDropItemGroupFileName), "%s/drop_item_group.txt", LocaleService_GetBasePath().c_str()); snprintf(szMapIndexFileName, sizeof(szMapIndexFileName), "%s/index", LocaleService_GetMapPath().c_str()); snprintf(szItemVnumMaskTableFileName, sizeof(szItemVnumMaskTableFileName), "%s/ori_to_new_table.txt", LocaleService_GetBasePath().c_str()); snprintf(szDragonSoulTableFileName, sizeof(szDragonSoulTableFileName), "%s/dragon_soul_table.txt", LocaleService_GetBasePath().c_str()); ?????
  3. How i can combine this 2 sys???? switch (item->GetVnum()) { case 80003: case 80004: case 80005: case 80006: case 80007: { static const int sGold[5] = { 50000, ///< 80003 100000, ///< 80004 500000, ///< 80005 1000000, ///< 80006 2000000 ///< 80007 }; if (IsOpenSafebox() || GetExchange() || GetMyShop() || IsCubeOpen()) { ChatPacket(CHAT_TYPE_INFO, "Nu poti folosi lingouri in timp ce negociezi."); return false; } const int amount = sGold[item->GetVnum() - 80003]; if ((GOLD_MAX - amount) <= GetGold()) { ChatPacket(CHAT_TYPE_INFO, "Nu poti detine mai mult de 2kkk Yang."); return false; } item->SetCount(item->GetCount() - 1); PointChange(POINT_GOLD, amount, true); } break; default: break; }
  4. I have edited! bool CHARACTER::ChangeGoldBars(DWORD dwVnum) { long long dlCount = 0; for(int i = 0; i < GOLD_BARS_NUM; i++) { if(GoldBarsItems[i] == dwVnum) { dlCount = GoldBarsValue[i]; break; } } if(dlCount ==0) return false; SQLMsg* pMsg = DBManager::instance().DirectQuery("UPDATE player.player SET gold = gold + '%lld' WHERE id = '%d'", dlCount,GetPlayerID()); bool bSucc = (pMsg->uiSQLErrno == 0); delete(pMsg); if (!bSucc) { sys_err("[GOLD] Nu poate fi predat!(a aparut o eroare)"); } else { LogManager::instance().GoldBarsLog(GetAID(), GetPlayerID(), dwVnum, dlCount); ChatPacket(CHAT_TYPE_INFO,"<SYSTEM> You received [%d] Yang",dlCount); } return bSucc; }
  5. wtf? char.cpp:7545: error: 'ChangeGold' was not declared in this scope
  6. about the same problem .... I want to save myself in the log table when using one of: vnum, written above
  7. bro you are amazing!:X tnx can you help me improve this??? char.cpp void CHARACTER::ChangeGold(long gold) { DBManager::instance().SendMoneyLog(MONEY_LOG_QUEST, GetPlayerID(), gold); PointChange(POINT_GOLD, gold, true); } char.h void ChangeGold(long gold = 0); char_item.cpp switch (item->GetVnum()) { case 80003: // 50kk case 80004: // 100kk case 80005: // 250kk case 80006: // 500kk??? case 80007: // 1kkk??? int idx[5]; idx[0] = 50000000; idx[1] = 100000000; idx[2] = 250000000; idx[3] = 500000000; idx[4] = 1000000000; int idax; if (item->GetVnum() == 80003) idax = 0; if (item->GetVnum() == 80004) idax = 1; if (item->GetVnum() == 80005) idax = 2; if (item->GetVnum() == 80006) idax = 3; if (item->GetVnum() == 80007) idax = 4; long val; val = idx[idax]; ChangeGold(val); item->SetCount(item->GetCount() - 1); return 1; break; default: break; } I have yang type long long
×
×
  • 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.