Beiträge von monarchis2
-
-
-
-
You mean a quest "lags" the server? A quest that has a mysql query?
-
Hey guys. I have crazy lag after teleport. I run 'top' command to see the stats. Here's a photo. Can anyone help me?
Bitte melden Sie sich an, um dieses Bild zu sehen. -
This is wrong function. If you do this it will remove a random dragon stone. You need to remove the one you "give".
-
Hey guys. I "Stole" an idea from Rubinum that trades one Dragon Alchemy Stone with a new one with new bonuses. But the function item.remove() doesn't work. Any help?
Code- when 20001.take with item.vnum == 124400 and game.get_event_flag("perlen") == 1 begin
- say(gameforge[get_lang()].dss_trade._010)
- say(gameforge[get_lang()].dss_trade._020)
- say(gameforge[get_lang()].dss_trade._030)
- say("")
- if pc.count_item(124400) >= 1 and pc.money>= 5000000 then
- item.remove()
- pc.give_item2(124300, 1)
- pc.change_gold(-5000000)
- say(gameforge[get_lang()].dss_trade._040)
- say(gameforge[get_lang()].dss_trade._050)
- say("")
- else
- say(gameforge[get_lang()].dss_trade._060)
- say(gameforge[get_lang()].dss_trade._070)
- end
- end
-
Hey guys i cant find why im having this errors. Can anyone help me? I can't understand what's causes the problem.
C- #0 0x0811902b in CExchange::CheckSpace (this=0x2d66ac00) at item.h:45
- victim = 0x49ae2000
- item = <value optimized out>
- i = 165
- bDSInitialized = <value optimized out>
- s_grid1 = {m_iWidth = 5, m_iHeight = 9,
- m_pGrid = 0x46989430 '\001' <repeats 39 times>}
- s_grid2 = {m_iWidth = 5, m_iHeight = 9,
- m_pGrid = 0x46989460 '\001' <repeats 45 times>, "\020"}
- s_grid3 = {m_iWidth = 5, m_iHeight = 9,
- m_pGrid = 0x46989490 '\001' <repeats 45 times>, "\020"}
- s_grid4 = {m_iWidth = 5, m_iHeight = 9,
- m_pGrid = 0x469894c0 '\001' <repeats 24 times>}
- s_vDSGrid = {<std::_Vector_base<short unsigned int,std::allocator<short unsigned int> >> = {
- _M_impl = {<std::allocator<short unsigned int>> = {<__gnu_cxx::new_allocator<short unsigned int>> = {<No data fields>}, <No data fields>},
- _M_start = 0x2b40a800, _M_finish = 0x2b40af80,
- _M_end_of_storage = 0x2b40af80}}, <No data fields>}
- #1 0x081197bd in CExchange::Accept (this=0x2d66b380, bAccept=true)
- at exchange.cpp:677
- iItemCount = 1
- victim = 0x33834000
- ---Type <return> to continue, or q <return> to quit---
- __FUNCTION__ = "Accept"
- #2 0x0814bede in CInputMain::Analyze (this=0x2b85e89c, d=0x2b85e800,
- bHeader=<value optimized out>,
- c_pData=0x4b312000 "\033\004▒\004▒w\"\001▒▒\220") at input_main.cpp:3787
- ch = 0x49ae2000
- iExtraLen = <value optimized out>
- __FUNCTION__ = "Analyze"
- #3 0x08133bb5 in CInputProcessor::Process (this=0x2b85e89c,
- lpDesc=0x2b85e800, c_pvOrig=0x4b312000, iBytes=11,
- r_iBytesProceed=@0xffffa4e8) at input.cpp:101
- iExtraPacketSize = <value optimized out>
- bHeader = 27 '\033'
- c_pszName = 0x36e8fb8c "Exchange"
- c_pData = 0x4b312000 "\033\004▒\004▒w\"\001▒▒\220"
- bLastHeader = <value optimized out>
- iLastPacketLen = 0
- iPacketLen = 11
- __FUNCTION__ = "Process"
- #4 0x0810258d in DESC::ProcessInput (this=0x2b85e800) at desc.cpp:312
- iBytesProceed = 0
- bytes_read = 11
- __FUNCTION__ = "ProcessInput"
- #5 0x0824ee8c in io_loop (fdw=0x29144280) at main.cpp:956
item.h:45
exchange.cpp:677
input_main.cpp:3787
input.cpp:101
desc.cpp:312
main.cpp:956
-
C
- #0 0x08152900 in CItem::GetCount (this=0x393207c0) at item.h:82
- No locals.
- #1 0x0809c81f in CHARACTER::MoveItem (this=0x3886a000, Cell=
- {window_type = 1 '\001', cell = 90}, DestCell=
- {window_type = 1 '\001', cell = 5}, count=25 '\031')
- at char_item.cpp:6233
- item = 0x393207c0
- #2 0x08145d42 in CInputMain::ItemMove (this=0x2b85e89c, ch=0x3886a000,
- data=0x4fba1000 "\r\001Z") at input_main.cpp:1098
- No locals.
- #3 0x0814bd1a in CInputMain::Analyze (this=0x2b85e89c, d=0x2b85e800,
- bHeader=<value optimized out>, c_pData=0x4fba1000 "\r\001Z")
- at input_main.cpp:3765
- ch = 0x3886a000
- iExtraLen = <value optimized out>
- __FUNCTION__ = "Analyze"
- #4 0x08133b75 in CInputProcessor::Process (this=0x2b85e89c,
- lpDesc=0x2b85e800, c_pvOrig=0x4fba1000, iBytes=9,
- r_iBytesProceed=@0xffffa4e8) at input.cpp:101
- iExtraPacketSize = <value optimized out>
- bHeader = 13 '\r'
- c_pszName = 0x46a1720c "ItemMove"
- c_pData = 0x4fba1000 "\r\001Z"
- ---Type <return> to continue, or q <return> to quit---
- bLastHeader = <value optimized out>
- iLastPacketLen = 0
- iPacketLen = 9
- __FUNCTION__ = "Process"
- #5 0x0810254d in DESC::ProcessInput (this=0x2b85e800) at desc.cpp:312
- iBytesProceed = 0
- bytes_read = 9
- __FUNCTION__ = "ProcessInput"
- #6 0x0824eeec in io_loop (fdw=0x29144280) at main.cpp:956
- sock_buf_size = 0
- ret = 0
- iRet = <value optimized out>
- num_events = 16
- event_idx = 13
- __FUNCTION__ = "io_loop"
- #7 0x0824f899 in idle () at main.cpp:839
- now = {tv_sec = 1518777953, tv_usec = 577688}
- passed_pulses = <value optimized out>
- t = 10708617
- pta = {tv_sec = 1518777953, tv_usec = 17167}
- process_time_count = 14
- #8 0x08250f77 in main (argc=138114984, argv=0x0) at main.cpp:505
- sectree_manager = {<singleton<SECTREE_MANAGER>> = {
-
I won't pay to resellers sorry.
-
Hello community. Can we make this system, Private Shop Search to make it work on Offline Shop System by Ken?
Bitte melden Sie sich an, um diesen Link zu sehen.
-
-
-
It's really importannt. I think it has to do with Destroy item system (New drop dialog).
-
And this error: DestroyItem: WTH! Invalid item owner. owner pointer : 0x5180a000
Code- LPITEM CItem::RemoveFromCharacter()
- {
- if (!m_pOwner)
- {
- sys_err("Item::RemoveFromCharacter owner null");
- return (this);
- }
- LPCHARACTER pOwner = m_pOwner;
- if (m_bEquipped) // 장착되었는가?
- {
- Unequip();
- //pOwner->UpdatePacket();
- SetWindow(RESERVED_WINDOW);
- Save();
- return (this);
- }
- else
- {
- if (GetWindow() != SAFEBOX && GetWindow() != MALL)
- {
- if (IsDragonSoul())
- {
- if (m_wCell >= DRAGON_SOUL_INVENTORY_MAX_NUM)
- sys_err("CItem::RemoveFromCharacter: pos >= DRAGON_SOUL_INVENTORY_MAX_NUM");
- else
- pOwner->SetItem(TItemPos(m_bWindow, m_wCell), NULL);
- }
- else
- {
- TItemPos cell(INVENTORY, m_wCell);
- if (false == cell.IsDefaultInventoryPosition() && false == cell.IsBeltInventoryPosition()) // 아니면 소지품에?
- sys_err("CItem::RemoveFromCharacter: Invalid Item Position");
- else
- {
- pOwner->SetItem(cell, NULL);
- }
- }
- }
- m_pOwner = NULL;
- m_wCell = 0;
- SetWindow(RESERVED_WINDOW);
- Save();
- return (this);
- }
- }
-
How to fix this error?
RemoveFromCharacter: Item::RemoveFromCharacter owner null
-
P2PJoin: member is not in same channel PID: 2553 channel 4, this channel 1
Any fix?Code- void CParty::P2PJoin(DWORD dwPID)
- {
- TMemberMap::iterator it = m_memberMap.find(dwPID);
- if (it == m_memberMap.end())
- {
- TMember Member;
- Member.pCharacter = NULL;
- Member.bNear = false;
- if (m_memberMap.empty())
- {
- Member.bRole = PARTY_ROLE_LEADER;
- m_dwLeaderPID = dwPID;
- }
- else
- Member.bRole = PARTY_ROLE_NORMAL;
- if (m_bPCParty)
- {
- LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(dwPID);
- if (ch)
- {
- sys_log(0, "PARTY: Join %s pid %u leader %u", ch->GetName(), dwPID, m_dwLeaderPID);
- Member.strName = ch->GetName();
- if (Member.bRole == PARTY_ROLE_LEADER)
- m_iLeadership = ch->GetLeadershipSkillLevel();
- }
- else
- {
- CCI * pcci = P2P_MANAGER::instance().FindByPID(dwPID);
- if (!pcci);
- else if (pcci->bChannel == g_bChannel)
- Member.strName = pcci->szName;
- else
- sys_err("member is not in same channel PID: %u channel %d, this channel %d", dwPID, pcci->bChannel, g_bChannel);
- }
- }
- sys_log(2, "PARTY[%d] MemberCountChange %d -> %d", GetLeaderPID(), GetMemberCount(), GetMemberCount()+1);
- m_memberMap.insert(TMemberMap::value_type(dwPID, Member));
- if (m_memberMap.size() == 1)
- m_itNextOwner = m_memberMap.begin();
- if (m_bPCParty)
- {
- CPartyManager::instance().SetPartyMember(dwPID, this);
- SendPartyJoinOneToAll(dwPID);
- LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(dwPID);
- if (ch)
- SendParameter(ch);
- }
- }
- if (m_pkDungeon)
- {
- m_pkDungeon->QuitParty(this);
- }
- }
-
It's the classic code. What map do you mean?
Code- void CParty::P2PJoin(DWORD dwPID)
- {
- TMemberMap::iterator it = m_memberMap.find(dwPID);
- if (it == m_memberMap.end())
- {
- TMember Member;
- Member.pCharacter = NULL;
- Member.bNear = false;
- if (m_memberMap.empty())
- {
- Member.bRole = PARTY_ROLE_LEADER;
- m_dwLeaderPID = dwPID;
- }
- else
- Member.bRole = PARTY_ROLE_NORMAL;
- if (m_bPCParty)
- {
- LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(dwPID);
- if (ch)
- {
- sys_log(0, "PARTY: Join %s pid %u leader %u", ch->GetName(), dwPID, m_dwLeaderPID);
- Member.strName = ch->GetName();
- if (Member.bRole == PARTY_ROLE_LEADER)
- m_iLeadership = ch->GetLeadershipSkillLevel();
- }
- else
- {
- CCI * pcci = P2P_MANAGER::instance().FindByPID(dwPID);
- if (!pcci);
- else if (pcci->bChannel == g_bChannel)
- Member.strName = pcci->szName;
- else
- sys_err("member is not in same channel PID: %u channel %d, this channel %d", dwPID, pcci->bChannel, g_bChannel);
- }
- }
- sys_log(2, "PARTY[%d] MemberCountChange %d -> %d", GetLeaderPID(), GetMemberCount(), GetMemberCount()+1);
- m_memberMap.insert(TMemberMap::value_type(dwPID, Member));
- if (m_memberMap.size() == 1)
- m_itNextOwner = m_memberMap.begin();
- if (m_bPCParty)
- {
- CPartyManager::instance().SetPartyMember(dwPID, this);
- SendPartyJoinOneToAll(dwPID);
- LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(dwPID);
- if (ch)
- SendParameter(ch);
- }
- }
- if (m_pkDungeon)
- {
- m_pkDungeon->QuitParty(this);
- }
- }
-
P2PJoin: member is not in same channel PID: 2553 channel 4, this channel 1
Any fix? -
Hey guys. We chat and he ask if he can release it. No problem from me. Piece!