Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 06.02.2006, 23:46   #1
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default About AI NASC

Greetings,

i am looking for some informations about AI coding, as i dont know where to look for i ask here:

1) What is the language name used with NASC ? (Like C but...)

2) Is there a way to test pets/flutes levels ? (Mymyu test...)

3) Is there a way to unsummon a "talker's pet" ?

4) Can we include a class/handler like that:

Code:
class class_x : warrior
end_class

class class_a : warrior
end_class

class class_b : class_a
<include class_x>
end_class

class class_c : class_a
<include class_x>
end_class
In order to not copy/paste a full handler part code for class_b and class_c and etc...

5) Thank you
Kirikups is offline  
Old 15.06.2006, 07:04   #2
alexerne
Архивный участник
 
Join Date: Jun 2006
Posts: 2
Default Re: About AI NASC

Quote:
Originally Posted by Kirikups
Greetings,

i am looking for some informations about AI coding, as i dont know where to look for i ask here:
2) Is there a way to test pets/flutes levels ? (Mymyu test...)
You're working on the "Little Wings Big Adventure" quest? I'm doing so myself I kinda have the same problem on the test of the hatch's level. I think it should be done by summoning the hatch like this:
Code:
			//
			// Player has summoned his hatch. Now see if it is level 55+
			//
			// [hatchling_of_wind] = 1012311
			// [hatchling_of_star] = 1012312
			// [hatchling_of_twilight] = 1012313
			//
			if ((talker.sm.level >= 55)&&((talker.sm.race == 1012311)||(talker.sm.race == 1012312)||(talker.sm.race == 1012313))) {
				//
				// Ok, player has a hatchling of level 55+
				//
				ShowPage(talker, fnQAb);			
				SetMemoState(talker, @little_wings_big_adventure, 2)
			}
Quote:
3) Is there a way to unsummon a "talker's pet" ?
Good one. Try playing with the Despawn() function. I think it should be like Despawn(talker.sm). Not too sure though. I need to be sure that talker.sm refers to the talker's servitor/pet at that moment...
alexerne 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:09.