Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 20.03.2006, 05:48   #26
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

Firedeamon,

Why do you think AI supports inheriting classes?

1. It removes the need to code a single class for each and every NPC - just because they are a little different from eachother

2. It removes the need to code a common AI class like you are doing.

Your idea is flawed, yes NASC/AI is powerfull, even more than you think it would seem.
archy is offline  
Old 20.03.2006, 08:35   #27
Mark20
Архивный участник
 
Join Date: Jan 2006
Posts: 54
Default

I see a L2OFF server where NPCs send greetings like retail... and talk to player when is close, this is possible with AI ? anyone knows ?

I know talk is posible, but greetings ?
Mark20 is offline  
Old 20.03.2006, 10:37   #28
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Quote:
Originally Posted by archy
Firedeamon,

Why do you think AI supports inheriting classes?

1. It removes the need to code a single class for each and every NPC - just because they are a little different from eachother

2. It removes the need to code a common AI class like you are doing.

Your idea is flawed, yes NASC/AI is powerfull, even more than you think it would seem.
Well I am not by any means using a single class for all the mobs. Only those which are spellers pretty much, including raid bosses and fighters. Im running it right now and its running great.

I do completley understand the whole inherited class thing and it is great. But having reusable code is also very valuable as well as way more flexible than 300 functions which all do the same thing anyway pretty much.

I am still taking advantage of the inherited classes and such... I just got rid of all the garbage and condensed it down to a streamline class. You can diss it all you want, but the functionality I have built into it gives way more power and flexibility to me as a developer in creating a streamlined AI that players can interact with.

Dunno how you can say its flawed... 600 concurrent players are interacting with hundreds of mobs using the class right now and there is no performance loss. In addition I have complete flexibility with the mobs now whereas previously I did not. Before I would have to copy and past the same crap over and over again in different places when the mobs could simply be utilizing the application logic L2NPC.exe was written for. When it comes to upgrading or scalability it will be far superior to having 50 different classes that do just about the same thing with only a slight difference here or there.
Firedaemon is offline  
Old 20.03.2006, 20:09   #29
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

Quote:
Originally Posted by Mark20
I see a L2OFF server where NPCs send greetings like retail... and talk to player when is close, this is possible with AI ? anyone knows ?

I know talk is posible, but greetings ?
Yes and it has been posted already, dont hijack this thread
Metalmurphy is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:59.