Hey, ich wollte fragen wie man ein bestimmten NPC ansprechen kann.
Ich weiß von:
Code:
import player, event, net
vid = player.GetTargetVID()
net.SendOnClickPacket(vid)
aber dazu muss man den NPC ja markiert haben.
Ich möchte gerne,
dass ich ohne den NPC markiert habe, via Script den NPC anspreche, wenn ich in der Nähe bin.
Das Problem ist nur, dass sich die VID von dem NPC jedes mal ändert, sobald ich wegporte.
Gibt es da eine Lösung wie ich genau von
diesem NPC die VID bekomme, wenn ich in der Nähe bin und ihn anschließend anspreche?
Freue mich auf jede Antwort!
Falls es jemanden gibt den ich ab und zu ein paar Fragen über Python im Bezug auf Metin2 stellen kann, addet mich gerne auf Discord
Discord: wqs.#1806
__________________________________________________
english
Hey, how can i talk to a specific NPC?
I know about
:
Code:
import player, event, net
vid = player.GetTargetVID()
net.SendOnClickPacket(vid)
But with this code the NPC has to be marked.
Is there a way, how i can talk to the NPC without it being marked?
The problem is, the vid of this specific NPC always changes if i port away.
I am glad for every answer!
If u have time to help a newbie with some metin2 pyhton scripts, feel free to add me on discord.