Jump to content

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

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.