RollTheDice

Moved

Total Downloads: 1,708 - First Release: Feb 18, 2016 - Last Update: Jul 21, 2016

5/5, 5 likes
  1. Wulf

    Wulf Community Admin

    clang submitted a new resource:

    Roll The Dice - Randomized item giving with possible negative outcomes

    Read more about this resource...
     
  2. clang updated Roll The Dice with a new update entry:

    1.0.2

     
  3. Could you incorporate this with economybanks so players have to pay to roll, something like a lottery?
     
  4. Or cooldown dont work commands
     
  5. It'll be great if it works with the EconomyBank System!
     
  6. Code:
    [Oxide] 9:24 AM [Error] Failed to call hook 'cmdRoll' on plugin 'RollTheDice v1.0.2' (IndexOutOfRangeException: Array index is out of range.)
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
    [Oxide] 9:24 AM [Debug]   at Oxide.Plugins.RollTheDice.cmdRoll (.PlayerSession session, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RollTheDice.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  7. Seems that infamy needs very lower numbers if you don't want to make people immediate full outlaw. I tested with adding 20 infamy on a roll and it made me full outlaw. Would like some clarification on how infamy works in relation to the value you give.

    Also I have a suggestion. Make it possible to put the cooldown timer on all rolls so that players can only choose one roll at a time.

    Also I know this is probably more of a Unity/Hurtworld issue but is there any way you could make it so mobs never spawn inside of rocks when they get rolled?
     
    Last edited by a moderator: Feb 21, 2016
  8. add Sasquatch ;3
     
  9. Code:
    [Oxide] 16:17 [Debug]   at Oxide.Plugins.RollTheDice.cmdRoll (.PlayerSession session, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RollTheDice.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  10. is there a way to add being on fire to the effects? i would like to do a roll where you either get some ash or you get lit on fire for like 5-10 seconds.
     
  11. 20:53 [Error] RollTheDice plugin failed to compile!
    20:53 [Error] RollTheDice.cs(280,27): error CS0246: The type or namespace name `NetworkManager' could not be found. Are you missing an assembly reference?
    this was working, but now im getting this error in oxide logs when trying to load this.
     
  12. Wulf

    Wulf Community Admin

    Untested fix for that error:
     
  13. need update 0.3.6.5
     
  14. Wulf

    Wulf Community Admin

    Quickfix (untested) for Hurtworld update:
     
  15. Wulf

    Wulf Community Admin

    Wulf updated Roll The Dice with a new update entry:

    1.0.4

     
  16. how i can set 0.1% percent etc?

    I must set chance : 0.1 ?
     
  17. failed call hook 'cmdroll'
     
  18. @Wulf
    I just got this message while useing /roll
    Code:
    Failed to call hook 'cmdRoll' on plugin 'RollTheDice v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)  at Oxide.Core.Libraries.Covalence.Formatter+Lexer.Lex (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.Parse (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.ToTreeFormat (System.String text, System.Collections.Generic.Dictionary`2 translations) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.ToUnity (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Game.Hurtworld.Libraries.Player.Message (.PlayerSession session, System.String message, System.String prefix) [0x00000] in <filename unknown>:0
      at Oxide.Game.Hurtworld.Libraries.Hurtworld.SendChatMessage (.PlayerSession session, System.String name, System.String message) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RollTheDice.ShowMsg (.PlayerSession session, System.String msg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RollTheDice.cmdRoll (.PlayerSession session, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RollTheDice.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 
    And sorry to say this but every plugin got those error's after I've updated oxide
     
  19. can you change hooks to new oxide?
     
  20. Code:
    Failed to call hook 'cmdRoll' on plugin 'RollTheDice v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Core.Libraries.Covalence.Formatter+Lexer.Lex (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.Parse (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.ToTreeFormat (System.String text, System.Collections.Generic.Dictionary`2 translations) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Covalence.Formatter.ToUnity (System.String text) [0x00000] in <filename unknown>:0
      at Oxide.Game.Hurtworld.Libraries.Player.Message (.PlayerSession session, System.String message, System.String prefix, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Game.Hurtworld.Libraries.Hurtworld.SendChatMessage (.PlayerSession session, System.String name, System.String message) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RollTheDice.ShowMsg (.PlayerSession session, System.String msg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RollTheDice.cmdRoll (.PlayerSession session, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RollTheDice.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0