Jump to content

Vassy

Inactive Member
  • Posts

    46
  • Joined

  • Last visited

  • Feedback

    0%

About Vassy

Informations

  • Gender
    Male

Recent Profile Visitors

879 profile views

Vassy's Achievements

Enthusiast

Enthusiast (6/16)

  • First Post
  • Collaborator
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

2

Reputation

  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.
×
×
  • 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.