Cedric script

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Alleexx
Posts: 120
Joined: Sun May 15, 2011 4:28 am
Location: Sweden

Cedric script

#1 Post by Alleexx » Wed Sep 19, 2012 8:17 am

I have a script to make all my chars buy dias from cedric but the problem is that sometimes it fails to buy all 3 times.
What I want to do is to make a check after buying the dias to see if the diamond amount has increased by 15 dias. If not I want it to do a player:sleep();

I've tried some different ways but i cannot get it to work. It just continues no matter what

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Cedric script

#2 Post by lisa » Wed Sep 19, 2012 10:14 am

you will need to either find the diamonds in memory or an ingame function to tell you how many diamonds, after that it should be pretty easy. I thought I had found an ingame function for it a while back but I can't remember it now.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Cedric script

#3 Post by rock5 » Wed Sep 19, 2012 10:14 am

Try

Code: Select all

local before = RoMScript("GetPlayerMoney(\"account\")")

-- Do your stuff to buy diamonds

if RoMScript("GetPlayerMoney(\"account\")") ~= before + 15 then
    player:sleep()
end

-- continue to log next character
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Alleexx
Posts: 120
Joined: Sun May 15, 2011 4:28 am
Location: Sweden

Re: Cedric script

#4 Post by Alleexx » Thu Sep 20, 2012 8:21 am

Thanks rock! It works perfectly

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 3 guests