-Added settings file
-Added Ticket Limit
-Added customizable hues for labels and their values
-Added "tickets purchased" to buy screen for players
-You can now set the gump width/height in the settings(Buttons should all be dynamic to the bottom/right when re-sizing the gump.
-Added a few customizable messages to the settings file
-Moved ticket limit from settings file to an option in-game
There is no time issue.Just a idea but have you taken a look at daat99s token system it has a lottery system that works like a raffle in a way. Maybe you can find some thing from that script to help fix the time problem.
Btw i have had one problem with this after the raffle is over it dos not say who won or gives the item away to the winner i waited online for a few hours after a raffle waiting and nuthen happened. The stone just reset and acted like the raffle was never set up any ideas why? Maybe i just did not do something right but who knows lol.
Thank you for the release though!
Well I don't know whats going wrong for you, I've tested this on ServUO and RunUO 2.3, and it works fine on both of them =/yes i made 6 player accounts and bought 50 tickets on each one.
sorry for the delay reply just got home and off work.
One thing I've wondered about since I started this script, were any of the players offline(That bought tickets)?Ok well i will try to play with it as well i will put it on my live shard and see how it works test it out a little more could just be something im doing wrong lol.
By all means this is a great script i was not trying to put you down or none of that was just seeing if maybe some one else was getting the same problem i was is all Bittiez sorry if i offended you in any way.
Ok MrNice let me know if you run into the same problem as me if you don't mind.
-Fixed *potential* error where no one would win the raffle.
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Server.Gumps.RevGuide.OnResponse(NetState sender, RelayInfo info) in c:\Users\Administrator\Desktop\MyShard\Scripts\Custom Systems\- Publish 22 -\RevRaffle\StoneGuide.cs:line 318
at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc) in c:\Users\Administrator\Desktop\MyShard\Server\Network\PacketHandlers.cs:line 1233
at Server.Network.MessagePump.HandleReceive(NetState ns) in c:\Users\Administrator\Desktop\MyShard\Server\Network\MessagePump.cs:line 272
at Server.Network.MessagePump.Slice() in c:\Users\Administrator\Desktop\MyShard\Server\Network\MessagePump.cs:line 126
at Server.Core.Main(String[] args) in c:\Users\Administrator\Desktop\MyShard\Server\Main.cs:line 683
-If an invalid number is entered for the time span, the server will no longer crash, it will ask you to re enter the numbers. Make sure your numbers are numbers (0-9, no letters or spaces).
-If no one wins, item will be deleted(It would be left in limbo before for the server to clean up).
When entering a value for Days (for expiration), the server crashes. Seems to only happen after a raffle has expired and you try to reset it.
Code:System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at Server.Gumps.RevGuide.OnResponse(NetState sender, RelayInfo info) in c:\Users\Administrator\Desktop\MyShard\Scripts\Custom Systems\- Publish 22 -\RevRaffle\StoneGuide.cs:line 318 at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc) in c:\Users\Administrator\Desktop\MyShard\Server\Network\PacketHandlers.cs:line 1233 at Server.Network.MessagePump.HandleReceive(NetState ns) in c:\Users\Administrator\Desktop\MyShard\Server\Network\MessagePump.cs:line 272 at Server.Network.MessagePump.Slice() in c:\Users\Administrator\Desktop\MyShard\Server\Network\MessagePump.cs:line 126 at Server.Core.Main(String[] args) in c:\Users\Administrator\Desktop\MyShard\Server\Main.cs:line 683
Also, it'd probably be a good idea to clear the bag/raffle item after a raffle expires (if there are no winners). Simply make it hide/delete the bag and item, and set the stone visible false.
-Setup access level is now a setting in the settings file.