Lottery

Moved

Total Downloads: 1,456 - First Release: Sep 21, 2016 - Last Update: Jul 25, 2018

5/5, 12 likes
  1. Thanks for reporting, i'll debug it and check what happend.
     
  2. sami37 updated Lottery with a new update entry:

    1.1.9

     
  3. I have a request :)

    the GUI that pops up. Can it be moved up about a half inch/ inch? it almost hides the text that shows in the text chat. :)
     
  4. it doesnt work. the permission command cannot be found...
    i need help

    upload_2017-10-21_3-38-14.png
     
  5. You are trying to use it as command, permission may be used like

    Code:
    grant group Dev Lottery.canconfig
    You can add npc using /lot add
     
  6. sami37 updated Lottery with a new update entry:

    1.2.0

     
  7. :( im too stupid
    upload_2017-10-21_11-54-28.png
     
  8. As @Wulf said, he just put back the oxide extension for oxide command, so it's o.grant or oxide.grant
     
  9. Need to be updated to fit the new Economics plugin
     
  10. I don't see any specific change on the Economics plugin, except as it's universal but api function didn't change at all.

    Have you any error/screenshot?
     
  11. Code:
    (22:46:30) | Failed to call hook 'cmdPlus' on plugin 'Lottery v1.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    (22:46:30) | at Oxide.Plugins.Lottery.ShowLotery (.BasePlayer player, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Lottery.RefreshUI (.BasePlayer player, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Lottery.cmdPlus (.Arg arg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Lottery.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
    (22:46:34) | [Economics] Saving balances for players...
    (22:46:38) | Failed to call hook 'cmdBet' on plugin 'Lottery v1.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    (22:46:39) | at Oxide.Plugins.Lottery.ShowLotery (.BasePlayer player, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Lottery.RefreshUI (.BasePlayer player, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Lottery.cmdBet (.Arg arg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Lottery.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
    just started tonight after i updated economics. maybe coincidence but maybe not. cheers
     
  12. Wulf

    Wulf Community Admin

    GetPlayerMoney changed to Balance. There's also a bug in Oxide right now where it defaults to the first signature found, so you'd need to use string for the ID until the next release is made.
     
  13. ok, thanks, i'll change and update the plugin
     
  14. sami37 updated Lottery with a new update entry:

    1.2.1

     
  15. Thanks for the update on this. Working fine on my server now. I just have 2 requests. 1. Anyway to make the display for the actual number rolled to be more "dramatic" :) and 2. Is it possible to add a 'Rebet' button so you could just click that and re-roll the last bet amount?

    I do like the idea of a bit of a timer for the roll numbers, helps add to the mystery of whats gonna come up but that's been suggest already.

    Again, thank you and fun little addition :)
     
  16. when its starting the lottery?
     
  17. you have to type /lot in-game it's not a lottery outside of game?!?!
     
  18. @sami37
    1) Please I try adjust the min max but left box never move up. Right box will move up but no the buttons. On lower Res settings the GUI will do as Krazy J said.

    2) Also a Rebet will be nice so we do not have to click the $ each time.

    3) Change color of text and buttons in config possible?

    Great Plugin many of my users with little impulse control will fail and be without $ due to this.
     
  19. Does it possible to make it globally say Player Bet 1x 100$ in the game chat type /lot to place your bet
     
  20. At his current state it will not really be usefull as the current system work individualy for reward (except jackpot)