Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 05.08.2009, 15:11   #1
keeper1
Guest
 
Posts: n/a
Default [AI] comunicating class - superclass

i need to send a value from a class to its superclass, how?

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 08-05-2009, 03:11 PM. Открыть источник.
 
Old 05.08.2009, 15:29   #2
FidoW
Guest
 
Posts: n/a
Default [AI] comunicating class - superclass

You are getting the wrong idea.

AI is used by a npc, so use the vars of the npc to store data. You can't "comunicate class", at the end is all like a big class, thing is the code is writed in more than one place.

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 08-05-2009, 03:29 PM. Открыть источник.
 
Old 05.08.2009, 15:51   #3
kold
Guest
 
Posts: n/a
Default [AI] comunicating class - superclass

myself.i_ai0

myself.f_ai0

etc.

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 08-05-2009, 03:51 PM. Открыть источник.
 
Old 05.08.2009, 16:53   #4
FidoW
Guest
 
Posts: n/a
Default [AI] comunicating class - superclass

exactly.

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 08-05-2009, 04:53 PM. Открыть источник.
 
Old 05.08.2009, 19:06   #5
keeper1
Guest
 
Posts: n/a
Default [AI] comunicating class - superclass

what im trying to do is

father >son >mob

___________>mob

_______>son >mob

____________>mob

_______>son >mob

___________>mob

when one of the mobs die, its comunicated to the son with privatedied handler, but i need to send that info to the fater, ideas?

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 08-05-2009, 07:06 PM. Открыть источник.
 
Old 05.08.2009, 19:58   #6
kold
Guest
 
Posts: n/a
Default [AI] comunicating class - superclass

Wait wut...

Think you're confusing programming class inheritance with group mobs + NPC communication.

Main problem with NPC communication is L2NPC gives you very limited ways to designate the creature object to communicate with.

Private spawning is nice because PARTY handlers give the creature, and all privates can reference their summoner_id.

Another option if you have 1 main NPC you need to communicate with, is have it RegisterGlobalMap and any NPC can look it up.

Once you get the target creature you can send somewhat limited data with ScriptEvents.

Also, talking to my onjoin slogan script will get you nowhere

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 08-05-2009, 07:58 PM. Открыть источник.
 
Old 05.08.2009, 20:43   #7
FidoW
Guest
 
Posts: n/a
Default [AI] comunicating class - superclass

Wait wut...


Think you're confusing programming class inheritance with group mobs + NPC communication.


I already noticed that with his first post, he have the wrong idea in his mind. Let see if he understand what you said to him and get a good concept of how it works.

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 08-05-2009, 08:43 PM. Открыть источник.
 
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 18:08.