How to identify a Monster NPC ?

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Message
Author
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

How to identify a Monster NPC ?

#1 Post by sofax222 »

In map pay_dun03, there is a "Nine Tail" monster, actually it is a NPC but not a monster.
There are 3 Monster NPCs in map bra_fild01.

How to identify them, and How to avoid to attach them ?

Daedalus
Plain Yogurt
Plain Yogurt
Posts: 73
Joined: 09 Nov 2010, 16:20
Noob?: No

Re: How to identify a Monster NPC ?

#2 Post by Daedalus »

mon_control.txt

Ninetail 0

You don't attack it unless it attacks you which the NPCs don' do.

madnoh
Plain Yogurt
Plain Yogurt
Posts: 55
Joined: 09 Sep 2011, 18:04
Noob?: Yes
Location: Malaysia

Re: How to identify a Monster NPC ?

#3 Post by madnoh »

mon_control.txt:

nine tail 0

I was not sure but if the change to 0 later bot will not attack the monster

so let the bot was to it talking to the NPC

This is just my opinion

sorry for my english

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: How to identify a Monster NPC ?

#4 Post by sofax222 »

madnoh wrote: nine tail 0
I know this solution !
It could be "nine tail 0 0 0".
But, this soltion make the role couldn't attach the true nine tail monsters activily.

Daedalus
Plain Yogurt
Plain Yogurt
Posts: 73
Joined: 09 Nov 2010, 16:20
Noob?: No

Re: How to identify a Monster NPC ?

#5 Post by Daedalus »

Ninetails are aggressive so they will attack you unless you use telesearch.

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: How to identify a Monster NPC ?

#6 Post by sofax222 »

Daedalus wrote:Ninetails are aggressive so they will attack you unless you use telesearch.
I know that Ninetails are aggressive !
But, I want to get a algrithm to identify all Monster NPCs !

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: How to identify a Monster NPC ?

#7 Post by kLabMouse »

Hmm. does OpenKore build in Player/NPC/Mob recognizer does not recognize it as NPC?
I think it should. Or it should be improved, because all the today server have build in flag to show who is who.

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: How to identify a Monster NPC ?

#8 Post by sofax222 »

kLabMouse wrote:Hmm. does OpenKore build in Player/NPC/Mob recognizer does not recognize it as NPC?
I think it should. Or it should be improved, because all the today server have build in flag to show who is who.
I already try this !
My method is : Add code lines before "Monster" recognizer.
To identify the Monsters NPCs with map and positions...
But, I think this is not a good method !

The code lines as:

Code: Select all

	} elsif ($args->{type} >= 1000) { # FIXME: in rare cases RO uses a monster sprite for NPC's (JT_ZHERLTHSH = 0x4b0 = 1200) ==> use object_type ?
		if (($field->baseName eq "bra_fild01") && 
			(($coordsFrom{x} == 245 && $coordsFrom{y} == 52) || 
			($coordsFrom{x} == 34 && $coordsFrom{y} == 184) || 
			($coordsFrom{x} == 75 && $coordsFrom{y} == 83))) {
			$actor = $npcsList->getByID($args->{ID});
			if (!defined $actor) {
				$actor = new Actor::NPC();
				$actor->{appear_time} = time;
				$mustAdd = 1;
			}
			$actor->{nameID} = $nameID;
		} elsif (($field->baseName eq "pay_dun03") && ($coordsFrom{x} == 48 && $coordsFrom{y} == 84)) {
			$actor = $npcsList->getByID($args->{ID});
			if (!defined $actor) {
				$actor = new Actor::NPC();
				$actor->{appear_time} = time;
				$mustAdd = 1;
			}
			$actor->{nameID} = $nameID;
		} else {

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: How to identify a Monster NPC ?

#9 Post by kLabMouse »

sofax222 wrote:
kLabMouse wrote:Hmm. does OpenKore build in Player/NPC/Mob recognizer does not recognize it as NPC?
I think it should. Or it should be improved, because all the today server have build in flag to show who is who.
I already try this !
My method is : Add code lines before "Monster" recognizer.
To identify the Monsters NPCs with map and positions...
But, I think this is not a good method !
That's not a solution. It's a hack!
There is a flag in packets, that indicate what type of Actor it is.

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: How to identify a Monster NPC ?

#10 Post by sofax222 »

kLabMouse wrote:
sofax222 wrote:
kLabMouse wrote:Hmm. does OpenKore build in Player/NPC/Mob recognizer does not recognize it as NPC?
I think it should. Or it should be improved, because all the today server have build in flag to show who is who.
I already try this !
My method is : Add code lines before "Monster" recognizer.
To identify the Monsters NPCs with map and positions...
But, I think this is not a good method !
That's not a solution. It's a hack!
There is a flag in packets, that indicate what type of Actor it is.
Which flag in packets ? I did not get it !!

Post Reply