|
Ralph1971 Wanderer
Joined: 01 Mar 2008 Posts: 64
|
Posted: Mon Apr 28, 2008 10:58 pm
Midas bot for Realms of Despair |
Ok, for you guru's out there.. I'm trying to make a midas bot, primarily for (but not restricted to) personal use. When someone gives me an item, say.. a gem encrusted dog collar, I c 'midas touch' collar. Now, how can I automate the script to midas the right thing? Most of the items can be midased using the last word.. in this case, collar. I have the script set up - {(%w) gives you (*) (%w)} {c 'midas touch' %2}.. now the problem is on a item such as 'a golden staff of the Hunter'.. the keyword is staff, not hunter. How can I set things up to auto add that to a list/database, etc so that it will learn and midas the right thing without me babysitting it all the time?
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Mon Apr 28, 2008 11:18 pm |
Well, you could really easily brute force this... umm... well you could :D
Code: |
#TR {(%w) gives you (*)} {
#var tmp %2
#var tmp2 subchar(@tmp, " ", "|")
#var counter 0
#while (@counter > -1) {
#ADD counter 1
cast 'midas touch' %item(%i, @tmp2)
#wait 2000
}
#TR {successful midas cast pattern here} {#var counter -1}
} |
That might have mistakes in it, just typed it in and didn't test it, but you should get the general idear. |
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
Ralph1971 Wanderer
Joined: 01 Mar 2008 Posts: 64
|
Posted: Tue Apr 29, 2008 4:54 am |
Ok.. I played around with it a bit.. how can I get it to check wether they actually gave me an item, and not just emoted it?
|
|
|
|
meyn Beginner
Joined: 06 Mar 2008 Posts: 27
|
Posted: Tue Apr 29, 2008 7:57 am |
#TR {^(%w) gives you (*)}
Match to begining of line so "* tells you ' stops the pattern matching. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Tue Apr 29, 2008 1:06 pm |
That won't help with emotes
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Tue Apr 29, 2008 1:35 pm |
What is the syntax for "probe item"?
Obviously if they emoted giving you an item that you do not have, then there is no need to try and midas it.
It has been seven years since I played on realms so I'm just shooting ideas here.
Do you have an info inventory that gives a list or count of how many items you are holding?
If so either count the items in the list or compare the number of items that you had before against the number of items that you have now. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Eul Wanderer
Joined: 30 Jun 2007 Posts: 53
|
Posted: Tue Apr 29, 2008 6:23 pm |
Could you make the triger check the colour of the line, as emotes are usualy a diferant colour?
E. |
|
|
|
Ralph1971 Wanderer
Joined: 01 Mar 2008 Posts: 64
|
Posted: Sat May 10, 2008 1:45 am |
yes, arminas, it doe have a count i.e. a glowing violet potion (42).. also, can set it up on the prompt to display the weight.. x gives you xx.. and check the weight and see if there was a weight increase..
issue now, is the keywords.. I'd rather not use the brute force issue described earlier.. maybe set up a list or database.. all I'd be concerned with would be the 'proper name' for an item and a keyword to midas the item (or in the instance of containers, NOT midas them)..
and have it set up so that if I don't know the item keyword or successful midas term, can prompt for it and add the item to the database. |
|
_________________ Win7-home - Cmud 3.33a
WinXP-pro - Zmud 7.21 |
|
|
|
Ralph1971 Wanderer
Joined: 01 Mar 2008 Posts: 64
|
Posted: Sat May 10, 2008 1:46 am |
Eul.. I think the emots are the same color.. ahve to look into that
|
|
_________________ Win7-home - Cmud 3.33a
WinXP-pro - Zmud 7.21 |
|
|
|
|
|