Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
!-->
  • 0

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


ReFresh

Question

  • Premium

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

3 answers to this question

Recommended Posts

  • 1
  • Premium

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

!-->

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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