Jump to content
  • 0

Changing what happens when clicking textTail


Ozuromo
Go to solution Solved by Sonitex,

Question

So I'm trying to change what happens when I click the textTail of a dropped Item, but i'm not finding what function do I need to change, any tips?

Link to post

2 answers to this question

Recommended Posts

  • 1
  • VIP
  • Solution

PythonPlayerInputMouse.cpp

void CPythonPlayer::NEW_RefreshMouseWalkingDirection()
{
	CInstanceBase* pkInstMain = NEW_GetMainActorPtr();
	if (!pkInstMain) return;

	switch (m_eReservedMode)
	{
		case MODE_CLICK_ITEM:
		{
			CPythonItem& rkIT=CPythonItem::Instance();

			TPixelPosition kPPosPickedItem;
			if (rkIT.GetGroundItemPosition(m_dwIIDReserved, &kPPosPickedItem))
			{
				if (pkInstMain->NEW_GetDistanceFromDestPixelPosition(kPPosPickedItem)<20.0f)
				{
					CPythonNetworkStream& rkNetStream=CPythonNetworkStream::Instance();

					TPixelPosition kPPosCur;
					pkInstMain->NEW_GetPixelPosition(&kPPosCur);

					float fCurRot=pkInstMain->GetRotation();
					rkNetStream.SendCharacterStatePacket(kPPosCur,  fCurRot, CInstanceBase::FUNC_WAIT, 0);
					SendClickItemPacket(m_dwIIDReserved);

					pkInstMain->NEW_Stop();

					__ClearReservedAction();
				}
				else
				{
					pkInstMain->NEW_MoveToDestPixelPositionDirection(kPPosPickedItem);
				}
			}
			else
			{
				__ClearReservedAction();
			}

			break;
		}

Try this :) 

Link to post
Guest
This topic is now closed to further replies.


  • Activity

    1. 19

      Boss Effect Over Head

    2. 1

      Arabian Camel

    3. 0

      compilling error

    4. 8

      open Allow armor change only every 5 seconds

    5. 1

      Arabian Camel

    6. 0

      K inventory System Help FIx bug

    7. 12

      MDE - Animated Weapons

    8. 12

      MDE - Animated Weapons

  • Recently Browsing

    No registered users viewing this page.

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