Jump to content
The Naid

[Source] 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

Share this post


Link to post

Normaly thats made by quest^^

 

Yes but source is better for me.

Share this post


Link to post

Through some packet you can create a guild with level 1

  • Love 1

Share this post


Link to post

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?

Share this post


Link to post

 

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

Share this post


Link to post

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

Share this post


Link to post

 

 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

Share this post


Link to post

Kroneees , your function is working ?

Share this post


Link to post

 

Normaly thats made by quest^^

 

Yes but source is better for me.

 

There's some things like that who need to be remaked by source :P

Thanks.

Share this post


Link to post

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.

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