Jump to content
  • 0

Where to edit Lucky Roulette item requirement file.


dikapramantya

Question


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  216
  • Reputation:   9
  • Joined:  07/12/12
  • Last Seen:  

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 ?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  05/28/14
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  04/16/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...