View Single Post
Old 14.02.2006, 17:32   #1
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default Not noob AI question...

I try sample cod:
Code:
EventHandler MY_DYING( c0 )
{
	c0 = GetLastAttacker ();
	
	Say( "Before: " + OwnItemCount( c0 , 57 ) );
	
	GiveItem1( c0 , 57 , 1 );
	SoundEffect( c0 , "ItemSound.quest_itemget" );
	
	Say( "After: " + OwnItemCount( c0 , 57 ) );
	
	super;
}
And Before and After are equals! Player takes this item, but only after that I called second OwnItemCount()!! So it's nothing serious at first look, but many quests are work not right (
nucer is offline