ConsoleScript [Large Project]

Discussion in 'Archived: Plugin Requests' started by LaughNgamez, Oct 4, 2013.

  1. Offline

    LaughNgamez

    This is a very large project and understand if no one wants to do it for free, contact me on
    skype: silas.ashton
    or by email
    [email protected]

    This is a lot to take in, if you have questions/criticism please leave in below :D

    This plugin would run scripts (chains of commands with delays) or commands through console that are defined in a config.
    The plugin would bind with world guard for player checks.

    This essentially allows server owners to run commands through console in sequences.
    Scripts are defined in the config.

    execute the script in game or through console by typing "/cscript run Example"
    Example:
    - smite Jimmy
    - DELAY 5
    - heal Jimmy
    (these commands are run through console)

    Now one of the key features of this plugin would be that the script can vary depending on the player count in world guard regions.
    The player measures would work in 3 ways
    Exact player counts
    Player counts plus for example: 10+
    Player counts of less: 10-

    For example

    Example2
    - smite jmmy
    - DELAY 10
    - smite jimmy
    - if 1 player in region Example run option 1, if 5 run option 2, if 10+ run option 3

    option 1
    - smite jimmy
    - heal billy
    option 2
    - heal jimmy
    - kill billy
    option 3
    - ban jimmy
    - give billy cookie 1

    Another feature for this plugin would be to run alternate command scripts depending on player counts. If the player requirement is not met you can run a different script.

    Example3
    - smite jimmy
    - DELAY 10
    - smite jimmy
    - if 1 player in region Example continue: if not run alternate script
    - heal jimmy

    Alternate Script:
    - give jimmy cookie 1
    - DELAY 5
    - give jimmy milk 1

    Another great feature would be to pause the command script until player counts in regions are met.

    Example4
    - smite jimmy
    - DELAY 5
    - smite jimmy
    - when region example has 10 players continue
    - heal jimmy


    The next feature would be to do different things depending on a regions player count.
    Example 5
    - smite jimmy
    - DELAY 5
    - smite jimmy
    - if 10+ players are in region "example" terminatescript. if 10- players are in region run script: <scriptname>. If 15+ players continue script.
    - eco give s_ryan 1



    The next idea is so that if a player count is at a set amount it will run a different script then recheck.
    Example 6
    - smite jimmy
    - DELAY 5
    - smite jimmy
    - if 1- (1 or less) players are in region <regionname> run side script: <scriptname> (once done running that script it will recheck for the player count)
    - eco give jimmy 1


    Sidescript:
    - kill jimmy
    - DELAY 10
    - kill tommy
    (now it is done this script it will recheck the player count for the other script, if the player count is still not met run one of these alternates:
    -stopscript
    -run altscript
    -continuescript

    altscript:
    - kill tommy


    Next feature, the idea is so that times for player counts to be met can be set, once the player count is met it will continue, if not it will run one of the options.

    Example 7
    - smite jimmy
    - DELAY 5
    - smite jimmy
    - pausescript for 60 seconds or continue if playercount of <x amount> is met in region {regionname};if in that time player count is not met run option
    - stopscript
    - alternatescript

    continued script:
    - heal jimmy
    - DELAY 5
    - give jimmy cookie 1

    altscript:
    - kill jimmy

    Final features (as of now :p)
    Example8
    - smite jimmy
    - DELAY 10
    - smite jimmy
    - run options depending on chance option 1 %30, option 2 40%chance, option 3 30% chance

    option 1
    - smite silas_bowen
    option 2
    - heal silas_bowen
    option 3
    - ban silas_bowen


    Notes:
    #1 Creative players must not be detected by the player counts
    #2 options must be able to be used more than once in a script, for example a script can have a pausecheck and an alternate count check.

    Commands:
    /cscript run [scriptname]
    /cscript stop [scriptname]
    /cscript stopall
    /cscript reload
     
  2. Offline

    GreySwordz

  3. Offline

    LaughNgamez

    I am looking for this to be done to the way I want it, plus I don't think skript has the world guard features :p
     
  4. I was actually thinking at one point of making a plugin like that. Might try.
     
  5. Offline

    LaughNgamez

    I would be very grateful :D
     
  6. Offline

    timtower Administrator Administrator Moderator

    You could ask for them?
     
  7. Offline

    LaughNgamez

    I would prefer something like this done, it would fill my needs perfectly without having to ask another developer to add to his plugin.
     
  8. Offline

    timtower Administrator Administrator Moderator

    Check CommandHelper
     
  9. Offline

    LaughNgamez

  10. Offline

    LaughNgamez

    Hopefully you get the help you need! Thanks for adding so many features anyway!
    Just one small thought, for servers with lots of scripts a "/cscript list" command would be great if its not too much to ask.
     
  11. Offline

    Tvand227


  12. Added conditions and loops.
    Also added the list command.
     
  13. Offline

    LaughNgamez

    Thanks so much!
     

  14. Do you have any other ideas for "Variables" like %p and %w ?
     
  15. Offline

    LaughNgamez

    hmmm... I think you have them all down :D
    I would love the randomize feature that is included in the post. The world guard region features I'll wait for too and understand if they cannot be done.
    Thanks so much!
     
  16. It has nothing to do with what he wants in the plugin. What you posted is just a command scheduler. What he wants is a command builder, which can run them in a specific sequence with specific conditions.
     
  17. Offline

    LaughNgamez

  18. There is nothing really you can do to help, I will experiment today with different maven configurations and maybe I will manage to get regions working.
     
  19. Offline

    LaughNgamez

    That's great news :D thanks again!
    Do you by any chance have Skype or a better way to contact you?
     
  20. Vilsol on skype
     

Share This Page