w ten sposób wywalało "func does not return an int".
zrobiłem to w bardziej łopatologiczny sposóbfunc void reset_npc_armorinventory ()//dla każdego handlarza id !
{
Npc_ClearInventory (self);
if (self.id == 311)
{
CreateInvItems (self, STT_ARMOR_M,1);AI_EquipBestArmor (self);
}
else if (self.id == 1208)
{
CreateInvItems (self, GUR_ARMOR_M,1);AI_EquipBestArmor (self);
}
else if (self.id == 843)
{
CreateInvItems (self, ORG_ARMOR_L,1);AI_EquipBestArmor (self);
}
else if (self.id == 855)
{
CreateInvItems (self, ORG_ARMOR_H,1);AI_EquipBestArmor (self);
};
};