SRL Archive - OSR Help

Finding NPC with similar colors


hsxu

2013-03-22 13:28:46

Hi guys, I want my script to be able to right click and trade a character. The problem is, there are many other characters walking around that look exactly like him (100%) and have the exact same uptext and color. However, the NPC I want to trade is located inside a house, is there anywhere to take advantage of this? I was thinking of finding 3 or 4 custom colors on the walls to triangulate the space of the house so I can locate him, but maybe there's an easier way with a function or procedure you guys know of.

Thanks.

unregistered user

2013-03-22 15:05:17

what type of thing are you trying to do. is it do a task then walk to and talk or stand in spot and continuously talk to? you can set the dimensions of where you want the color to be found. instead of using MSX1,MSY1,MSX2,MSY2 you could put your character within the house of the npc at a certain angle and set the dimensions based on the house.