Na innych skryptach ;x
Przykładowo najprostszy monolog jaki dało mi się wymyślić... w sumie przerobiłem coś z jakiegoś oryginalnego (nie pamiętam nawet jakiego xD)
Nie określiłeś się dokładnie do jakiego przedmiotu, więc pomóc inaczej nie potrafię.
FUNC VOID CosTam ()
{
var C_NPC her; her = Hlp_GetNpc(PC_Hero);
if (Hlp_GetInstanceID(self)==Hlp_GetInstanceID(her))
{
self.aivar[AIV_INVINCIBLE]=TRUE;
PLAYER_MOBSI_PRODUCTION = MOBSI_CosTam;
Ai_ProcessInfos (her);
};
};
//*******************************************************
// CosTam Dialog abbrechen
//*******************************************************
INSTANCE PC_CosTam_End (C_Info)
{
npc = PC_Hero;
nr = 999;
condition = PC_CosTam_End_Condition;
information = PC_CosTam_End_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT PC_CosTam_End_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_CosTam)
&& (PiesStart == FALSE)
{
return TRUE;
};
};
FUNC VOID PC_CosTam_End_Info()
{
CreateInvItems (self, ItMi_przedmiot,1);
B_ENDPRODUCTIONDIALOG ();
};
//*******************************************************
// xddddddddddddddddddddd
//********************************************************
//*******************************************************
//;pp
//*******************************************************
var int PiesStart;
//----------------------
INSTANCE PC_Pies_Start (C_Info)
{
npc = PC_Hero;
nr = 10;
condition = PC_Pies_Start_Condition;
information = PC_Pies_Start_Info;
permanent = TRUE;
description = "Kopnij psa w zad i wypuść kreta";
};
FUNC INT PC_Pies_Start_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_CosTam)
&& (PiesStart == FALSE)
{
return TRUE;
};
};
FUNC VOID PC_Pies_Start_Info()
{
PiesStart = TRUE;
};
//*******************************************************
INSTANCE PC_Pies_Stop (C_Info)
{
npc = PC_Hero;
nr = 99;
condition = PC_Pies_Stop_Condition;
information = PC_Pies_Stop_Info;
permanent = TRUE;
description = DIALOG_BACK;
};
FUNC INT PC_Pies_Stop_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_CosTam)
&& (PiesStart == TRUE)
{
return TRUE;
};
};
FUNC VOID PC_Pies_Stop_Info()
{
MeatStart = FALSE;
};
//*******************************************************
INSTANCE PC_Pies (C_Info)
{
npc = PC_Hero;
nr = 5;
condition = PC_Pies_Condition;
information = PC_Pies_Info;
permanent = TRUE;
description = "Kopnij kundla mocno";
};
FUNC INT PC_Pies_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_CosTam)
&& (PiesStart == TRUE)
{
return TRUE;
};
};
FUNC VOID PC_Pies_Info()
{
if (Npc_HasItems (self, Przedmiot_ktory_musisz_miec) >= 1)
{
Npc_RemoveInvItems (self, Przedmiot_ktory_dajesz,1);
Print (PRINT_CosTamSuccess);
CreateInvItems (self, Przedmiot_ktory_dostaniesz,1);
}
else
{
Print (PRINT_ProdItemsMissing);
CreateInvItems (self, ItMi_jakiś item,1);
};
B_ENDPRODUCTIONDIALOG ();
};