Can you provide your config file from config folder and data file from data folder
Lottery
Moved
Total Downloads: 1,456 - First Release: Sep 21, 2016 - Last Update: Jul 25, 2018
- 5/5, 12 likes
-
{
"Global": {
"Jackpot": 50000,
"JackpotMatch": 1058,
"RollMaxRange": 9999,
"RollMinRange": 1000,
"WinRate": {
"111x": 1,
"222x": 10,
"333x": 50,
"444x": 10,
"555x": 75,
"666x": 5,
"777x": 75,
"888x": 56,
"999x": 42,
"99x9": 52,
"99xx": 86,
"9x99": 57,
"9xxx": 86,
"x999": 85
}
},
"HumanNPC": {
"Enabled": true,
"npcID": 155320697
},
"ServerRewards": {
"Enabled": false,
"Jackpot": 10,
"JackpotMatch": 1869,
"Match": [
"111x",
"222x",
"333x",
"444x",
"555x",
"666x",
"777x",
"888x",
"999x",
"99x9",
"9x99",
"x999",
"99xx",
"9xxx"
],
"MinBet": 1000,
"MinBetJackpot": 100000,
"WinPoint": {
"Match1Number": 1,
"Match2Number": 2,
"Match3Number": 3,
"Match4Number": 4
}
},
"UI": {
"BackgroundMainColor": "0.1 0.1 0.1 1",
"BackgroundMainURL": "http://wac.450f.edgecastcdn.net/80450F/kool1079.com/files/2016/05/RS2397_126989085.jpg",
"BackgroundWinColor": "0.1 0.1 0.1 1",
"BackgroundWinURL": "http://wac.450f.edgecastcdn.net/80450F/kool1079.com/files/2016/05/RS2397_126989085.jpg"
}
}
And data File:
{
"76561198246445366": {
"multiplicator": 1,
"currentbet": 0.0,
"totalbet": 0.60000000000000009
}
}
There are defaults files, i just type the "NPCID" but don't working.. ( sorry for my english :s ) -
-
Failed to call hook 'cmdLotery' on plugin 'Lottery v1.0.7' (NullReferenceException: Object reference not set to an instance of an object)
The plugin is good, but nothing work.. -
I just try it again, and i don't get any error -
-
},
"HumanNPC": {
"Enabled": false,
"npcID": 118675861
},
"ServerRewards": {
"Enabled": false,
To ->
},
"HumanNPC": {
"Enabled": false,
"npcID": [
"118675861"
]
},
"ServerRewards": {
"Enabled": false, -
But i never won the jackpot, i dont understand the plugin...
-
When you click Place Bet, the plugin choose a random number between the mini and maxi from the config file.
If the number is the same as the jackpot number from the config, you won the jackpot. -
i set:
Min= 1050
Max= 1065
I place bet +2 000 000 and i never won the jackpot.. -
-
Hi Sami,
your script call always the command "Win" that point at:
"Win": "You roll {0} and won {1}$",
when the roll doesn't win, it's possibile to point at another call?
like:
"NoWin": "You roll {0}. I'm sorry!",
Thank you
[DOUBLEPOST=1485652790][/DOUBLEPOST]Sorry, another request, I can edit your plugin and change the values, but I prefer do not change it.
Could you insert:
"Multiplier:"
"Bet modifiers"
"Place Bet"
into the dictionary?
In this way, all words can be translated.
[DOUBLEPOST=1485653084][/DOUBLEPOST]
"HumanNPC": {
"Enabled": true,
"npcID": ["155320697"]
}, -
Hi Sami, thank you for your reply.
The problem is that the script always call the "Win" and I receive:
"You roll XXXX and won 0$"
I used the default config. -
Oh, i'll take a look thanks for report
-
-
-
Failed to call hook 'cmdPlaceBet' on plugin 'Lottery v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
Using default config, reïnstalled already. Using with serverrewards.
I got it to work now, only thing is, when lost there are no points taken from your account. On win they are added tough.
EDIT:
Everything works until you win something which is located in the "WinRate". When that happens you get the error message: Failed to call hook 'cmdPlaceBet' on plugin 'Lottery v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
Still when losing no points are taken away from your account...Last edited by a moderator: Feb 18, 2017 -