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
Cedric script
Cedric script
Here is my gathering waypoints: http://solarstrike.net/phpBB3/viewtopic.php?f=27&t=3603
Re: Cedric script
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

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Cedric script
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
Re: Cedric script
Thanks rock! It works perfectly
Here is my gathering waypoints: http://solarstrike.net/phpBB3/viewtopic.php?f=27&t=3603
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 3 guests