Przeniosłem wszystko na oryginalne skrypty. Naprawiłem błędy a postać maga teraz załapała ale nadal jest problem z tym nieszczęsnym handlarzem. Ma w eq tylko te jebane ziarna i piwo
Tu jego skrypt
var int Jane_ItemsGiven_Chapter_1;
var int Jane_ItemsGiven_Chapter_2;
var int Jane_ItemsGiven_Chapter_3;
var int Jane_ItemsGiven_Chapter_4;
var int Jane_ItemsGiven_Chapter_5;
FUNC VOID B_GiveTradeInv_Jane (var C_NPC slf)
{
if ((Kapitel >= 1)
&& (Jane_ItemsGiven_Chapter_1 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf,ItFo_Water , 5);
CreateInvItems (slf,ItFo_Bread , 3);
CreateInvItems (slf,ItFo_Cheese, 2);
CreateInvItems (slf,ItAm_Hp_01, 1);
Jane_ItemsGiven_Chapter_1 = TRUE;
};
if ((Kapitel >= 2)
&& (Jane_ItemsGiven_Chapter_2 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf,ItFo_Cheese, 5);
CreateInvItems (slf,ItFoMutton, 5);
CreateInvItems (slf,ItFo_Stew , 5);
CreateInvItems (slf,ItFo_Fishsoup, 5);
Jane_ItemsGiven_Chapter_2 = TRUE;
};
if ((Kapitel >= 3)
&& (Jane_ItemsGiven_Chapter_3 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf,ItFo_Cheese, 2);
CreateInvItems (slf,ItFo_Bacon , 2);
CreateInvItems (slf,ItFoMutton, 10);
CreateInvItems (slf,ItFo_Stew , 5);
CreateInvItems (slf,ItFo_Sausage, 5);
CreateInvItems (slf,ItFo_Booze, 5);
Jane_ItemsGiven_Chapter_3 = TRUE;
};
if ((Kapitel >= 4)
&& (Jane_ItemsGiven_Chapter_4 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 150);
CreateInvItems (slf,ItFo_Wine, 5);
CreateInvItems (slf,ItFo_Milk , 10);
CreateInvItems (slf,ItFoMutton, 5);
CreateInvItems (slf,ItFo_Stew , 5);
CreateInvItems (slf,ItFo_Sausage, 5);
CreateInvItems (slf,ItFo_Bacon, 5);
Jane_ItemsGiven_Chapter_4 = TRUE;
};
if ((Kapitel >= 5)
&& (Jane_ItemsGiven_Chapter_5 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 200);
CreateInvItems (slf,ItFo_Wine, 2);
CreateInvItems (slf,ItFo_Milk , 5);
CreateInvItems (slf,ItFoMutton, 5);
CreateInvItems (slf,ItFo_Stew , 5);
CreateInvItems (slf,ItFo_Sausage, 5);
CreateInvItems (slf,ItFo_Bacon, 5);
Jane_ItemsGiven_Chapter_5 = TRUE;
};
};
Tak go wpisałem w B_GiveTradeInv.d
var C_NPC Trd_Jane; Trd_Jane = Hlp_GetNpc (STRF_3102_Jane);
if Hlp_GetInstanceID (slf) == Hlp_GetInstanceID (Trd_Jane) {B_ClearJunkTradeInv (slf); B_GiveTradeInv_Jane (slf);};
if Hlp_GetInstanceID (slf) == Hlp_GetInstanceID (Trd_Jane) {B_ClearDeadTrader (slf);}
a to skrypt postaci
instance STRF_3102_Jane (Npc_Default)
{
// ------ NSC ------
name = "Jan";
guild = GIL_STRF;
id = 3102;
voice = 3;
npctype = NPCTYPE_MAIN;
aivar[AIV_IgnoresArmor] = TRUE;
// ------ Attributes ------
B_SetAttributesToChapter(self, 1);
// ------ NSC relevant talents ------
B_GiveNpcTalents (self);
// ------ Fight tactic ------
fight_tactic = FAI_HUMAN_NORMAL;
// ------ Equipted weapons ------
EquipItem (self, ItMw_1h_Vlk_Mace);
// ------ Inventory ------
B_CreateAmbientInv (self);
CreateInvItems (self, ItFo_Addon_Pfeffer_01, 1);
// ------ Visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_NormalBart_Dusty, BodyTex_N, ITAR_LESTER);
Mdl_SetModelFatness (self, 0.5);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds");
// ------ Fight skills ------
B_SetFightSkills (self, 20);
daily_routine = Rtn_Start_3102;
};
FUNC VOID Rtn_Start_3102 ()
{
TA_Stand_Guarding (08,00,23,00,"KUPIEC_01");
TA_Stand_Guarding (23,00,08,00,"KUPIEC_01");
};