Jump to content
  • 0

[sytem] Lucky Roulette change items


Question

Posted

guys

I modified the id of the item, put it repeated to test, in the Table: db_roulette and in the game the item did not change. .

roleta1.jpg.494c83f8fb4e009c35e14db5ccea9951.jpg

roleta2.jpg.af9dbb52a8b86b65fedf6a499004f31f.jpg



Is there any other place I have to set up?

Thank you very much in advance.

 

5 answers to this question

Recommended Posts

  • 0
Posted
On 11/9/2017 at 12:07 AM, Haziel said:

Check if that system doesn't have a client-side counterpart.

hi Haziel , do you know how to change item requirement to play lucky roulette feature.

 

Example :
Official = need 1 bronze coin
Custom = Need 10 bronze coin, where file to change it??

  • Upvote 1
  • 0
Posted
On 8/4/2018 at 5:47 PM, dikapramantya said:

hi Haziel , do you know how to change item requirement to play lucky roulette feature.

 

Example :
Official = need 1 bronze coin
Custom = Need 10 bronze coin, where file to change it??

i hope this will be answered and ive try to edit this in clif.cpp but something it off i modify the requirement to spin into 1 gold or 1 silver or 1 bronze to play but seems the lucky roulette doesnt follow the src code? i already recompiled my server im using latest rathena rev + 20170614 client

 

    if( !sd->roulette.stage && sd->roulette_point.bronze <= 0 && sd->roulette_point.silver <= 0 && sd->roulette_point.gold <= 0 ){
        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 > 0) {
                sd->roulette_point.silver -= 1;
                sd->roulette.stage = 2;
                pc_setreg2(sd, ROULETTE_SILVER_VAR, sd->roulette_point.silver);
            } else if (sd->roulette_point.gold > 0) {
                sd->roulette_point.gold -= 1;
                sd->roulette.stage = 4;
                pc_setreg2(sd, ROULETTE_GOLD_VAR, sd->roulette_point.gold);
            }
        }

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