Cant find certain NPCs

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
RicalEyl
Posts: 63
Joined: Fri Aug 13, 2010 2:38 pm

Cant find certain NPCs

#1 Post by RicalEyl » Fri Mar 04, 2011 9:41 am

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.

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

Re: Cant find certain NPCs

#2 Post by rock5 » Fri Mar 04, 2011 9:56 am

'-' 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).
  • 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

RicalEyl
Posts: 63
Joined: Fri Aug 13, 2010 2:38 pm

Re: Cant find certain NPCs

#3 Post by RicalEyl » Fri Mar 04, 2011 12:15 pm

ty works fine now:)

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

Re: Cant find certain NPCs

#4 Post by lisa » Fri Mar 04, 2011 8:58 pm

Don't forget you don't need to have the NPC full name

Code: Select all

player:target_NPC("Marliss");
that would also work
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

Auto Pilot
Posts: 24
Joined: Tue Mar 01, 2011 3:23 am

Re: Cant find certain NPCs

#5 Post by Auto Pilot » Sat Mar 05, 2011 5:38 am

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")

User avatar
Administrator
Site Admin
Posts: 5329
Joined: Sat Jan 05, 2008 4:21 pm

Re: Cant find certain NPCs

#6 Post by Administrator » Sat Mar 05, 2011 6:50 pm

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")
You should be able to. Try "^Wave Armor$" and see if it works.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest