Jump to content

Rideas

Inactive Member
  • Posts

    137
  • Joined

  • Last visited

  • Days Won

    9
  • Feedback

    0%

Everything posted by Rideas

  1. https://metin2.download/picture/28plZCq4L4HH5ep31TcIrFwqT760sb83/.png
  2. I am confused as to how this is supposed to work: - weekend will hold the weekday as number (e.g 6) - day will hold % + weekday's full name (e.g %Saturday) - or simply '%', not quite sure how it's parsed. (ref for what the os.date yields: [Hidden Content]). ok it's my falt i have see in lua that is give string [Hidden Content] now i see it agien and i see it's give number function is_weekend() local weekend = os.date("%w") local day = os.date("%%A") if day == "Saturday" then return true else return false end end
  3. function is_weekend() local weekend = os.date("%w") local day = os.date("%%A") if day == "Saturday" then return true else return false end end I am confused as to how this is supposed to work: - weekend will hold the weekday as number (e.g 6) - day will hold % + weekday's full name (e.g %Saturday) - or simply '%', not quite sure how it's parsed. (ref for what the os.date yields: [Hidden Content]). Hahahahaha lol
  4. syserr.txt ? Unfortunately, no sysser Filezilla syserr or syslog ?
  5. Open Makefile Search: item_manager_read_tables.cpp change item_manager_read_tables.cpp acce.cpp
  6. if (IsEnemy()) change all if (IsEnemy() || IsStone())
  7. open char_item.cpp Search: if (item->GetWearFlag() & WEARABLE_UNIQUE) { if ((GetWear(WEAR_UNIQUE1) && GetWear(WEAR_UNIQUE1)->IsSameSpecialGroup(item)) || (GetWear(WEAR_UNIQUE2) && GetWear(WEAR_UNIQUE2)->IsSameSpecialGroup(item))) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°°Àº Á¾·ùÀÇ À¯´ÏÅ© ¾ÆÀÌÅÛ µÎ °³¸¦ µ¿½Ã¿¡ ÀåÂøÇÒ ¼ö ¾ø½À´Ï´Ù.")); return false; } if (marriage::CManager::instance().IsMarriageUniqueItem(item->GetVnum()) && !marriage::CManager::instance().IsMarried(GetPlayerID())) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°áÈ¥ÇÏÁö ¾ÊÀº »óÅ¿¡¼­ ¿¹¹°À» Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.")); return false; } } after add: if (item->GetWearFlag() & WEARABLE_UNIQUE) { if ((GetWear(WEAR_RING1) && GetWear(WEAR_RING1)->IsSameSpecialGroup(item)) || (GetWear(WEAR_RING2) && GetWear(WEAR_RING2)->IsSameSpecialGroup(item))) { ChatPacket(CHAT_TYPE_INFO, "Bug fix "); return false; } if (marriage::CManager::instance().IsMarriageUniqueItem(item->GetVnum()) && !marriage::CManager::instance().IsMarried(GetPlayerID())) { ChatPacket(CHAT_TYPE_INFO, "Bug fix "); return false; } }
  8. Hi, else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty())ComputeSkill(dwVnum, this);else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty()){FPartyPIDCollector f;GetParty()->ForEachOnMapMember(f, GetMapIndex());for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++){LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);ComputeSkill(dwVnum, ch);}} Replace Without looking up working party to issue if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty()) ComputeSkill(dwVnum, this); else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty()) { FPartyPIDCollector f; GetParty()->ForEachOnMapMember(f, GetMapIndex()); for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++) { LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it); ComputeSkill(dwVnum, ch); } }
  9. int item_select_cell(lua_State* L) { lua_pushboolean(L, 0); if (!lua_isnumber(L, 1)) { return 1; } DWORD cell = (DWORD) lua_tonumber(L, 1); LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); LPITEM item = ch ? ch->GetInventoryItem(cell) : NULL; if (!item) { return 1; } CQuestManager::instance().SetCurrentItem(item); lua_pushboolean(L, 1); return 1; }
  10. Hi devs, exchange.cpp -- open:search: Kod: GetExchange()->SetCompany(victim->GetExchange()); add: Kod: SetPolymorph(30000, true); victim->SetPolymorph(30000, true); SetPKMode(PK_MODE_PROTECT); victim->SetPKMode(PK_MODE_PROTECT); search again: if (GetCompany()->m_lGold) // µ·ÀÌ ÀÖÀ» ¶§¸¸ ÀúÀå victim->Save(); add: Kod: GetOwner()->SetPolymorph(GetOwner()->GetJob(), true); victim->SetPolymorph(victim->GetJob(), true); search again: void CExchange::Cancel() { add: GetOwner()->SetPolymorph(GetOwner()->GetJob(), true); search again: if (empty_pos < 0) { sys_err("Exchange::Done : Cannot find blank position in inventory %s <-> %s item %s", m_pOwner->GetName(), victim->GetName(), item->GetName()); continue; } add: Kod: m_pOwner->SetPolymorph(m_pOwner->GetJob(), true);
  11. But in this way it does not cause problems .
  12. void CHARACTER::UseArrow(LPITEM pkArrow, DWORD dwArrowCount) { int iCount = pkArrow->GetCount(); iCount = iCount - MIN(iCount, dwArrowCount); if (pkArrow->GetVnum() != 79503) pkArrow->SetCount(iCount); DWORD dwVnum = pkArrow->GetVnum(); if (iCount == 0) { LPITEM pkNewArrow = FindSpecifyItem(dwVnum); sys_log(0, "UseArrow : FindSpecifyItem %u %p", dwVnum, get_pointer(pkNewArrow)); if (pkNewArrow) EquipItem(pkNewArrow); } }
  13. void CHARACTER::UseArrow(LPITEM pkArrow, DWORD dwArrowCount) { iCount = iCount - MIN(iCount, dwArrowCount); if (pkArrow->GetVnum() != 88005) pkArrow->SetCount(iCount); DWORD dwVnum = pkArrow->GetVnum(); int iCount = pkArrow->GetCount(); if (iCount == 0) { LPITEM pkNewArrow = FindSpecifyItem(dwVnum); sys_log(0, "UseArrow : FindSpecifyItem %u %p", dwVnum, get_pointer(pkNewArrow)); if (pkNewArrow) EquipItem(pkNewArrow); } }
×
×
  • 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.