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 (