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.
// 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.
Question
tathy121
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.