Jump to content
Maintenance ×
×
×
  • Create New...

How To Fix / Block Yang Spammer


Recommended Posts

  • Bot

I heard about a tool that does this:  

Quote

while True: net.SendGoldDropPacketNew(1)

 

WITHOUT SOURCE & WITH SOURCE:

HOW TO ADD TIME LIMIT IN GAME:

Quote

/event gold_drop_limit_time 30

(THIS IS TIME LIMIT OF 30 SECONDS)

HOW TO ADD TIME LIMIT INTO SOURCE:

Open questmanager.cpp and change:

Quote

DWORD g_GoldDropTimeLimitValue = 0;

 

With:

 

Quote

DWORD g_GoldDropTimeLimitValue = 30*1000;

(This is an example, 30 are seconds)

 

HOW TO DISABLE THE FUNCTION:

The fix is very easy, let's open the source of your binary, and go into char_item.cpp, find this:

bool CHARACTER::DropGold(int gold)
{
	if (gold <= 0 || gold > GetGold())
		return false;

	if (!CanHandleItem())
		return false;

	if (0 != g_GoldDropTimeLimitValue)
	{
		if (get_dword_time() < m_dwLastGoldDropTime+g_GoldDropTimeLimitValue)
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't do this action. Wait the time limit."));
			return false;
		}
	}

	m_dwLastGoldDropTime = get_dword_time();

	LPITEM item = ITEM_MANAGER::instance().CreateItem(1, gold);

	if (item)
	{
		PIXEL_POSITION pos = GetXYZ();

		if (item->AddToGround(GetMapIndex(), pos))
		{
			PointChange(POINT_GOLD, -gold, true);

			if (gold > 1000) LogManager::instance().CharLog(this, gold, "DROP_GOLD", "");

			item->StartDestroyEvent(150);
			//ChatPacket(CHAT_TYPE_INFO, LC_TEXT("떨어진 아이템은 %d분 후 사라집니다."), 150/60);
		}

		Save();
		return true;
	}
	return false;
}

Replace this with:

bool CHARACTER::DropGold(int gold)
{
	return false;
}

 

 

Finish!

  • Love 1

english_banner.gif

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
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    2. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    3. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    4. 0

      Some mobs dont drop items

    5. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    6. 691

      [Group] Daily Music - Share your favorite!

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.