Lottery

Moved

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

5/5, 12 likes
  1. Points are taken on lose now but if you won by numbers within "winparts" you get the error code: (Failed to call hook 'cmdPlaceBet' on plugin 'Lottery v1.1.1' (IndexOutOfRangeException: Array index is out of range.))
     
  2. can you post your config pls
     
  3. '
    Here it is
     

    Attached Files:

  4. Try with putting RollMinRange to 1000
     
  5. I'll try thnx!
     
  6. Hello , i love the plugin , A big thanks for it !
    i only have one problem left with it , it's the multiplier ,
    i want it so that only x2 is possible , nothing else , is this possible ?
    if so how do i do it .

    And again thanks for this plugin , really do apreciate it !
    [DOUBLEPOST=1488811136][/DOUBLEPOST]NVM , it's already fixed , my mistake !
    thanks for the awesome plugin
     
  7. i have another problem , when somebody hits the jackpot , it doesn't work and it gives this error in the console :
    ''Failed to call hook 'cmdPlaceBet' on plugin 'Lottery v1.1.1' (InvalidCastException: Cannot cast from source type to destination type.)''

    please help :l
     
  8. Hello Sami, I just installed your plugin today for first time. I'm using HumanNPC, and only have altered the jackpot in config and nothing else. I cannot get GUI from NPC , and I get this error after loading plugin.
    Loaded plugin Lottery v1.1.2 by Sami37

    (00:20:02) | Failed to call hook 'OnServerInitialized' on plugin 'Lottery v1.1.2' (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]])
     
  9. can you put here your config file please, it seem you missput the npc id
    [DOUBLEPOST=1488888437][/DOUBLEPOST]
    Code:
    "HumanNPC": {
        "Enabled": false,
        "npcID": [
            "id_1",
            "id_2"
        ]
    },
    
    It should look like
     
  10. Thanks Sami I will give that a go in a few mins!
     
  11. can we get option in the config file to not auto close the UI after you place bet? maybe only close on esc or click.
    spent a lot of cash testing so far and no wins lol. seems good though. set an npc in town. good stuff
     
  12. sami37 updated Lottery with a new update entry:

    1.1.3

     
  13. Hello , me again , could you please add , a feature that doesnt reset the cursor , for example , when you click +1000 , the cursor goes back to the middle , Is this possible ?

    i also tried out the auto-close thing you added , i put it to false , but when i click place bet the gui still closes.

    Thanks in advance !
     
  14. another thing , when somebody wins a bet the following error comes in console : Failed to call hook 'cmdPlaceBet' on plugin 'Lottery v1.1.3' (NullReferenceException: Object reference not set to an instance of an object)

    theres not problem , the player gets the money , but there is a console error.

    UPDATE : if in config: ''Place Bet Auto-close": false'' the error happens.
     
    Last edited by a moderator: Mar 10, 2017
  15. Sorry to bother you again ^^ , I just want to thank you soo much for this plugin ! it's awesome although there are some small sproblems left :p

    Could you fix:
    - with Economics there is no minimum-bet for jackpot feature, you can get jackpot with betting 1. can you add a line for this in the config file ?

    Thanks in advance ! i think i might donate some money later this month for this plugin !
     
  16. Just installed this morning and haven't changed any default setting and getting error "Failed to call hook 'cmdBet' on plugin 'Lottery v1.1.5' (NullReferenceException: Object reference not set to an instance of an object)" the main betting window closes and a different window opens on the right of the screen with no content showing if that helps. Here is the config unchanged.
     

    Attached Files:

  17. Thanks for report, i'll check it
    [DOUBLEPOST=1491566845][/DOUBLEPOST]
    I'll add in the next update, thanks for feedback