Openkore.com

OpenKore Forums
It is currently 23 Sep 2018, 04:29

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: How to identify a Monster NPC ?
PostPosted: 06 Nov 2011, 20:29 
Offline
Developers
Developers

Joined: 24 Nov 2010, 03:08
Posts: 214
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 ?


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 06 Nov 2011, 21:48 
Offline
Plain Yogurt
Plain Yogurt

Joined: 09 Nov 2010, 16:20
Posts: 76
mon_control.txt

Ninetail 0

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


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 07 Nov 2011, 04:31 
Offline
Plain Yogurt
Plain Yogurt

Joined: 09 Sep 2011, 18:04
Posts: 55
Location: Malaysia
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


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 07 Nov 2011, 05:23 
Offline
Developers
Developers

Joined: 24 Nov 2010, 03:08
Posts: 214
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.


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 07 Nov 2011, 22:49 
Offline
Plain Yogurt
Plain Yogurt

Joined: 09 Nov 2010, 16:20
Posts: 76
Ninetails are aggressive so they will attack you unless you use telesearch.


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 08 Nov 2011, 23:12 
Offline
Developers
Developers

Joined: 24 Nov 2010, 03:08
Posts: 214
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 !


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 15 Nov 2011, 18:47 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1301
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.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 15 Nov 2011, 19:38 
Offline
Developers
Developers

Joined: 24 Nov 2010, 03:08
Posts: 214
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:
   } 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 {


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 16 Nov 2011, 05:51 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1301
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.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: How to identify a Monster NPC ?
PostPosted: 20 Nov 2011, 21:04 
Offline
Developers
Developers

Joined: 24 Nov 2010, 03:08
Posts: 214
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 !!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group