Jump to content

Picking up close item with mouse click and with full inventory result in ChatPacket spam


Go to solution Solved by Syreldar,

Recommended Posts

  • Active Member

Hey guys,

anyone got an idea why I'm getting ChatPacket spam with full inventory only in that case when I'm "standing really close on the item" and trying to pick the item up with mouse click?

File: char_item.cpp

Spoiler
					if ((iEmptyCell = GetEmptyInventory(item->GetSize())) == -1)
					{
						sys_log(0, "No empty inventory pid %u size %ud itemid %u", GetPlayerID(), item->GetSize(), item->GetID());
						ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Not enough inventory space."));
						return false;
					}

 

Channel syslog:

Spoiler
----Start of close pickup spam----
Jun  6 11:30:07 :: No empty inventory pid 1 size 2d itemid 10008233
Jun  6 11:30:09 :: No empty inventory pid 1 size 2d itemid 10008233
Jun  6 11:30:09 :: No empty inventory pid 1 size 2d itemid 10008233
Jun  6 11:30:09 :: No empty inventory pid 1 size 2d itemid 10008233
Jun  6 11:30:09 :: No empty inventory pid 1 size 2d itemid 10008233
Jun  6 11:30:09 :: No empty inventory pid 1 size 2d itemid 10008233
----End of close pickup spam----

----Pickup item from a far distance = 0 spam----
Jun  6 11:30:58 :: No empty inventory pid 1 size 2d itemid 10008233
----Pickup item from a far distance = 0 spam----

 

I would be really glad, if someone can help me to fix this "bug", I think it's default bug in every source, but not noticeable.

Thanks for possible answers!

Sincerely,

ReFresh

Edited by ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 5 months later...
  • Premium
  • Solution

Source/Client/UserInterface/PythonPlayerInput.cpp:

In: 

void CPythonPlayer::__OnPressItem(CInstanceBase & rkInstMain, DWORD dwPickedItemID)

search for:

	rkInstMain.NEW_Stop();

add above:

	NEW_SetMouseSmartState(MBS_CLICK, false);

 

By the way, You should really start marking your topics where you got an answer as solved, and also start giving at least reactions to them, you know, it would be the bare minimum since you've been here asking things and help for years.

  • Metin2 Dev 2

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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