O temacie
Autor portki
Zaczęty 5.03.2009 roku
Wyświetleń 2581
Odpowiedzi 3
portki
//========================================//-----------------> gra//========================================INSTANCE DIA_Michał_gra (C_INFO){ npc = SLD_6007_Michał; nr = 23; condition = DIA_Michał_gra_Condition; information = DIA_Michał_gra_Info; permanent = TRUE; description = "Zagrajmy";};FUNC INT DIA_Michał_gra_Condition(){ if (Npc_KnowsInfo (other, DIA_Michał_HELLO21)) { return TRUE; };};func VOID DIA_Michał_gra_Info(){ rand=Hlp_random(6); AI_Output (other, self ,"DIA_Michał_gra_15_01"); //Zagrajmy if (Npc_HasItems (other,itminugget>=30)){ AI_Output (self, other ,"DIA_Michał_HELLO25_03_01"); //Nie masz dość rudy, musisz mieć minimum 30 bryłek AI_StopProcessInfos (self);};B_GiveInvItems (other,self,Itminugget,30); AI_Output (self, other ,"DIA_Michał_gra_03_02"); //Jaką wartość obstawiasz? Info_ClearChoices (DIA_Michał_gra); Info_Addchoice (DIA_Michał_gra, "WRÓĆ",DIA_Michał_gra_BACK); Info_AddChoice (DIA_Michał_gra, "Jeden",DIA_Michał_gra_jeden); Info_AddChoice (DIA_Michał_gra, "Dwa",DIA_Michał_gra_dwa); Info_AddChoice (DIA_Michał_gra, "Trzy",DIA_Michał_gra_trzy); Info_AddChoice (DIA_Michał_gra, "Cztery",DIA_Michał_gra_cztery); Info_AddChoice (DIA_Michał_gra, "Pięć",DIA_Michał_gra_piec); Info_AddChoice (DIA_Michał_gra, "Sześć",DIA_Michał_gra_szesc);};func void DIA_Michał_gra_BACK(){Info_ClearChoices ( Dia_Michał_gra);};func void DIA_Michał_gra_jeden(){ AI_Output (other, self ,"DIA_Michał_gra_jeden_15_06"); //Jeden };func void DIA_Michał_gra_dwa(){ AI_Output (other, self ,"DIA_Michał_gra_dwa_15_03"); //Dwa};func void DIA_Michał_gra_trzy(){ AI_Output (other, self ,"DIA_Michał_gra_trzy_15_01"); //Trzy };func void DIA_Michał_gra_cztery(){ AI_Output (other, self ,"DIA_Michał_gra_cztery_15_01"); //Cztery };func void DIA_Michał_gra_piec(){ AI_Output (other, self ,"DIA_Michał_gra_piec_15_01"); //Pięć };func void DIA_Michał_gra_szesc(){ AI_Output (other, self ,"DIA_Michał_gra_szesc_15_01"); //Sześć };FUNC void Dia_Michał_gra_jeden_info(){if(Npc_KnowsInfo (other, DIA_Michał_gra_jeden)&&rand == 1){AI_Output (self, other ,"DIA_Michał_HELLO25_03_02"); //Wygrałeś, oto Twoje 60 bryłekCreateInvItems (self,ItMnugget,60); B_GiveInvItems (self, other, ItMi_nugget, 60); AI_StopProcessInfos (self);};};FUNC void Dia_Michał_gra_dwa_info(){if(Npc_KnowsInfo (other, DIA_Michał_gra_dwa)&&rand == 2){AI_Output (self, other ,"DIA_Michał_HELLO25_03_02"); //Wygrałeś, oto Twoje 60 bryłekCreateInvItems (self,ItMnugget,60); B_GiveInvItems (self, other, ItMi_nugget, 60); AI_StopProcessInfos (self);};};FUNC void Dia_Michał_gra_trzy_info(){if(Npc_KnowsInfo (other, DIA_Michał_gra_trzy)&&rand == 3){AI_Output (self, other ,"DIA_Michał_HELLO25_03_02"); //Wygrałeś, oto Twoje 60 bryłekCreateInvItems (self,ItMnugget,60); B_GiveInvItems (self, other, ItMi_nugget, 60); AI_StopProcessInfos (self);};};FUNC void Dia_Michał_gra_cztery_info(){if(Npc_KnowsInfo (other, DIA_Michał_gra_cztery)&&rand == 4){AI_Output (self, other ,"DIA_Michał_HELLO25_03_02"); //Wygrałeś, oto Twoje 60 bryłekCreateInvItems (self,ItMnugget,60); B_GiveInvItems (self, other, ItMi_nugget, 60); AI_StopProcessInfos (self);};};FUNC void Dia_Michał_gra_piec_info(){if(Npc_KnowsInfo (other, DIA_Michał_gra_piec)&&rand == 5){AI_Output (self, other ,"DIA_Michał_HELLO25_03_02"); //Wygrałeś, oto Twoje 60 bryłekCreateInvItems (self,ItMnugget,60); B_GiveInvItems (self, other, ItMi_nugget, 60); AI_StopProcessInfos (self);};};FUNC void Dia_Michał_gra_szesc_info(){if(Npc_KnowsInfo (other, DIA_Michał_gra_szesc)&&rand == 6){AI_Output (self, other ,"DIA_Michał_HELLO25_03_02"); //Wygrałeś, oto Twoje 60 bryłekCreateInvItems (self,ItMnugget,60); B_GiveInvItems (self, other, ItMi_nugget, 60); AI_StopProcessInfos (self);};};
func VOID DIA_Michał_gra_Info(){ rand=Hlp_random(6); AI_Output (other, self ,"DIA_Michał_gra_15_01"); //Zagrajmy if (Npc_HasItems (other,itminugget>=30)){ AI_Output (self, other ,"DIA_Michał_HELLO25_03_01"); //Nie masz dość rudy, musisz mieć minimum 30 bryłek AI_StopProcessInfos (self);};B_GiveInvItems (other,self,Itminugget,30); AI_Output (self, other ,"DIA_Michał_gra_03_02"); //Jaką wartość obstawiasz? Info_ClearChoices (DIA_Michał_gra); Info_Addchoice (DIA_Michał_gra, "WRÓĆ",DIA_Michał_gra_BACK); Info_AddChoice (DIA_Michał_gra, "Jeden",DIA_Michał_gra_jeden); Info_AddChoice (DIA_Michał_gra, "Dwa",DIA_Michał_gra_dwa); Info_AddChoice (DIA_Michał_gra, "Trzy",DIA_Michał_gra_trzy); Info_AddChoice (DIA_Michał_gra, "Cztery",DIA_Michał_gra_cztery); Info_AddChoice (DIA_Michał_gra, "Pięć",DIA_Michał_gra_piec); Info_AddChoice (DIA_Michał_gra, "Sześć",DIA_Michał_gra_szesc);};func void DIA_Michał_gra_BACK(){Info_ClearChoices ( Dia_Michał_gra);};func void DIA_Michał_gra_jeden(){ AI_Output (other, self ,"DIA_Michał_gra_jeden_15_06"); //Jeden };
Kretoszczur
dr inż. Fenix The Modders