Jump to content
×
×
  • Create New...

Guild Exploit Fix


Recommended Posts

 input_main.cpp

CInputMain::AnswerMakeGuild

 

if (ch->GetGold() < 200000)
		return;
Replace
if (ch->GetGold() < 200000)
		ch->ChatPacket(CHAT_TYPE_INFO, "You don't have 200000 yang");
		return;

    if (ch->GetLevel() < 40)
		ch->ChatPacket(CHAT_TYPE_INFO, "You don't have 40lv+ ");
		return;
 

 

  • Love 3
Link to comment
Share on other sites

 

Through some packet you can create a guild with level 1

 

I do not understand you well. : (

Made in such a character is level 1 and it can be even create a guild?

 

 

 

I have seen a lot of hacks, in wich exist a button to create a guild without the requirement to pay or be a level.

 

This is solved with that source.

  • Love 2
Link to comment
Share on other sites

  • Premium

It can't be considered an "exploit" since ymir wanted to write the code like that (shitty as the rest as well).

Indeed, check for yang, siegel (in some locals) and level is done right in that function.

 

Would be a better idea to delete completely the part of "answermakeguild" and create a function that returns valid values in LUA ( 3 lines of code; i've done it month ago, and works without problems).

 

"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

 

 input_main.cpp

CInputMain::AnswerMakeGuild
if (ch->GetGold() < 200000)
		return;
Replace
if (ch->GetGold() < 200000)
		ch->ChatPacket(CHAT_TYPE_INFO, "You don't have 200000 yang");
		return;

    if (ch->GetLevel() < 40)
		ch->ChatPacket(CHAT_TYPE_INFO, "You don't have 40lv+ ");
		return;

 

 

you function create bug.

 

Replace 

// 200k yang //
if (ch->GetGold() < 200000)
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<Guild> You don't have 200000 yang."));
		return;
	}
	// 40+ guild //
	if (ch->GetLevel() < 40)
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<Guild> You don't have 40lv."));
		return;
	}
  • Love 5
Link to comment
Share on other sites

  • 5 months later...

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.


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.