Ixtabay submitted a new resource:

CEO's Slots, Blackjack, and HiLo - Updated for ServUO, All credit to the amazing CEO.

First off, I take absolutely no credit whatsoever for these amazing scripts. All credit goes to CEO of EasyUO / Alexandria.

These scripts add a fun gold sink to your shard, including slot machines, video blackjack, and Hi Lo Cards. There is also a leaderboard and all machines are highly configurable.

Unzip the attached resource to your custom scripts folder, then "[add TurboSlot" to place your slot machines, then "[add TurboSlotStats" to setup the leaderboard.

View attachment 3031...

Read more about this resource...
 
Found a bug - If a player is playing and say their credit is at 50,000gp and you do a shard restart when the shard comes up back up whoever sits at the machine first the credits in the machine now link to them.
 
Found a bug - If a player is playing and say their credit is at 50,000gp and you do a shard restart when the shard comes up back up whoever sits at the machine first the credits in the machine now link to them.

Same thing happens in Vegas if you drink too much and blackout. True story.
 
This is probably something simple however when trying to use the ATM option on the script, it keeps coming back with insufficient funds in the account, the toons bank has money in it. I suspect this is due to the change in the gold system from the recent TOL expansion
 
When using the TurboSlots or the Blackjack game, I tried to use the ATM option to pull money from the bank, it then provided me that response that there are insufficient funds.
 
I gave a look at both mine and Itaxabay's scripts which seems not to differs, but I tested everytime with cash in my backpack. Have you tryed this way?
 
This is probably something simple however when trying to use the ATM option on the script, it keeps coming back with insufficient funds in the account, the toons bank has money in it. I suspect this is due to the change in the gold system from the recent TOL expansion
Since they switched to the new banking system (no actual gold) the ATM on the slots has not worked for me either. Since I use a gold ledger I just pull gold or checks out of the ledger for the casino. There is probably a way to tell the slots/ATM to look in the new bank setup - but that is beyond me. :)
 
Since they switched to the new banking system (no actual gold) the ATM on the slots has not worked for me either. Since I use a gold ledger I just pull gold or checks out of the ledger for the casino. There is probably a way to tell the slots/ATM to look in the new bank setup - but that is beyond me. :)

once discovered at least one script that rely on that shouldnt be so hard to implement. Just change a few way script is made to withdraw gold. Btw I will give in a look.
 
You should use the Withdraw(Mobile from, int amount) method in banker.cs to withdraw gold. This has all the checks and balances required to interface with the new gold system.

This method will return true if there was enough gold in the account to accommodate the withdrawal and false if not.
 
This is in turboslotgump.cs. Is this where the problem is? Like the " if (from.BankBox.ConsumeTotal(typeof(Gold), amount))" area??
Code:
  if (info.ButtonID == 14) // Withdraw m_Slot.CreditATMIncrements from bank
  {
  if (m_Slot.Won >= m_Slot.CreditATMLimit)
  {
  from.SendMessage("This machine is at or over its credit limit.");
  }
  else
  {
  int amount = (m_Slot.CreditATMLimit - m_Slot.Won < m_Slot.CreditATMIncrements) ? m_Slot.CreditATMLimit - m_Slot.Won : m_Slot.CreditATMIncrements;
  if (from.BankBox.ConsumeTotal(typeof(Gold), amount))
  {
  m_Slot.SlotWon += amount;
  from.SendMessage("{0} gold has been withdrawn from your bank and added to this machine's credit counter.", amount);
  Effects.PlaySound(new Point3D(m_Slot.X, m_Slot.Y, m_Slot.Z), m_Slot.Map, 501);
  }
  else
  from.SendMessage("Insufficient funds for ATM withdrawal.");
  }
  from.SendGump(new TurboSlotGump(m_Slot, m_Symbols));
  return;
 
Cool, that worked great. I did have to add using Server.Mobiles; at the top to make it know what a banker was. I just tested the ATM and it works, thanks! :)


~Edit~ ...and 2 minutes later 10,000 gold is gone. That was fast! I better stay away from Vegas ha ha
 
I also tested this and it worked, Thanks guy ! :) I was just getting ready to hide the ATM part of the gump too. lol
 
In addition to the changes above to fix the bank system, there also were edits needed for the new loot system. I made the needed changes to TurboSlots and compiled (tested) with no issue. Attaching the scripts here in case anyone wants them.
 

Attachments

  • CEOCasino.zip
    66.8 KB · Views: 76
With the new server build engine mechanism (compilator), we encountered numerous warnings/errors raport with custom files - which had not occurred before. I mean the current state # 4835 - compared to the version before the compiler mechanics changes.
Warnings are reported in the area of this source. I am attaching the full log from the compilation attempt (all warnings).

Compile ServUO for Windows

Press any key to continue . . .

C:\ServerUO\UOMGGameTEST>dotnet build -c Release
Microsoft (R) Build Engine version 16.7.0-preview-20360-03+188921e2f for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore...
Restored C:\ServerUO\UOMGGameTEST\Ultima\Ultima.csproj (in 167 ms).
Restored C:\ServerUO\UOMGGameTEST\Server\Server.csproj (in 167 ms).
Restored C:\ServerUO\UOMGGameTEST\Scripts\Scripts.csproj (in 167 ms).
Ultima -> C:\ServerUO\UOMGGameTEST\Ultima\bin\Release\Ultima.dll
Server -> C:\ServerUO\UOMGGameTEST\Server\bin\Release\Server.dll
Custom\Casino\HiLoCards.cs(66,16): warning CS0649: Field 'HiLoCards.m_ResetTotals' is never assigned to, and will always have its default value false [C:\ServerUO\UOMGGameTEST\Scripts\Scripts.csproj]
Custom\Casino\turboslot.cs(304,20): warning CS0169: The field 'TurboSlot.m_BlinkTimerEnd' is never used [C:\ServerUO\UOMGGameTEST\Scripts\Scripts.csproj]
Custom\Casino\turboslotpaytablegump.cs(12,17): warning CS0169: The field 'TurboSlotPayTableGump.m_jackpotmultiplier' is never used [C:\ServerUO\UOMGGameTEST\Scripts\Scripts.csproj]

Press any key to continue . . .
 
I have same warnig.
C#:
Custom\Casino\HiLoCards.cs(66,16): warning CS0649: Field 'HiLoCards.m_ResetTotals' is never assigned to, and will always have its default value false[C:\Users\daniel\Downloads\ServUO-patch20200909\Scripts\Scripts.csproj]
 
On servuo 57
If I use HDMI speakers for uo sound while playing a movie I get a sluggish movement followed by a sound pan error.. I go back to USB speakers and it works fine again, with movie on in background..
 
Back