JumpIfZero / public-wiki-and-bugs

Issue tracker and wiki for plugins
0 stars 1 forks source link

Embed CHANCE with other commands - Auto-reported via JZbot by Kainoa #247

Closed JumpIfZero closed 1 week ago

JumpIfZero commented 1 month ago

Enhance the CHANCE command to allow embedding it directly within other commands, enabling customized probabilities for specific commands to execute without interrupting the flow and aborting the entire script. For example, in a PVP script that switches gears, prayers, and spells using target_gear_changed as the trigger, you could use CHANCE 90 PROTECT_FROM_MELEE, CHANCE 99 WIELD *DRAGON_CLAW*, and CHANCE 75 VENGEANCE to customize the script to fail a specified percentage of the time, making behavior appear more human. Another example is a skilling script where placing CHANCE 50 TICK or CHANCE 30 SLEEP 1000 1500 would give it a chance to break for the specified time. This improvement would offer enhanced randomization (antiban lol), and simplified logic by eliminating the need for multiple scripts.

JumpIfZero commented 1 week ago

KittyKeys v10.1.0