Jump to content
  • 0

Where to edit Lucky Roulette item requirement file.


Question

Posted

Hi rAthena.

I want to ask, how to edit Lucky Roulette feature item requirement.

The default is using 1 Bronze Coin to start from lower, 10 Silver Coin to start from middle, 10 gold coin to start from near top.

How if i want to just change the requirement amount, maybe 50 bronze coin, 30 silver coin, and 20 gold coin ?

I've search in all folder db or conf or script and not found to setting it. so i think this is from SRC.

Thanks ?

2 answers to this question

Recommended Posts

  • 0
Posted
On 8/4/2018 at 12:02 PM, dikapramantya said:

Hi rAthena.

I want to ask, how to edit Lucky Roulette feature item requirement.

The default is using 1 Bronze Coin to start from lower, 10 Silver Coin to start from middle, 10 gold coin to start from near top.

How if i want to just change the requirement amount, maybe 50 bronze coin, 30 silver coin, and 20 gold coin ?

I've search in all folder db or conf or script and not found to setting it. so i think this is from SRC.

Thanks ?

Did you found a solution? looking for the same

  • 0
Posted

in clif.cpp

You can find in there


	if( !sd->roulette.stage && sd->roulette_point.bronze <= 0 && sd->roulette_point.silver < 10 && sd->roulette_point.gold < 10 ){
		result = GENERATE_ROULETTE_NO_ENOUGH_POINT;
	}else{
		if (!sd->roulette.stage) {
			if (sd->roulette_point.bronze > 0) {
				sd->roulette_point.bronze -= 1;
				pc_setreg2(sd, ROULETTE_BRONZE_VAR, sd->roulette_point.bronze);
			} else if (sd->roulette_point.silver > 9) {
				sd->roulette_point.silver -= 10;
				sd->roulette.stage = 2;
				pc_setreg2(sd, ROULETTE_SILVER_VAR, sd->roulette_point.silver);
			} else if (sd->roulette_point.gold > 9) {
				sd->roulette_point.gold -= 10;
				sd->roulette.stage = 4;
				pc_setreg2(sd, ROULETTE_GOLD_VAR, sd->roulette_point.gold);
			}
		}

(dont forget recompile)

  • Upvote 1
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...