- Joined
- Apr 11, 2005
- Messages
- 290
- Reaction score
- 206
I talk about mail system, if you add friend with name %n or try send mail, server crash
Yes, You're right. Data server crash.
I will try to fix it tomorrow.
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!I talk about mail system, if you add friend with name %n or try send mail, server crash
So far Elemental Damage Info, Auto Loot Everything and Muuns are only things I found to get to fix.Still on status of testing.
Critical bug: Player can crash server typing "%n" in friend chat , name field
I talk about mail system, if you add friend with name %n or try send mail, server crash
This is not even close to a great solution, but it avoid the crashes, as intended. The Friend System is not crashing when % sign is typed. Can you be more specific?
StdAfx.h
Code:#include <boost/algorithm/string/replace.hpp>
DSprotocol.cpp
Code:void CDataServerProtocol::ReqInGameShopItemGift(short aIndex, ISHOP_ITEM_GIFT *aRecv) { std::string strMessage; ... strMessage = aRecv->Message; boost::replace_all(strMessage, "%", "%%"); this->m_ItemShopDB.ExecQuery("EXEC WZ_IBS_AddGift '%s', %d, %d, %d, %d, '%s', '%s'", aRecv->TargetName, aRecv->ID1, aRecv->ID2, aRecv->ID3, 2, aRecv->Name, strMessage.c_str()); ... } void CDataServerProtocol::ReqInGameShopPackageGift(short aIndex, LPBYTE aRecv) { std::string strMessage; ... strMessage = lpMsg->Message; boost::replace_all(strMessage, "%", "%%"); for(int i=0;i<lpMsg->Count;i++) { lpItem = (ISHOP_ITEM_PACKAGE *)(aRecv + sizeof(ISHOP_ITEM_GIFT_PACKAGE) + i * sizeof(ISHOP_ITEM_PACKAGE)); this->m_ItemShopDB.ExecQuery("EXEC WZ_IBS_AddGift '%s', %d, %d, %d, %d, '%s', '%s'", lpMsg->TargetName, lpItem->ID1, lpItem->ID2, lpItem->ID3, 2, lpMsg->Name, strMessage.c_str()); ... }
-- Edit --
Friend System uses Binary storage, so it is not affected by % sign.
Code:wsprintf(szMsg, "UPDATE T_FriendMail SET Subject=? where MemoIndex=%d AND GUID=%d", memo_index, guid); this->m_MailDB.SetAsBinary(szMsg, (LPBYTE)lpMemoSendHdr->Subject, 60); ... wsprintf(szMsg, "UPDATE T_FriendMail SET Memo=? where MemoIndex=%d AND GUID=%d", memo_index, guid); this->m_MailDB.SetAsBinary(szMsg, (LPBYTE)sMemo, memo_size);
[]'s
Know someone what opcodes (SERV->CLIENT) are for Hunting_LOG ?
I have only damage per sec. done but i want to make list of all huntings.
Hunting Log Server <-> Client use Protocols headcode 0xEC . subcode from 0x50 -> 0x55
C->S
0x50 : CGReqHuntingRecordWndtOpen
0x51 : CGReqHuntingRecordWndtClose
0x52 : CGReqHuntingRecordInfoUserOpen
0x54 : CGReqHuntingRecordInfoUserOpenGet
S->C
0x50 : GCHuntingRecordAccrueInfo
0x53 : GCHuntingRecordInfo
0x54 : HuntingRecordInfoUserOpenGet
0x55 : GCHuntingCacheRecordInfo
=========================================
Fix my Ferea event . run good now nix + darkness are next...
CashShop is something easiest to fix man.Build File GS 12MB old file rar 7mb ?? Bug Cash Shop Disconect
Hunting Log Server <-> Client use Protocols headcode 0xEC . subcode from 0x50 -> 0x55
C->S
0x50 : CGReqHuntingRecordWndtOpen
0x51 : CGReqHuntingRecordWndtClose
0x52 : CGReqHuntingRecordInfoUserOpen
0x54 : CGReqHuntingRecordInfoUserOpenGet
S->C
0x50 : GCHuntingRecordAccrueInfo
0x53 : GCHuntingRecordInfo
0x54 : HuntingRecordInfoUserOpenGet
0x55 : GCHuntingCacheRecordInfo
=========================================
Fix my Ferea event . run good now nix + darkness are next...
Nope, Labyrinth not in the files. You’ll need instance server (to make personal room for event like labyrinth & class 4 quest) & Labyrinth Stuff... maybe MUEMU got it in their new updates. Anyone know what’s in the S12 they are selling now? (The one that cost 20$/month)Labyrinth Of Dimensions is not implemented in this server files (or is some fix to run it ? everytime server push me to Lorencia if im trying to go to 115 map)Hunting log is fixable.
Hi can someone help on this.
Can't Mount Raven and Horse on the time
So, Is there any reason people must share their sources to you? If you can’t develop this mess, instead of blaming ppl not sharing their work... you should go back to the stable files season 9 or older ver.No one will going to help this i written many times but they dont care coz they fix it only for themself
Hi can someone help on this.
Can't Mount Raven and Horse on the time