Resource icon

CEO's Slots, Blackjack, and HiLo 2.1

No permission to download

Ixtabay

Well-Known Member
Mar 30, 2015
65
13
Spring, TX USA
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...
 
  • Like
Reactions: CEO

Milva

Admin
Moderator
Mar 3, 2013
4,169
472
Donate
Donate money to this user
Awesome update! These are always fun to have on a server :)
 

Tasanar

Moderator
ServUO Developer
Oct 16, 2014
4,482
108
32
trueuo.com
Shard Name
Heritage
Donate
Donate money to this user
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.
 

Sorthious

Well-Known Member
Dec 23, 2013
174
21
Shard Name
Allure of The Unknown
Sounds like someone rigged the machine!
 

Joshua

Well-Known Member
Sep 13, 2014
562
64
34
Bountiful, Utah
Shard Name
My Own Shard
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
 

Kilra Yan

Well-Known Member
Aug 26, 2015
278
18
35
it worked with last updates in my game, which in particular you are refering to?
 

Joshua

Well-Known Member
Sep 13, 2014
562
64
34
Bountiful, Utah
Shard Name
My Own Shard
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.
 

Kilra Yan

Well-Known Member
Aug 26, 2015
278
18
35
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?
 

Tukaram

Well-Known Member
Jan 4, 2015
305
40
55
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. :)
 

Kilra Yan

Well-Known Member
Aug 26, 2015
278
18
35
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.
 

dmurphy

Admin
ServUO Developer
Feb 10, 2014
982
218
30
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.
 
  • Like
Reactions: Kilra Yan

Tukaram

Well-Known Member
Jan 4, 2015
305
40
55
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;
 

Tukaram

Well-Known Member
Jan 4, 2015
305
40
55
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
 

Joshua

Well-Known Member
Sep 13, 2014
562
64
34
Bountiful, Utah
Shard Name
My Own Shard
I also tested this and it worked, Thanks guy ! :) I was just getting ready to hide the ATM part of the gump too. lol
 

Joshua

Well-Known Member
Sep 13, 2014
562
64
34
Bountiful, Utah
Shard Name
My Own Shard
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