Jump to content

xCoRPeR

Member
  • Posts

    61
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by xCoRPeR

  1. Hi CH-Down Problems. GDB Results: Shop_Manager.CPP/Sell: Functions void CShopManager::Sell(LPCHARACTER ch, BYTE bCell, BYTE bCount) { if (!ch->GetShop()) return; if (!ch->GetShopOwner()) return; if (!ch->CanHandleItem()) return; if (ch->GetShop()->IsPCShop()) return; if (DISTANCE_APPROX(ch->GetX()-ch->GetShopOwner()->GetX(), ch->GetY()-ch->GetShopOwner()->GetY())>2000) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상점과의 거리가 너무 멀어 물건을 팔 수 없습니다.")); return; } LPITEM item = ch->GetInventoryItem(bCell); // special code (Ken) // if (item->GetType() == ITEM_WEAPON || item->GetType() == ITEM_ARMOR || item->GetType() == ITEM_BELT) { char szEventFlag[30]; snprintf(szEventFlag, sizeof(szEventFlag), "%d.Engel", item->GetID()); if (*szEventFlag) { if (quest::CQuestManager::instance().GetEventFlag(szEventFlag)) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("item_engel")); return; } } } // special code (Ken) // if (!item) return; if (item->IsEquipped() == true) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("착용 중인 아이템은 판매할 수 없습니다.")); return; } if (true == item->isLocked()) { return; } if (IS_SET(item->GetAntiFlag(), ITEM_ANTIFLAG_SELL)) return; DWORD dwPrice; if (bCount == 0 || bCount > item->GetCount()) bCount = item->GetCount(); dwPrice = item->GetShopBuyPrice(); if (IS_SET(item->GetFlag(), ITEM_FLAG_COUNT_PER_1GOLD)) { if (dwPrice == 0) dwPrice = bCount; else dwPrice = bCount / dwPrice; } else dwPrice *= bCount; dwPrice /= 5; //세금 계산 DWORD dwTax = 0; int iVal = 0; if (LC_IsYMIR() || LC_IsKorea()) { dwTax = dwPrice * iVal / 100; dwPrice -= dwTax; } else { dwTax = dwPrice * iVal/100; dwPrice -= dwTax; } if (test_server) sys_log(0, "Sell Item price id %d %s itemid %d", ch->GetPlayerID(), ch->GetName(), item->GetID()); const int64_t nTotalMoney = static_cast<int64_t>(ch->GetGold()) + static_cast<int64_t>(dwPrice); if (GOLD_MAX <= nTotalMoney) { sys_err("[OVERFLOW_GOLD] id %u name %s gold %u", ch->GetPlayerID(), ch->GetName(), ch->GetGold()); ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("20억냥이 초과하여 물품을 팔수 없습니다.")); return; } // 20050802.myevan.상점 판매 로그에 아이템 ID 추가 sys_log(0, "SHOP: SELL: %s item name: %s(x%d):%u price: %u", ch->GetName(), item->GetName(), bCount, item->GetID(), dwPrice); if (iVal > 0) ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("판매금액의 %d %% 가 세금으로 나가게됩니다"), iVal); DBManager::instance().SendMoneyLog(MONEY_LOG_SHOP, item->GetVnum(), dwPrice); if (bCount == item->GetCount()) { // 한국에는 아이템을 버리고 복구해달라는 진상유저들이 많아서 // 상점 판매시 속성로그를 남긴다. if (LC_IsYMIR()) item->AttrLog(); ITEM_MANAGER::instance().RemoveItem(item, "SELL"); } else item->SetCount(item->GetCount() - bCount); //군주 시스템 : 세금 징수 CMonarch::instance().SendtoDBAddMoney(dwTax, ch->GetEmpire(), ch); ch->PointChange(POINT_GOLD, dwPrice, false); } İtem.H/68; İnput_Main.CPP/1094 : İnput_Main.CPP/3171: İnput.CPP/102:
  2. Hi My Server Core Crash Problems. #0 0x080c0949 in CHARACTER::UseSkill (this=0x4a1c9000, dwVnum=96, pkVictim=0x0, bUseGrandMaster=true) at char_skill.cpp:2598 2598 char_skill.cpp: No such file or directory. in char_skill.cpp [New LWP 100231] (gdb) bt full #0 0x080c0949 in CHARACTER::UseSkill (this=0x0, dwVnum=4294951336, pkVictim=0xffffc1a8, bUseGrandMaster=40) at char_skill.cpp:2598 bCanUseHorseSkill = <value optimized out> pkSk = (CSkillProto *) 0x28722a4c iCooltime = <value optimized out> lMaxHit = 696492233 dwCur = <value optimized out> iNeededSP = 684429060
  3. Hi Mate Open game/src/input_main.cpp Search : if (((false == ch->IsRiding() && fDist > 25) || fDist > 40) && OXEVENT_MAP_INDEX != ch->GetMapIndex()) Replace: if (((false == ch->IsRiding() && fDist > 750) || fDist > 999) && OXEVENT_MAP_INDEX != ch->GetMapIndex()) Mount bug fixed. Sorry my bad english.
  4. Sorun büyük ihtimal ile client ile game uyuşmazlığı yani mesela Client'de 4 envanter var game dosyasında 5 envanter yada NPC Slotları client de 80 Game dosyasında 40 gibi.
  5. Hello my friends we have problems with my server When I send item it disapper after ten fifteen minutes probably after mysql did update sometimes items disapper but sometimes didn't it is about luck After my game had +500 online we have this problem İs it about DB file ? My file is db/conf.txt My DB : Mainline My Game : Mainline Sorry my english is bad . Kind regards
  6. When you put an item in storage will be lost. Missing content. Edited attractions: Db/Src/ClientManager.cpp
  7. db/src/ClientManager open; Code Search: "SELECT id, window+0, pos, count, vnum, socket0, socket1, socket2 " Code Replace: "SELECT id, window+0, pos, count, vnum, socket0, socket1, socket2, socket3, socket4, socket5 "
  8. Monitoring report exactly what is happening ?Monitoring report exactly what is happening ? They wanted to get me explain that a bit more ? Sorry my bad english . They wanted to get me explain that a bit more ? Sorry my bad englisMonitoring report exactly what is happening ? They wanted to get me explain that a bit more ? Sorry my bad english .
  9. quest ep_kupon begin state start begin when 80014.use begin pc_get_coins("100") syschat("100 EP you won..") pc.remove_item("80014",1) end end Error? RunState: LUA_ERROR: [string "ep_kupon"]:1: attempt to call global `pc_get_coins' (a nil value) WriteRunningStateToSyserr: LUA_ERROR: quest ep_kupon.start click
  10. (gdb) core game.core Core was generated by `game'. Program terminated with signal 11, Segmentation fault. #0 0x080f956a in ?? () (gdb) bt #0 0x080f956a in ?? () #1 0x2a013f00 in ?? () #2 0x0000002a in ?? () #3 0x40c4a800 in ?? () #4 0x00000002 in ?? () #5 0x00000001 in ?? () #6 0x00000000 in ?? () (gdb) quit What's the problem ?
  11. (gdb) core game.core Core was generated by `game'. Program terminated with signal 11, Segmentation fault. #0 0x080f956a in ?? () (gdb) bt #0 0x080f956a in ?? () #1 0x2a013f00 in ?? () #2 0x0000002a in ?? () #3 0x40c4a800 in ?? () #4 0x00000002 in ?? () #5 0x00000001 in ?? () #6 0x00000000 in ?? () (gdb) quit What's the problem ?
  12. I convert the VMDK format, I did not touch the source. [Hidden Content] Kind regards.
  13. [REQUEST]%100 Stun-Ohnmacht (40K SRC - C++) [Hidden Content] My English is bad. Kind Regard's!
  14. Nostalgia Emanuella series http://www.imdb.com/title/tt0095094/?ref_=tt_rec_tt
×
×
  • 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.