My bot sometimes cant find NPCs even if he stands directly in front of them. How can I fix that?
e.g. I use: player:target_Object("Marliss-Schwester"); and the bot says: Cant find the NPC Marliss-Schwester.
I have tried everything and have no Idea anymore.
The funny thing is: Sometimes when I start the bot it works for the first time but not anymore the second time the bot runs the exactly same script.
Cant find certain NPCs
Re: Cant find certain NPCs
'-' has a special meaning when the bot compares strings so it doesn't work.
Just replace any special characters with '.' and it should work ('.' means it will match any character).
Just replace any special characters with '.' and it should work ('.' means it will match any 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: Cant find certain NPCs
ty works fine now:)
Re: Cant find certain NPCs
Don't forget you don't need to have the NPC full name
that would also work
Code: Select all
player:target_NPC("Marliss");
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
-
- Posts: 24
- Joined: Tue Mar 01, 2011 3:23 am
Re: Cant find certain NPCs
About string stuff ... Can you use all the regexp metacharacters for matching names in profile/waypoints ? Thinking about ^ and $ to make sure the bot only checks the the desired item/buff and not for a slightly different one ? (like "Wave Armor" and "Wave Armor Ineffective")
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Cant find certain NPCs
You should be able to. Try "^Wave Armor$" and see if it works.Auto Pilot wrote:About string stuff ... Can you use all the regexp metacharacters for matching names in profile/waypoints ? Thinking about ^ and $ to make sure the bot only checks the the desired item/buff and not for a slightly different one ? (like "Wave Armor" and "Wave Armor Ineffective")
Who is online
Users browsing this forum: No registered users and 1 guest