Jump to content
  • 0

Status overflow with autoclicker


DarkUffo

Question

3 answers to this question

Recommended Posts

  • 0
  • VIP
Posted (edited)

You can try to add a pulse for that.
 

/// 1. @ common/service.h
// Add
#define __CHANGE_STAT_PULSE__

/// 2. @ game/char.h
// Search
};

ESex GET_SEX(LPCHARACTER ch);

// Add above
#if defined(__CHANGE_STAT_PULSE__)
public:
	int GetChangeStatPulse() { return m_iChangeStatPulse; }
	void SetChangeStatPulse(int iPulse) { m_iChangeStatPulse = iPulse; }

protected:
	int m_iChangeStatPulse;
#endif

/// 3. @ char.cpp
// Search @ void CHARACTER::Initialize
	m_dwNextStatePulse = 0;

// Add below
#if defined(__CHANGE_STAT_PULSE__)
	m_iChangeStatPulse = 0;
#endif

/// 4. @ cmd_general.cpp
// Search @ ACMD(do_stat)
	if (ch->GetRealPoint(idx) >= MAX_STAT)
		return;

// Add below
#if defined(__CHANGE_STAT_PULSE__)
	if (ch->GetChangeStatPulse() > thecore_pulse())
	{
		if (test_server)
			ch->ChatPacket(CHAT_TYPE_INFO, "Slow down, you're changing stats to fast!");
		return;
	}
	ch->SetChangeStatPulse(thecore_pulse() + PASSES_PER_SEC(10 * 1));
#endif

 

Edited by Owsap
  • Metin2 Dev 1
  • Love 1
Link to post
  • 0

tf is anyone using an autoclicker for xD
And you got that multiple stats add(lclick+ctrl) from what i can see in your preview

Edited by MrQuin
  • Lmao 3
  • Sad 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Activity

    1. 1

      Arabian Camel

    2. 0

      compilling error

    3. 8

      open Allow armor change only every 5 seconds

    4. 1

      Arabian Camel

    5. 0

      K inventory System Help FIx bug

    6. 12

      MDE - Animated Weapons

    7. 12

      MDE - Animated Weapons

    8. 0

      [Graphic-Portfolio] Winders

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