-
Posts
137 -
Joined
-
Last visited
-
Days Won
9 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Rideas
-
https://metin2.download/picture/28plZCq4L4HH5ep31TcIrFwqT760sb83/.png
-
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
-
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
-
client error Shoulder sash
Rideas replied to skill178's topic in Community Support - Questions & Answers
change ACCOUNT_CHARACTER_SLOT_ACCE ;)- 1 reply
-
- 1
-
Upload to exchange.cpp
-
syserr.txt ? Unfortunately, no sysser Filezilla syserr or syslog ?
-
Shoulder sash source error
Rideas replied to skill178's topic in Community Support - Questions & Answers
No problem ,thanks my post -
Shoulder sash source error
Rideas replied to skill178's topic in Community Support - Questions & Answers
Open Makefile Search: item_manager_read_tables.cpp change item_manager_read_tables.cpp acce.cpp -
syserr.txt ?
-
if (IsEnemy()) change all if (IsEnemy() || IsStone())
-
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; } }
-
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); } }
-
[problem]item_select_cell
Rideas replied to Casawir's topic in Community Support - Questions & Answers
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; } -
To take not damage
-
Thanks
-
-
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);
-
No problem bro
-
But in this way it does not cause problems .
-
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); } }
-
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); } }