// Rolling Multiple Times
set .@GrandPrizes, 0;
set .@AnnouncePercent, 1; // = 1, 50 = 50%
// Announce ONLY if the player gets the grand prize
if (.@itemID == 61966) {
announce "Congratulations! " + strcharinfo(0) + " just received " + getitemname(.@itemID) + " x " + .@itemAmount + " from PVP Gacha NPC!", 0;
specialeffect2 248;
set .@GrandPrizes, .@GrandPrizes + 1;
}
Change to:
// Automatically announce if the item has a probability less than or equal to the configuration
if (getd(".@P"+.@i+"[0]") <= .@AnnouncePercent) {
announce "Congratulations! " + strcharinfo(0) + " just received " + getitemname(.@itemID) + " x " + .@itemAmount + " from PVP Gacha NPC!", 0;
specialeffect2 248;
set .@GrandPrizes, .@GrandPrizes + 1;
}
If you have any request, let me know.