Lottery

Moved

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

5/5, 12 likes
  1. Need a permission to use this mod.

    Its not displayed anywhere on the front page and I don't want to dig it out of the .cs file.
    Can you please put it on the front page so everyone can see it.
     
  2. Oh sorry it's a mistake I'll put it on overview
    Permission is "Lottery.canuse"
     
  3. 123.PNG
    roll {0} ?
     
  4. sami37 updated Lottery with a new update entry:

    1.0.4

     
  5. /lot
    Code:
    [Oxide] 15:13 [Error] Failed to call hook 'cmdLotery' on plugin 'Lottery v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 15:13 [Debug]   at Oxide.Plugins.Lottery.ShowLotery (.BasePlayer player, System.String[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Lottery.cmdLotery (.BasePlayer player, System.String command, System.String[] args) [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 (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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    
    [DOUBLEPOST=1479212028][/DOUBLEPOST]
    Code:
    [Oxide] 15:14 [Info] Unloaded plugin Lottery v1.0.4 by Sami37
    [Oxide] 15:14 [Info] Loaded plugin Lottery v1.0.4 by Sami37
    [Oxide] 15:14 [Info] [Lottery] Messages loaded...
    
     
  6. Hello, did you installed economics?
     
  7. hi, we don't need economics)
     
  8. I dont use Economics at all
    just ServerRewards,
    can the plugin be used just for ServerRewards?



    In other way... Samy can I request you a feature?
    Can be this used in a NPC only, without commands, ppl needs to go to "casino" for open the Bet UI
     
  9. I'll make an update to allow only ServerRewards and support NPC
     
  10. THAAAAAAAAAAAAAAAAAAAnks!

    If you are planning improve the gui with images and colours, I can help :)
    we can do this more realistic, like a Roulette in casino, at least similar to a roulette on this CSGO bet webpages
     
  11. sami37 updated Lottery with a new update entry:

    1.0.5

     
  12. How can I remove buttons from the gui ?
     
  13. Great new Version!!!

    I can set now a Casino on the Shop

    can you explain me this?

    "WinPoint": {
    "Match1Number": 1,
    "Match2Number": 2,
    "Match3Number": 3,
    "Match4Number": 4

    I understand the economics part... im not using ecomonics
    but the ServerRewards I can not understand how works
     
  14. Well this part work like economics.

    Example :
    Your match list is like :
    Code:
          "111x",
        "222x",
        "333x",
        "444x",
        "555x",
        "666x",
        "777x",
        "888x",
        "999x",
        "99x9",
        "9x99",
        "x999",
        "99xx",
        "9xxx"
    
    in order of check the plugin check for full roll match so if your list contain 2222 it will check for it first, them it will check for 3 match number then 2 and 1.
    Now how work the rewards

    You have your rewards like
    Code:
          "Match1Number": 1,
        "Match2Number": 2,
        "Match3Number": 3,
        "Match4Number": 4
    
    that mean, if your roll match 4 number like in the example 2222, you'll win bet*Match4Number*multiplier
    If you bet 12 point with multiplier 3 result is :
    12 * 4 * 3 = 144 points

    By editing the plugin, but why you want to remove buttons and which?
     
  15. Can you make it so we don't need Economics to work please, if you don't have Economics you get a error when loading GUI
     
  16. You have to set Enabled : true from config under ServerReward to use ServerReward thing.
     
  17. It was
     
  18. sami37 updated Lottery with a new update entry:

    1.0.6

     
  19. Failed to call hook 'OnUseNPC' on plugin 'Lottery v1.0.6' (NullReferenceException: Object reference not set to an instance of an object)

    Failed to call hook 'OnServerInitialized' on plugin 'Lottery v1.0.6' (InvalidCastException: Value is not a convertible object: System.Int32 to System.Collections.Generic.List`1[[System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])