Jump to content

Vassy

Inactive Member
  • Posts

    46
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Vassy

  1. Is about the Aceept function. Not the CheckSpace.
  2. As i sayd above, this are the files from my server where i dont have the bug. I get in chat "The person you are trying to trade has the inventory full." Look. Here is the function that checks the inventory space. locale_string.txt and ASCI version Good luck.
  3. It works. I was that dumb and not testing with the correct item. In my if condition are actually 200 vnum but here i posted only 19060. #Solved.
  4. exchange.h exchange.cpp *Note that i dont have extented spaces for the exchange dialog. Is the default 12 sockets exchange.
  5. I dont have this bug on my server. If you want i can give you my exchange.cpp file.
  6. Hi. I want to add max 3 bonuses on some items. I found in char_item.cpp this function: case USE_ADD_ATTRIBUTE : []...[] if (item2->GetAttributeCount() < 4) { // 연재가 특수처리 // 절대로 연재가 추가 안될거라 하여 하드 코딩함. if (item->GetVnum() == 71152 || item->GetVnum() == 76024) { if ((item2->GetType() == ITEM_WEAPON) || (item2->GetType() == ITEM_ARMOR && item2->GetSubType() == ARMOR_BODY)) { bool bCanUse = true; for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i) { if (item2->GetLimitType(i) == LIMIT_LEVEL && item2->GetLimitValue(i) > 40) { bCanUse = false; break; } } if (false == bCanUse) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("적용 레벨보다 높아 사용이 불가능합니다.")); break; } } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("무기와 갑옷에만 사용 가능합니다.")); break; } } char buf[21]; snprintf(buf, sizeof(buf), "%u", item2->GetID()); item2->AddAttribute(); ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성 추가에 성공하였습니다.")); int iAddedIdx = item2->GetAttributeCount() - 1; LogManager::instance().ItemLog( GetPlayerID(), item2->GetAttributeType(iAddedIdx), item2->GetAttributeValue(iAddedIdx), item->GetID(), "ADD_ATTRIBUTE2_SUCCESS", buf, GetDesc()->GetHostName(), item->GetOriginalVnum()); item->SetCount(item->GetCount() - 1); } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더이상 이 아이템을 이용하여 속성을 추가할 수 없습니다.")); } I saw in the funcions above the line if (item2->GetAttributeCount() < 4) { so i adapted a funcions which looks like this if (item2->GetVnum() == 19060) { if (item2->GetAttributeCount() < 3) { // 연재가 특수처리 // 절대로 연재가 추가 안될거라 하여 하드 코딩함. char buf[21]; snprintf(buf, sizeof(buf), "%u", item2->GetID()); item2->AddAttribute(); ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성 추가에 성공하였습니다.")); int iAddedIdx = item2->GetAttributeCount() - 1; LogManager::instance().ItemLog( GetPlayerID(), item2->GetAttributeType(iAddedIdx), item2->GetAttributeValue(iAddedIdx), item->GetID(), "ADD_ATTRIBUTE2_SUCCESS", buf, GetDesc()->GetHostName(), item->GetOriginalVnum()); item->SetCount(item->GetCount() - 1); } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더이상 이 아이템을 이용하여 속성을 추가할 수 없습니다.")); } } else { if (item2->GetAttributeCount() < 4) { // 연재가 특수처리 // 절대로 연재가 추가 안될거라 하여 하드 코딩함. if (item->GetVnum() == 71152 || item->GetVnum() == 76024) { if ((item2->GetType() == ITEM_WEAPON) || (item2->GetType() == ITEM_ARMOR && item2->GetSubType() == ARMOR_BODY)) { bool bCanUse = true; for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i) { if (item2->GetLimitType(i) == LIMIT_LEVEL && item2->GetLimitValue(i) > 40) { bCanUse = false; break; } } if (false == bCanUse) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("적용 레벨보다 높아 사용이 불가능합니다.")); break; } } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("무기와 갑옷에만 사용 가능합니다.")); break; } } char buf[21]; snprintf(buf, sizeof(buf), "%u", item2->GetID()); item2->AddAttribute(); ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성 추가에 성공하였습니다.")); int iAddedIdx = item2->GetAttributeCount() - 1; LogManager::instance().ItemLog( GetPlayerID(), item2->GetAttributeType(iAddedIdx), item2->GetAttributeValue(iAddedIdx), item->GetID(), "ADD_ATTRIBUTE2_SUCCESS", buf, GetDesc()->GetHostName(), item->GetOriginalVnum()); item->SetCount(item->GetCount() - 1); } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더이상 이 아이템을 이용하여 속성을 추가할 수 없습니다.")); } } Soo, now when i add bonuses on the item with vnum 19060, should be added only 3 bonuses. The only problem i have is that this just dont work. Did someone have any ideas? Thanks and sorry for my bad english.
  7. Hi. I want to limit the max number of bonuses on an item. Let's say you can add on an item 4 bonuses (without marble). How i can limit that to max 3 bonuses? Thanks.
  8. Hi. Im almost sure i saw somewhere a tutorial to see the full OX question. Did someone know how?
  9. As i sayd, you have to destroy metins for the books. I checked by IP and he has only one account. Event if he had from somewhere all the books and SS, he cant have 3 skills M at level 38. You have to have level 51 for 3 skills M.
  10. Hi guys. A player from my server had 3 skills P at level 38. Note that on my server the skillbooks and SS needs to be farmed and he has only 400 minutes gameplay. What can be the problem? I found this on YT but my launcher is encrypted with mpress. Thanks. EDIT: He also had unlimited CD on Charge skill.
  11. Note that item_proto and mob_proto have their own LZO key, separate from Index/Pack keys. Also be sure you edited the headers aswell. MCOZ, EPKD, etc.
  12. Hi guys. On monday im gonna buy a VPS to install my server on IT. The problem is that i never installed a server on a VPS from 0. Until now, i buy a VPS with metin2 server on it and all i do is to rm -rf game and install mine (same with mysql). Can someone give me a tutorial how to install metin2 server on a fresh FreeBSD VPS? Thanks.
  13. Hi guys. I have a problem on the server. The ores dont spawn in any map. Where is the function that should spwan the ores? Thanks.
  14. Thank you soo much guys. I upgraded to 2GB and all looks good. I have 1GB free. I was not sure if the Mem tab refers to the RAM memory. Im very new in FreeBSD and who knows to what memory was refering to... Thanks you agian. Problem solved.
  15. Hi guys. I have a problem with my server. Sometimes i get extreme lag and i get in syserr "heart_idle: losing x seconds. (lag occured)". I tryed to look into this problem and using the "top" command i saw that this problem happens when Free memory tab is very low. I attached a photo to understand better what i talk about. Now is 15MB and the server runs fine (even if still very low memory), but sometimes the Free memory drops at about 3KB and i get lag. Now, i want to know in first place if this is reffering to the RAM memory and not some virtual memory and secound, how i can solve the problem? The RAM memory from the host is 1GB (at least that's what they say). Thanks and sorry for my bad english.
  16. Hm... I wonder where they have the ox map (113). I put your MAP ALLOW in my game99 and ox map dont work. (i put everythng from game99 in channel1 (split per cores) .
  17. No man. I dont want to use blessing scrolls as an upgrade item. I want to USE the blessing scroll to make them +. Exactly how you use the blessing scroll for an armour for example. I dont want the players to lose the stone.
  18. I did this ma friend. I can make stones + at blacksmith. I want to make them + with Blessing Scroll.
×
×
  • 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.