I fixed it just fine with what I posted previously. I'll just use that in my copy of createpaths since it generates working code that the bot can understand at runtime. I moved the check for if optiontext == getTEXT("HOUSE_MAID_LEAVE_TALK") to the start of the ChoiceOptionByName() function and everything is working fine here.
I did a few tests by entering a number larger than the total available chat frame options and it correctly handles the error condition. It is only the last option for "Leave conversation" that returns nil, so my fix I posted earlier to the getChoice() function works every time I've tried it.
createpath + getid + getpos together
- Bill D Cat
- Posts: 555
- Joined: Sat Aug 10, 2013 8:13 pm
- Location: Deep in the Heart of Texas
Re: createpath + getid + getpos together
After I read this thread to be clear getKeyStrings(..) take the name of an item or mob and return one or a list if matching ids ?
and how long it takes?
and how long it takes?
Jack-of-all-trades, but master-of-only of a few
My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226
Re: createpath + getid + getpos together
No, this takes a string you see in the game and returns the key string, as I call it. Eg.
This excludes id names such as items and npc names because they had to be excluded to make the function run fast enough.
What you describe can be done with a function from my ToolipIds addons. Eg.I think the first time it runs it might take a couple of seconds but then it's near instantaneous as it's just a table look-up.
Code: Select all
Command> print(getKeyStrings('Introduction to the Auction House'))
SO_110049_1
What you describe can be done with a function from my ToolipIds addons. Eg.
Code: Select all
Command> table.print(RoMScript("GetNameIds('Mailbox')"))
table: 055D40A8
1: 110538
2: 110694
3: 110793
4: 112112
5: 112113
6: 112778
7: 113136
8: 114779
9: 116936
10: 117407
11: 118480
12: 118670
13: 118688
14: 119274
15: 119538
16: 119944
17: 121485
18: 122097
19: 123006
- 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: createpath + getid + getpos together
I have implemented something similar scanning all those ids and putting in table and then save the table into the cache directory. I only took a look because I remembers you guys talked about something similar and I thought maybe this it is ^^ I'm nearly finished with the quest reward function getBestChoiceForItems(item_list), I properly must copy some code out of the item class again(or built my own Item) because all my eval function take an item and not the object from getRaterDataById.
Jack-of-all-trades, but master-of-only of a few
My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest