O temacie
Autor muttley
Zaczęty 20.06.2009 roku
Wyświetleń 4003
Odpowiedzi 10
muttley
// ********************************// EXIT// ********************************instance DIA_Ralix_EXIT (C_INFO){ npc = Non_3912_Ralix; nr = 999; condition = DIA_Ralix_EXIT_Condition; information = DIA_Ralix_EXIT_Info; permanent = 1; description = DIALOG_ENDE;}; FUNC int DIA_Ralix_EXIT_Condition(){ return 1;};FUNC VOID DIA_Ralix_EXIT_Info(){ AI_StopProcessInfos (self);};// ********************************// First// ********************************instance DIA_Ralix_First (C_INFO){ npc = Non_3912_Ralix; nr = 1; condition = DIA_Ralix_First_Condition; information = DIA_Ralix_First_Info; permanent = 0; important = 1;}; FUNC int DIA_Ralix_First_Condition(){ if ( Npc_KnowsInfo(hero,DIA_Nermal_Zadanie)) { return 1; };};FUNC VOID DIA_Ralix_First_Info(){ AI_Output (other, self,"DIA_Ralix_First_15_00"); //O co chodzi? AI_Output (self, other,"DIA_Ralix_First_04_00"); //Dobrze się spisałeś. To zadanie nie było proste. AI_Output (self, other,"DIA_Ralix_First_04_01"); //Myślę, że mogę zacząć Cię szkolić.};//////////////////////////// Teacher//////////////////////////INSTANCE Info_Ralix_Teach(C_INFO){ npc = Non_3912_Ralix; nr = 100; condition = Info_Ralix_Teach_Condition; information = Info_Ralix_Teach_Info; permanent = 1; description = "Możesz mnie czegoś nauczyć?";}; FUNC INT Info_Ralix_Teach_Condition(){ if ( Npc_KnowsInfo(hero,DIA_Ralix_First) ) { return 1; };};FUNC VOID Info_Ralix_Teach_Info(){ if (log_Ralixtrain == FALSE) { Log_CreateTopic (GE_TeacherOZ,LOG_NOTE); B_LogEntry (GE_TeacherOZ, "Ralix może mi pomóc w zwiększeniu mojej zwinności i siły."); log_Ralixtrain = TRUE; }; AI_Output(hero,self,"Info_Ralix_Teach_15_00"); //Możesz mnie czegoś nauczyć? AI_Output(self,hero,"Info_Ralix_Teach_11_01"); //Tak. Mogę ci pokazać, jak zwiększyć swoją siłę lub zręczność. Info_ClearChoices (Info_Ralix_Teach); Info_AddChoice (Info_Ralix_Teach,DIALOG_BACK ,Info_Ralix_Teach_BACK); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_5,5*LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_1,LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_1); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_5,5*LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_1,LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_1); };func void Info_Ralix_Teach_BACK(){ Info_ClearChoices (Info_Ralix_Teach);};func void Info_Ralix_Teach_STR_1(){ B_BuyAttributePoints (hero, ATR_STRENGTH, LPCOST_ATTRIBUTE_STRENGTH); Info_ClearChoices (Info_Ralix_Teach); Info_AddChoice (Info_Ralix_Teach,DIALOG_BACK ,Info_Ralix_Teach_BACK); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_5 ,5*LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_1,LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_1); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_5,5*LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_1,LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_1);};func void Info_Ralix_Teach_STR_5(){ B_BuyAttributePoints (hero, ATR_STRENGTH, 5*LPCOST_ATTRIBUTE_STRENGTH); Info_ClearChoices (Info_Ralix_Teach); Info_AddChoice (Info_Ralix_Teach,DIALOG_BACK ,Info_Ralix_Teach_BACK); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_5,5*LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_1,LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_1); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_5,5*LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_1,LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_1);};func void Info_Ralix_Teach_DEX_1(){ B_BuyAttributePoints (hero, ATR_DEXTERITY, LPCOST_ATTRIBUTE_DEXTERITY); Info_ClearChoices (Info_Ralix_Teach); Info_AddChoice (Info_Ralix_Teach,DIALOG_BACK ,Info_Ralix_Teach_BACK); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_5,5*LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_1,LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_1); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_5,5*LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_1,LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_1);};func void Info_Ralix_Teach_DEX_5(){ B_BuyAttributePoints (hero, ATR_DEXTERITY, 5*LPCOST_ATTRIBUTE_DEXTERITY); Info_ClearChoices (Info_Ralix_Teach); Info_AddChoice (Info_Ralix_Teach,DIALOG_BACK ,Info_Ralix_Teach_BACK); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_5,5*LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnStrength_1,LPCOST_ATTRIBUTE_STRENGTH,0) ,Info_Ralix_Teach_STR_1); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_5,5*LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_5); Info_AddChoice (Info_Ralix_Teach,B_BuildLearnString(NAME_LearnDexterity_1,LPCOST_ATTRIBUTE_DEXTERITY,0),Info_Ralix_Teach_DEX_1);};
Adanos Administrator
FUNC INT Info_Ralix_Teach_Condition(){ if ( Npc_KnowsInfo(hero,DIA_Ralix_First) ) && (hero.attribute[ATR_STRENGTH] < 300) { return 1; };};
FUNC INT Info_Ralix_Teach_Condition(){ if ( Npc_KnowsInfo(hero,DIA_Ralix_First) && (hero.attribute[ATR_STRENGTH] < 300) ) { return 1; };};
Zysk
if (Typ_Atr + AtrPlus <= 300)