Jump to content
  • 0

How to make this change?


tathy121

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  02/18/17
  • Last Seen:  

Hello, in a script that has the option >>> item id, ability that the id give <<< I would like it to help me duplicate this option on the same line. To stay type >>> item id, capacity that the id give, item id, chance that the id give ... or more times >>>

I am ready if anyone can help me make this change in the script.

The script bits for this option:

 

     // GetChanceBonus()
    function GetChanceBonus {
        @bonus = 0; @bonusId = 0;
        if (.UseChanceItems) {
            @bonusId = .ChanceItems[@refLv * 2];
            if (@bonusId)
                @bonus = .ChanceItems[@refLv * 2 + 1];
        }
    }  [/spoler]

  

    // ConsumeChance()
    function ConsumeChance {
        if (.UseChanceItems) {
            if ((.ChanceConsumeType > 0) || (@refCount >= @safe))
                return true;
        }
        return false;
    }

[/spoler]

  

            setarray .ChanceItems[0],
                7619, 5,        // Armor (Level 0)    
                6241, 4,        // Level 1            
                6439, 2,        // Level 3           So it is normal for him, just 1 id with his percentage that id provides
                986, 5,612, 5,613, 5,6438, 1;    // Level 4    I want to leave like this: with more than one option.

 

*** In summary, I want to make the script accept up to 4 different items with each item giving a different possibility.

  [/spoler]

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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