[codebox]
//Wydobywanie Rudy by Juri
func void ore()
{
self.aivar[AIV_INVINCIBLE] = FALSE;
PrintScreen("Udało ci się wydobyć rudę!.",-1,-1,"font_old_20_white.tga",3);
};
func void no_ore()
{
self.aivar[AIV_INVINCIBLE] = FALSE;
PrintScreen("Nie udało ci się nic wydobyć!.",-1,-1,"font_old_20_white.tga",3);
};
func void oreabit_s1()
{
if(Npc_IsPlayer(self))
{
self.aivar[AIV_INVINCIBLE] = TRUE;
AI_ProcessInfos(self);
};
};
instance NOORE1(C_Info)
{
npc = PC_Hero;
nr = 999;
condition = noore1_condition;
information = noore1_info;
important = 0;
permanent = 1;
description = "Nie potrafisz wydobywać rudy!.";
};
func int noore1_condition()
{
if (ORE_LERNED == FALSE)
{
return 1
};
};
func void noore1_info()
{
AI_StopProcessInfos (self);
self.aivar[AIV_INVINCIBLE] = FALSE;
};
instance noORE(C_Info)
{
npc = PC_Hero;
nr = 999;
condition = noore_condition;
information = noore_info;
important = 0;
permanent = 1;
description = "Nie kop.";
};
func int noore_condition()
{
if (ORE_LERNED == TRUE)
{
return (monolog==m_sleep);
};
};
func void noore_info()
{
AI_StopProcessInfos (self);
self.aivar[AIV_INVINCIBLE] = FALSE;
};
instance ore1(C_Info)
{
npc = PC_Hero;
condition = ore1_condition;
information = ore1_info;
important = 0;
permanent = 1;
description = "Wydobywaj rudę";
};
func int ore1_condition()
{
if (ORE_LERNED == TRUE)
{
return 1;
};
};
func int ore1_info()
{
var int ORE_SUC;
ZMIENNA1 = 1;
ZMIENNA2 = 1;
ORE_SUC = Hlp_Random(ZMIENNA1);
if (ORE_SUC=0)
{
CreateInvItems(hero,ItMiNugget,ZMIENNA2);
ore();
}
else
{
AI_StopProcessInfos (self);
no_ore();
};
};
[/codebox]
Problem polega na tym iż dodaje mi tu skrypt spania w grze(lol?) oraz wogóle nic nie wydobywa mimo że jest tylko jedna szansa i powinno ciągle wydobywać......