Jump to content
×
×
  • Create New...

Stone Chance


Recommended Posts

  • Premium

Open game/src/config.cpp

Search: TOKEN("max_level")

Add:

		TOKEN("stone_chance")
		{
			str_to_number(stone_chance, value_string);
			
			stone_chance = MINMAX(1, stone_chance, 100);
			
			fprintf(stderr, "STONE_CHANCE: %u/n", stone_chance);
		}

 

Search int gPlayerMaxLevel = 99;

Add:

int stone_chance = 30;

Open  game/src/char_item.cpp
Search: const int ITEM_BROKEN_METIN_VNUM =

Add: 

extern int stone_chance; // Chance Stone Chance

 

Search: if (number(1, 100) <= 30)

Replace or edit it:

						// Stein Chance
						if (number(1, 100) <= stone_chance) // Erfolgreich
						{
							ChatPacket(CHAT_TYPE_INFO, LC_TEXT("메틴석 부착에 성공하였습니다."));
							item2->SetSocket(i, item->GetVnum());
						}
						else // Nicht Erfolgreich
						{
							ChatPacket(CHAT_TYPE_INFO, LC_TEXT("메틴석 부착에 실패하였습니다."));
							item2->SetSocket(i, ITEM_BROKEN_METIN_VNUM);
						}

 

 

Now u can change the chance in ur game CONFIG 

STONE_CHANCE: 

 

Edited by LeJ0ker
  • Love 4

~~ Mein System ~~

Prozessor: Intel® Core™ i7-4790K
Mailboard: Gigabyte GA-Z97X-Gaming 3
Arbeitsspeicher: G.Skill 8GB KIT PC3-17000 DDR3-2133 CL10 Sniper
Festplatte/n: 512GB SSD / 1TB HDD
Grafikkarten: 2x Gigabyte Radeon HD 6970 OC

Kühlung: EKWB Wasserkühlung

 

 

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


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.