Thread: About AI NASC
View Single Post
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