I co mam zrobić?
To ten skrypt
//========================================
//-----------------> HELLO_LANCE
//========================================
INSTANCE DIA_Brok_HELLO_LANCE (C_INFO)
{
npc = STT_15000_Brok;
nr = 4;
condition = DIA_Brok_HELLO_LANCE_Condition;
information = DIA_Brok_HELLO_LANCE_Info;
permanent = FALSE;
description = "Przysyła mnie Lance";
};
FUNC INT DIA_Brok_HELLO_LANCE_Condition()
{
if (Npc_KnowsInfo (other, DIA_Lance_HELLO2_Yes))
&& (Npc_HasItems (other, ItMiNugget) >=200)
&& (Topic_lance_paczka == LOG_RUNNING) {
return TRUE;
};
};
FUNC VOID DIA_Brok_HELLO_LANCE_Info()
{
AI_Output (other, self ,"DIA_Brok.d_HELLO_LANCE_15_01"); //Przyszedłem po przesyłke dla Lance'a.
AI_Output (self, other ,"DIA_Brok.d_HELLO_LANCE_03_02"); //Zaczekaj chwile.
AI_PlayAni (self, "T_SEARCH");
AI_Output (self, other ,"DIA_Brok.d_HELLO_LANCE_03_03"); //Więc przysyła cię Lance. Dobra masz tu przesyłke, a teraz dawaj rude.
B_GiveInvItems (other, self, ItMiNugget, 200);
CreateInvItems (self, ItFoBeer, 20);
B_GiveInvItems (self, other, ItFoBeer, 20);
CreateInvItems (self, ItFoWine, 10);
B_GiveInvItems (self, other, ItFoWine, 10);
CreateInvItems (self, ItFo_mutton_01, 10);
B_GiveInvItems (self, other, ItFo_mutton_01, 10);
CreateInvItems (self, ItMw_1H_przesylka, 1);
B_GiveInvItems (self, other, ItMw_1H_przesylka, 1);
B_LogEntry (Topic_lance_paczka,"Odebrałem paczke dla Lance'a");
};