please need python function

07/06/2015 17:49 baskuda#1
I want to click some NPC like salesman, octavia and oldman etc with game's python commands. How can you i go to NPC's coordinate. What is that command can you help me please
07/06/2015 19:22 noahrmal#2
m2net.SendOnClickPacket(player.GetTargetVID())
07/07/2015 11:22 baskuda#3
i need to select npc by mause which you have said. No way to do that with command line? For example select to Soon or find to npc wich i want to do process
07/07/2015 16:41 noahrmal#4
with target vid you can read out the vids of your npcs (different vids for npcs in different channels/maps)

or you can scan for vid by race of the npc:

Code:
def ScanForNPCByRace(self, race):
		for i in xrange(100000):
			if chr.INSTANCE_TYPE_NPC == chr.GetInstanceType(i):
				chr.SelectInstance(i)
				if chr.GetRace() == race:
					return i
		return 0
to get the race of your npc (you have to do it once for every npc)
Code:
chr.SelectInstance(player.GetTargetVID())
chat.AppendChat(7, str(chr.GetRace()))
06/02/2018 02:31 dsgrgeo#5
So how can i make a python file to work like this:
Find the id of the npc that i want to talk
when i change map or relog or something ... if i am near to him talk to him and choose the opinion that i want ?