1
Błędy podczas parsowania / Nawias,który jest,a jednak go "nie ma"
« dnia: 2011-04-27, 15:48 »
Dzięki za odpowiedź,zadziałało :>
Temat do zamknięcia.
Temat do zamknięcia.
Ta sekcja pozwala Ci zobaczyć wszystkie wiadomości wysłane przez tego użytkownika. Zwróć uwagę, że możesz widzieć tylko wiadomości wysłane w działach do których masz aktualnie dostęp.
B_RaiseAttribute (self, ATR_STRENGTH,100);
INSTANCE ItFo_InosApple (C_Item)
{
name = "Jabłko Inosa";
mainflag = ITEM_KAT_FOOD;
flags = ITEM_MULTI;
value = 1000;
visual = "ItFo_Apple.3DS";
material = MAT_LEATHER;
scemeName = "FOOD";
on_state[0] = Use_InosApple;
description = name;
TEXT[1] = NAME_Bonus_HP;
COUNT[1] = 1000;
TEXT[5] = NAME_Value;
COUNT[5] = 1000;
};
FUNC VOID Use_InosApple()
{
Npc_ChangeAttribute (self, ATR_HITPOINTS, 1000);
const int InosApple_Bonus = 0;
if (Npc_IsPlayer (self))
{
InosApple_Bonus = InosApple_Bonus + 1;
if (InosApple_Bonus == 1)
{
PrintScreen ("Czujesz przybywające siły", -1, 25, _STR_FONT_ONSCREEN, 3 );
B_RaiseAttribute (self, ATR_STRENGTH,100); //linia 1087
};
};
};
Dopiero kiedy napisałem dialog drugi raz to pomgło.
Tworzenie dialogów się kłania, odsyłam do tutoriala jak skompilować skrypty. Opcja Szukaj, na przyszłość![]()
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Ash_EXIT(C_INFO)
{
npc = Karol;
nr = 999;
condition = DIA_Ash_EXIT_Condition;
information = DIA_Ash_EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA_Ash_EXIT_Condition()
{
return TRUE;
};
FUNC INT DIA_Ash_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA_Ash_HELLO1 (C_INFO)
{
npc = Karol;
nr = 1;
condition = DIA_Ash_HELLO1_Condition;
information = DIA_Ash_HELLO1_Info;
permanent = FALSE;
description = "Kim jesteś ?";
};
FUNC INT DIA_Ash_HELLO1_Condition()
{
return TRUE;
};
func VOID DIA_Ash_HELLO1_Info()
{
AI_Output (other, self ,"DIA_Ash_HELLO1_15_01"); //Kim jesteś ?
AI_Output (self, other ,"DIA_Ash_HELLO1_03_02"); //Nazywam się Karol,a ty?
AI_Output (other, self ,"DIA_Ash_HELLO1_15_03"); //Jestem...
AI_Output (self, other ,"DIA_Ash_HELLO1_03_04"); //A z resztą nie mów,nie interesuje mnie to.
B_UseItem (self, ItFoMuttonRaw);
};
//========================================
//-----------------> HELLO2
//========================================
INSTANCE DIA_Ash_HELLO2 (C_INFO)
{
npc = Karol;
nr = 2;
condition = DIA_Ash_HELLO2_Condition;
information = DIA_Ash_HELLO2_Info;
permanent = TRUE;
description = "Jak leci ?";
};
FUNC INT DIA_Ash_HELLO2_Condition()
{
return TRUE;
};
func VOID DIA_Ash_HELLO2_Info()
{
AI_Output (other, self ,"DIA_Ash_HELLO2_15_01"); //Jak leci ?
AI_Output (self, other ,"DIA_Ash_HELLO2_03_02"); //Leci świetnie...
AI_Output (self, other ,"DIA_Ash_HELLO2_03_03"); //...choć może nie tak świetnie
AI_Output (other, self ,"DIA_Ash_HELLO2_15_04"); //Dlaczego?
AI_Output (self, other ,"DIA_Ash_HELLO2_03_05"); //Od miesiąca nie jadłem smażonego mięsa.
if (Npc_HasItems (other, ItFoMutton) >=1)
{
AI_Output (other, self ,"DIA_Ash_HELLO2_15_06"); //Mam tu smażone mięso,chcesz?
AI_Output (self, other ,"DIA_Ash_HELLO2_03_07"); //Dawaj je.
AI_Output (other, self ,"DIA_Ash_HELLO2_15_08"); //Masz.
B_GiveInvItems (other, self, ItFoMutton, 1);
B_UseItem (self, ItFoMutton);
AI_Output (self, other ,"DIA_Ash_HELLO2_03_09"); //Dziękuję,masz tu 50 sztuk złota za to co dla mnie zrobiłeś.
B_GiveInvItems (self, other, ItMi_Gold, 50);
AI_Output (other, self ,"DIA_Ash_HELLO2_15_10"); //To drobiazg.
}
else
{
AI_Output (other, self ,"DIA_Ash_HELLO2_15_11"); //Współczuje.
};
};
//========================================
//-----------------> HELLO3
//========================================
INSTANCE DIA_Ash_HELLO3 (C_INFO)
{
npc = Karol;
nr = 3;
condition = DIA_Ash_HELLO3_Condition;
information = DIA_Ash_HELLO3_Info;
permanent = FALSE;
description = "Gdzie mogę znaleść jakieś informacje ?";
};
FUNC INT DIA_Ash_HELLO3_Condition()
{
return TRUE;
};
func VOID DIA_Ash_HELLO3_Info()
{
AI_Output (other, self ,"DIA_Ash_HELLO3_15_01"); //Gdzie mogę znaleść jakieś informacje ?
AI_Output (self, other ,"DIA_Ash_HELLO3_03_02"); //W knajpie w porcie.
};
no to 14 min to powinna być u ciebie norma reparsowania. A jak uruchamiasz gothic którą ikone wybierasz w player kit swoja ???
Nie,Player Kitem.
W takim razie zrób to Spacerem![]()
Dialogi trzeba osobno załadować w Scacerze
http://www.youtube.com/watch?v=FNvE0JFQGvw...feature=related
oglądaj od 3 min do 3min 30 sek![]()
ale najpierw zreparsuj skrypty spacerem tak jak mówi Avallach