Automated Casino Macros

Discussion in 'Renaissance Discussion' started by Medieval Name, Jun 24, 2019.

  1. Medieval Name

    Medieval Name Well-Known Member

    Joined:
    Aug 25, 2017
    Messages:
    307
    Likes Received:
    308
    Howdy, UOR!

    After a couple years of inactivity, I think it is fair to say that I won't be steadily coming back on the shard for a while.
    At first, I tried to refresh my accounts and keep everything on track but sadly lost everything I had after missing my refresh by a couple of days or so.
    Countless checks preserved at Yew's Casino were gone - as were the rest of my assets.

    For those of you who remember - I spent a LOT of time organizing, coding and promoting an automated casino near YEW's bank a few years ago.
    I just thought all my efforts would go to waste if I wouldn't share my work with everybody and maybe, just maybe, inspire some gambling entrepreneurs on the shard ;)

    So here's my gift to you - the raw macro codes to an automated dice dealer!
    Of course, those interested will need to make sense of it and tweak it a bit - but here's how it works:

    Dealer is placed behind a table with secured chests nearby. A locked crate is sitting on the table and the bot keeps waiting for a check to be dropped in. Once a player drops a check in the crate, the macro will grab and ID the check (has to be a defined amount by the casino owner) then roll the dice for the player and keep or payback double to the player in case of a win.
    It's been a while since I programmed this so here's a few links that might help you understand a bit more:
    http://uorforum.com/threads/fully-automated-gambling-check-based-dice-game.30270/
    http://uorforum.com/threads/the-official-yew’s-casino-thread-of-events-updates.33088/

    The following file also includes casino security macros (to ban thieves and PKs from the casino):
    http://www.jitanforcier.com/casinomacros.zip

    EDIT:
    I have updated the file to include what I think was the razor profile used with my bots.
    I remember I had many headaches trying to figure out why the macros weren't working so... this should make your life easier.

    The macro you play is ''Dealer bets 5k'' The rest will run by itself if you've correctly modified items locations and such.
    Also - Dealer must be able to ID a check and carry a newbied dagger.


    Enjoy if you will!

    PS (to whoever is webmastering the UOR forums):
    It seems you need to add this code to your .htaccess file:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^uorforum\.com [NC]
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    Google is pressuring it's users and websites across the globe to use SSL encryption. I wasn't able to log in thru http://uorforum.com because chrome wouldn't accept the cookies. This code should convert any http request into https and resolve a lot of bugs.
    Last edited: Jun 26, 2019
  2. Hollywood

    Hollywood Well-Known Member
    UO:R Subscriber

    Joined:
    Apr 14, 2017
    Messages:
    3,650
    Likes Received:
    3,752
    Hope all is well with you bud. We kneweach other when I was going by Duke Cannon
    Medieval Name likes this.
  3. Roach

    Roach Active Member

    Joined:
    Jun 18, 2017
    Messages:
    167
    Likes Received:
    113
    Burn. ;)
    Medieval Name likes this.
  4. PaddyOBrien

    PaddyOBrien Well-Known Member

    Joined:
    Aug 12, 2014
    Messages:
    3,254
    Likes Received:
    4,474
    I might add this macro to a bartender macro I want to make for my tavern , would be neat haha. I thought the yew casino was pretty cool
    Medieval Name likes this.
  5. Evil Dead

    Evil Dead Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 17, 2015
    Messages:
    2,216
    Likes Received:
    4,560
    Awesome avatar ;)
    Medieval Name likes this.
  6. Medieval Name

    Medieval Name Well-Known Member

    Joined:
    Aug 25, 2017
    Messages:
    307
    Likes Received:
    308
    Hey Duke, Paddy and ED! Happy to see you're still around :)
    I didn't completely give up on my account just yet or I'd have been giving away what was left of my banked assets so who knows, maybe I'll see you guys again ingame one day! haha
    PaddyOBrien and Hollywood like this.
  7. LanDarr

    LanDarr Renaissance Staff
    Renaissance Staff
    Senior Counselor
    Renaissance Volunteers

    Joined:
    Apr 19, 2013
    Messages:
    5,612
    Likes Received:
    6,120
    Thank you for the Macros !!
    Medieval Name likes this.
  8. Medieval Name

    Medieval Name Well-Known Member

    Joined:
    Aug 25, 2017
    Messages:
    307
    Likes Received:
    308
    Oh! I have updated the file to include what I think was the razor profile used with my bots.
    I remember I had many headaches trying to figure out why the macros weren't working so... this should make your life easier.

    The macro you play is ''Dealer bets 5k'' The rest will run by itself if you've correctly modified items locations and such.
    Also - Dealer must be able to ID a check and carry a newbied dagger.

    It should probably also be GM resist so people can't kill him one shot and altho it's kinda lame to need two bots running - the security guard is pretty important if you don't want your bots to be PKd all the time (because it will happen). People used to cast energy vortexes inside to piss me off and the guard made sure to ban every criminal or red in less than a second.

    Have fun!
    Last edited: Jun 26, 2019
    PaddyOBrien and Ouroboros like this.

Share This Page