Odkopane skrypty do G2NK 1898 2

O temacie

Autor Bogdan Zwei

Zaczęty 2.02.2014 roku

Wyświetleń 1898

Odpowiedzi 2

Bogdan Zwei

Bogdan Zwei

Użytkownicy
Wulgarny skurwiel pierdolony.
posty1864
Propsy541
Profesjabrak
  • Użytkownicy
  • Wulgarny skurwiel pierdolony.
Witam ponownie! :)


Znalazłem dzisiaj moją starą paczkę skryptową sprzed około 2 - 3 lat. Miałem ochotę sprawdzić, czy funkcje te działają, ale mój Gothic na razie nie działa z przyczyn systemowych (nieważne o co chodzi :P). Także postanowiłem podarować wam te skrypty oraz poprosić was o informacje, czy działają one.

func void CII (var C_NPC NPC, var int Itm, var int Amount)
{
CreateInvItems (NPC, Itm, Amount);
};

func void RII (var C_NPC NPC, var int Itm, var int Amount)
{
Npc_RemoveInvItems (NPC, Itm, Amount);
};

func void B_Remove (var C_NPC Remove, var C_NPC Get, var int Itm, var int Amount, var int Category)
{
if (Itm.mainflag != ITEM_KAT_ARMOR)
{
Itm = Npc_GetInvItemBySlot (Remove, Category, 0);
RII (Remove, Hlp_GetInstanceID (Itm), Amount);
CII (Get, Hlp_GetInstanceID (Itm), Amount);
};
};

Od razu mówię, że skrypty te zrobiłem jeszcze jak moje umiejętności były marne. Użyjcie tylko funkcji B_Remove(). Miała ona niby zbierać itemy od jednego NPC'a i dawać je do drugiego, za wyjątkiem zbroi. Na moje oko funkcja działać nie powinna, ale mogę się mylić. Jeśli skrypty działają możecie się nimi bawić w swoich modyfikacjach, ale nie mówcie, że sami zrobiliście te skrypty czy nie posyłajcie tego w tutorialach, że Wy zrobiliście ten skrypt i wpadliście na to.
 
:ok: zachęca do dalszej pomocy. Nie zapominaj o tym!

Prywatne wiadomości typu "Ej, pomocy" kasuję od razu. Od tego jest forum, a nie PW.

To me, defeat in anything is merely temporary, and its punishment is but an urge for me to greater effort to achieve my goal. Defeat simply tells me that something is wrong in my doing; it is a path leading to success and truth.

In order to realize our true self we must be willing to live without being dependent upon the opinion of others.

Lehona

Lehona

Użytkownicy
posty196
Propsy190
  • Użytkownicy
B_Remove will remove the first item in your inventory in the stated category and give it to the other person, you can't specifiy a item with your code (remove the Npc_GetInvItemBySlot and declare itm as C_item and it might work).
 
Unless specified otherwise, my posts are always about Gothic 2 Night of the Raven.

Bogdan Zwei

Bogdan Zwei

Użytkownicy
Wulgarny skurwiel pierdolony.
posty1864
Propsy541
Profesjabrak
  • Użytkownicy
  • Wulgarny skurwiel pierdolony.
Well, thank you for the tip. Whenever the game will start working, I'll test it. As I said I made the script few years ago, so I knew it will be wrong/bad or whatever and I had no idea that day whether it will work or not (well, I was never using Npc_GetInvItemBySlot() so you should not be wondered).
 
:ok: zachęca do dalszej pomocy. Nie zapominaj o tym!

Prywatne wiadomości typu "Ej, pomocy" kasuję od razu. Od tego jest forum, a nie PW.

To me, defeat in anything is merely temporary, and its punishment is but an urge for me to greater effort to achieve my goal. Defeat simply tells me that something is wrong in my doing; it is a path leading to success and truth.

In order to realize our true self we must be willing to live without being dependent upon the opinion of others.


0 użytkowników i 1 Gość przegląda ten wątek.
0 użytkowników
Do góry