Jump to content

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

Announcements



  • Similar Content

  • Similar Content

  • Similar Content

  • Tags

  • Activity

    1. 2

      wait() function bug

    2. 0

      Remove Party Role Bonuses

    3. 1

      Fix CBar3D

    4. 1

      set_quest_state not working

    5. 1

      Fix CBar3D

    6. 1

      Game Source Code - where to call void methods to spawn mobs, move mobs and others - in game source side -?

    7. 112

      Ulthar SF V2 (TMP4 Base)

  • Recently Browsing

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