Pokaż wiadomości

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.


Wiadomości - TheJeykop

Strony: [1]
1
Skrypty / Skrypt Mod
« dnia: 2013-01-18, 18:35 »
ODŚWIEŻAM

2
Skrypty / Skrypt Mod
« dnia: 2013-01-15, 20:01 »
Nie ma ani tu, ani tam. Nie wiem za bardzo dlaczego tak jest.

3
Skrypty / Skrypt Mod
« dnia: 2013-01-15, 19:41 »
Ok, jeszcze chciałbym zrobić coś takiego że kupcy mają więcej towarów (np. jedzenia)



var int Coragon_ItemsGiven_Chapter_1;
var int Coragon_ItemsGiven_Chapter_2;
var int Coragon_ItemsGiven_Chapter_3;
var int Coragon_ItemsGiven_Chapter_4;
var int Coragon_ItemsGiven_Chapter_5;

FUNC VOID B_GiveTradeInv_Coragon (var C_NPC slf)
{
if ((Kapitel >= 1)
&& (Coragon_ItemsGiven_Chapter_1 == TRUE))
{
CreateInvItems (slf, ItMi_Gold, 50);
CreateInvItems (slf, ItFo_Wine, 6);
CreateInvItems (slf, ItFo_Booze, 3);
CreateInvItems (slf, ItFo_Beer, 5);
CreateInvItems (slf, ItFo_Apple, 5);
CreateInvItems (slf, ItFo_Stew, 5);

Coragon_ItemsGiven_Chapter_1 = TRUE;
};
if ((Kapitel >= 2)
&& (Coragon_ItemsGiven_Chapter_2 == TRUE))
{
CreateInvItems (slf, ItMi_Gold, 50);
CreateInvItems (slf, ItFo_Wine, 100);
CreateInvItems (slf, ItFo_Booze, 100);
CreateInvItems (slf, ItFo_Beer, 100);
CreateInvItems (slf, ItFo_Bacon, 100);
CreateInvItems (slf, ItFo_Sausage, 100);
CreateInvItems (slf, ItFo_Honey, 100);
        CreateInvItems (slf, ItFo_Stew, 100);  
CreateInvItems (slf, ItFo_Bread, 100);
 CreateInvItems (slf, ItFo_Cheese, 100);

Coragon_ItemsGiven_Chapter_2 = TRUE;
};

if ((Kapitel >= 3)
&& (Coragon_ItemsGiven_Chapter_3 == TRUE))
{
CreateInvItems (slf, ItMi_Gold, 50);
CreateInvItems (slf, ItFo_Wine, 100);
CreateInvItems (slf, ItFo_Booze, 100);
CreateInvItems (slf, ItFo_Beer, 100);
CreateInvItems (slf, ItFo_Bacon, 100);
CreateInvItems (slf, ItFo_Sausage, 100);
CreateInvItems (slf, ItFo_Honey, 100);
        CreateInvItems (slf, ItFo_Stew, 100);  
CreateInvItems (slf, ItFo_Bread, 100);
 CreateInvItems (slf, ItFo_Cheese, 100);



Coragon_ItemsGiven_Chapter_3 = TRUE;
};

if ((Kapitel >= 4)
&& (Coragon_ItemsGiven_Chapter_4 == TRUE))
{
CreateInvItems (slf, ItMi_Gold, 150);
CreateInvItems (slf, ItFo_Wine, 7);
CreateInvItems (slf, ItFo_Booze, 4);
CreateInvItems (slf, ItFo_Beer, 6);
CreateInvItems (slf, ItFo_Apple, 5);
CreateInvItems (slf, ItFo_Stew, 5);

Coragon_ItemsGiven_Chapter_4 = TRUE;
};

if ((Kapitel >= 5)
&& (Coragon_ItemsGiven_Chapter_5 == TRUE))
{
CreateInvItems (slf, ItMi_Gold, 150);
CreateInvItems (slf, ItFo_Wine, 5);
CreateInvItems (slf, ItFo_Booze, 4);
CreateInvItems (slf, ItFo_Beer, 5);
CreateInvItems (slf, ItFo_Apple, 5);
CreateInvItems (slf, ItFo_Stew, 5);
CreateInvItems (slf, ItFo_Bacon, 5);
CreateInvItems (slf, ItFo_Sausage, 5);
CreateInvItems (slf, ItFo_Honey, 5);

Coragon_ItemsGiven_Chapter_5 = TRUE;
};
};

Tu jest kod Coragona, zmieniłem już jedzenie ale gdy wchodze w gre on w ogóle nie ma jedzenia. Gdzie robię błąd?

4
Skrypty / Skrypt Mod
« dnia: 2013-01-15, 18:11 »
Nie znalazłem czegoś takiego ja ITEMS.D. Mniej więcej kapuje o co chodzi, lecz nie wiem gdzie znajdę te właśnie wartości sprzedaży. Prosiłbym aby mnie ktoś oświecił.

5
Skrypty / Skrypt Mod
« dnia: 2013-01-15, 14:57 »
Dobra, ale teraz mam problem z zmianą wynagrodzeń.








// ************************************************************
//                   Klingen verkaufen
// ************************************************************
instance DIA_Harad_SellBlades (C_INFO)
{
   npc          = VLK_412_Harad;
   nr          = 200;
   condition    = DIA_Harad_SellBlades_Condition;
   information    = DIA_Harad_SellBlades_Info;
   permanent    = TRUE;
   description    = "Chcę sprzedać broń, którą wykułem.";
};
func int DIA_Harad_SellBlades_Condition ()
{   
   if (Player_IsApprentice == APP_Harad)
   {
      return TRUE;
   };
};
func void DIA_Harad_SellBlades_Info ()
{
   AI_Output (other, self, "DIA_Harad_SellBlades_15_00"); //Chcę sprzedać broń, którą wykułem.
   
   var C_ITEM equipWeap; equipWeap = Npc_GetEquippedMeleeWeapon(other);
   
   var int anzahl_common; anzahl_common = Npc_HasItems (other, ItMw_1H_Common_01);
   if (Hlp_IsItem(equipWeap, ItMw_1H_Common_01) == TRUE) { anzahl_common = anzahl_common - 1; };
   var int anzahl_schwert1; anzahl_schwert1 = Npc_HasItems (other, ItMw_Schwert1);
   if (Hlp_IsItem(equipWeap, ItMw_Schwert1) == TRUE) { anzahl_schwert1 = anzahl_schwert1 - 1; };
   var int anzahl_schwert4; anzahl_schwert4 = Npc_HasItems (other, ItMw_Schwert4);
   if (Hlp_IsItem(equipWeap, ItMw_Schwert4) == TRUE) { anzahl_schwert4 = anzahl_schwert4 - 1; };
   var int anzahl_rubinklinge; anzahl_rubinklinge = Npc_HasItems (other, ItMw_Rubinklinge);
   if (Hlp_IsItem(equipWeap, ItMw_Rubinklinge) == TRUE) { anzahl_rubinklinge = anzahl_rubinklinge - 1; };
   var int anzahl_elbastardo; anzahl_elbastardo = Npc_HasItems (other, ItMw_ElBastardo);
   if (Hlp_IsItem(equipWeap, ItMw_ElBastardo) == TRUE) { anzahl_elbastardo = anzahl_elbastardo - 1; };
   
   var int gesamt; gesamt = (anzahl_common + anzahl_schwert1 + anzahl_schwert4 + anzahl_rubinklinge + anzahl_elbastardo);
   
    if (gesamt == 0)
   {
      if (Hlp_IsItem(equipWeap, ItMw_1H_Common_01) == TRUE)
      || (Hlp_IsItem(equipWeap, ItMw_Schwert1) == TRUE)
      || (Hlp_IsItem(equipWeap, ItMw_Schwert4) == TRUE)
      || (Hlp_IsItem(equipWeap, ItMw_Rubinklinge) == TRUE)
      || (Hlp_IsItem(equipWeap, ItMw_ElBastardo) == TRUE)  
      {
         AI_Output (self, other, "DIA_Harad_SellBlades_12_01"); //Masz tylko tę przy pasie. Lepiej ją zatrzymaj.
      }
      else
      {
         AI_Output (self, other, "DIA_Harad_SellBlades_12_04"); //Więc zrób coś! Przyjmuję tylko zwykłe miecze.
      };
   }
   else //(gesamt >= 1) - die verbeliebenden Klingen verkaufen ------
   {
      AI_Output (self, other, "DIA_Harad_SellBlades_12_02"); //Dobrze - daj to tutaj.
      
      Npc_RemoveInvItems (other, ItMw_1H_Common_01, anzahl_common);
      Npc_RemoveInvItems (other, ItMw_Schwert1, anzahl_Schwert1);
      Npc_RemoveInvItems (other, ItMw_Schwert4, anzahl_Schwert4);
      Npc_RemoveInvItems (other, ItMw_Rubinklinge, anzahl_Rubinklinge);
      Npc_RemoveInvItems (other, ItMw_ElBastardo, anzahl_ElBastardo);
      
            var string concatText;
            concatText = ConcatStrings(IntToString(gesamt), PRINT_ItemsGegeben);      // "x Gegenstände gegeben"
            AI_PrintScreen (concatText, -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
            
      AI_Output (self, other, "DIA_Harad_SellBlades_12_03"); //Dobrze. Oto twoja zapłata.
      var int lohn;
      lohn    = (anzahl_common * Value_Common1)
            + (anzahl_schwert1 * Value_Schwert1)
            + (anzahl_schwert4 * Value_Schwert4)
            + (anzahl_rubinklinge * Value_Rubinklinge)
            + (anzahl_elbastardo * Value_ElBastardo);
            
      lohn    = (lohn / 3);
      
      B_GiveInvItems (self, other, itmi_gold, lohn);
   };
};






To jest dialog Harada gdy się mu daje broń. Nie kapuje troche tego lohn. Wydaje mi sie że to są stałe, przy każdej innej broni inne. Proszę o wyjaśnienie.

6
Skrypty / Skrypt Mod
« dnia: 2013-01-11, 14:55 »
A gdzie ja znajdę ten monolog mikstur??

7
Skrypty / Skrypt Mod
« dnia: 2013-01-10, 19:00 »
Witam. Chciałbym zrobić moda z następującymi dodatkami:

- Głód i pragnienie (paski)
- możliwość gotowania posiłków (tak jak warzenie mikstur, tyle że na kuchence, i chodzi tu o np. Gulasz, Zupa rybna)
- pozmieniane wynagrodzenia u czeladników

Póki co to tyle, później gdy będę bardziej zaawansowany, coś dodam. Głód, pragnienie i zmienione wynagrodzenia mniej więcej wiem jak zrobić, ale nie umiem dodać gotowania, a bardzo by mi na tym zależało. Więc proszę o wsparcie.


Pozdrawiam :)

8
Skrypty / Skrypt głodu, pragnienia, zmęczenia.
« dnia: 2013-01-05, 16:52 »
Aha i jeszcze chciałbym dodać możliwość kopania rudy (tak jak złoto w G2NK). Prosiłbym o pomoc

9
Skrypty / Skrypt głodu, pragnienia, zmęczenia.
« dnia: 2013-01-02, 17:49 »
A co mi powiecie o Ikarusie??? Warto go używać? (nie po to by robić głód itp., ale ogólnie)

10
Skrypty / Skrypt głodu, pragnienia, zmęczenia.
« dnia: 2013-01-01, 19:20 »
Chciałbym dodać dodatkowy atrybut (Głód, Spragnienie, Zmęczenie), i żeby co ileś minut ubywało tych atrybutów. I jakby było już mało, to się wyświetlało np. Jesteś głodny, Chce ci się pić. I prosze o pomoc: gdzie są umieszczone atrybuty Beziego?

11
Skrypty / Skrypt głodu, pragnienia, zmęczenia.
« dnia: 2012-12-26, 20:51 »
Witam. Chciałbym dodać do gothica 1 skrypty głodu, pragnienia i zmęczenia, lecz nie wiem za bardzo jak to zrobić. Najlepiej jakby mi się udało zrobić paski tych atrybutów. I właśnie proszę o pomoc, bo chcę zrobić małego moda z właśnie takimi skryptami. Proszę o pomoc!

Strony: [1]
Do góry