Reign of Kings Lady Luck

Discussion in 'Plugin Requests' started by DJ H3L10S, Feb 4, 2016.

  1. Putting this here as an idea, if someone would like to devote to the undertaking.

    Or, if there is a good API tutorial here, I think I stumbled upon something, but wasn't sure if it was a tutorial.

    Basically, here's what I had in mind. The custom script announces in chat every 30-60 minutes a chance to win items or item stacks by rolling a d20 (or d100 for greater odds).

    The player then uses /roll to roll (command will return "there is no active gamble session at the moment" when there is no instance). Whomever rolls the highest, wins the prize.

    To save script space and memory usage, the script would pull items and stack amounts from lines in a config file (each line being a seperate stack).

    Example:
    Code:
    give water 100
    give "stone block" 100
    give "potion of appearance" 1
    give diamond 5
    etc etc.

    Not too far fetched, I think, other than telling a script to roll a random integer between 1-100.