Показать сообщение отдельно
Старый 13.02.2009, 22:46   #2862
Dimus

AGFC
Гость
 
Сообщений: n/a

По умолчанию Re: Gothic 1, 2 & NotR: Вопросы

2 Mikroid:
Хмм, странно... :-/ Судя по скриптам, предметы должны добавляться. Рекомендую посмотреть скрипт Story\NPC_Scripts\B_CreateAmbientInv.d.
В нём для большинства гильдий случайно генерируется 7 различных наборов предметов. Например, для мага Огня (Мильтен) могут быть такие наборы:
Cпойлер(щелкните, чтобы прочесть):
func void B_CreateAmbientInv_KDF(var int InventorySet)
{
     if(InventorySet == 1)
     {
           CreateInvItems(self,ItFoMutton,1);
           CreateInvItems(self,ItMi_Quartz,1);
           CreateInvItems(self,ItMi_Coal,1);
           CreateInvItems(self,ItMi_Gold,33);
     }
     else if(InventorySet == 2)
     {
           CreateInvItems(self,ItPo_Mana_02,1);
           CreateInvItems(self,ItMi_Sulfur,1);
           CreateInvItems(self,ItMi_Flask,1);
           CreateInvItems(self,ItMi_Gold,36);
     }
     else if(InventorySet == 3)
     {
           CreateInvItems(self,ItMi_SilverRing,1);
           CreateInvItems(self,ItPl_Mushroom_01,1);
           CreateInvItems(self,ItPl_Planeberry,1);
           CreateInvItems(self,ItMi_Rockcrystal,1);
           CreateInvItems(self,ItMi_Gold,30);
     }
     else if(InventorySet == 4)
     {
           CreateInvItems(self,ItFo_Sausage,1);
           CreateInvItems(self,ItPo_Health_03,1);
           CreateInvItems(self,ItFo_Booze,1);
           CreateInvItems(self,ItMi_Gold,36);
     }
     else if(InventorySet == 5)
     {
           CreateInvItems(self,ItPl_Health_Herb_01,1);
           CreateInvItems(self,ItPl_Mushroom_01,1);
           CreateInvItems(self,ItPl_Mana_Herb_01,1);
           CreateInvItems(self,ItMi_Gold,39);
     }
     else if(InventorySet == 6)
     {
           CreateInvItems(self,ItFo_Booze,1);
           CreateInvItems(self,ItMi_Sulfur,1);
           CreateInvItems(self,ItPl_Blueplant,1);
           CreateInvItems(self,ItMi_Gold,34);
     }
     else if(InventorySet == 0)
     {
           CreateInvItems(self,ItPl_Mushroom_02,1);
           CreateInvItems(self,ItMi_Quartz,1);
           CreateInvItems(self,ItMi_Pitch,1);
           CreateInvItems(self,ItMi_Gold,35);
     };
};

А для безгильдейного Горна из 2 главы должен быть один из наборов крестьянина:
Cпойлер(щелкните, чтобы прочесть):
func void B_CreateAmbientInv_BAU(var int InventorySet)
{
     if(InventorySet == 1)
     {
           CreateInvItems(self,ItPl_Forestberry,1);
           CreateInvItems(self,ItFo_Water,1);
           CreateInvItems(self,ItFo_Milk,1);
           CreateInvItems(self,ItMi_Gold,12);
     }
     else if(InventorySet == 2)
     {
           CreateInvItems(self,ItPl_Forestberry,1);
           CreateInvItems(self,ItPl_Planeberry,1);
           CreateInvItems(self,ItFo_Apple,1);
           CreateInvItems(self,ItFo_Cheese,1);
           CreateInvItems(self,ItMi_Gold,10);
     }
     else if(InventorySet == 3)
     {
           CreateInvItems(self,ItFo_Apple,1);
           CreateInvItems(self,ItFo_Cheese,1);
           CreateInvItems(self,ItPo_Health_01,1);
           CreateInvItems(self,ItMi_Gold,17);
     }
     else if(InventorySet == 4)
     {
           CreateInvItems(self,ItPl_Blueplant,1);
           CreateInvItems(self,ItFoMuttonRaw,1);
           CreateInvItems(self,ItFo_Bread,1);
           CreateInvItems(self,ItMi_Gold,14);
     }
     else if(InventorySet == 5)
     {
           CreateInvItems(self,ItPl_Forestberry,1);
           CreateInvItems(self,ItFo_Bread,1);
           CreateInvItems(self,ItFoMuttonRaw,1);
           CreateInvItems(self,ItMi_Gold,13);
     }
     else if(InventorySet == 6)
     {
           CreateInvItems(self,ItPl_Forestberry,1);
           CreateInvItems(self,ItMi_Joint,1);
           CreateInvItems(self,ItFo_Cheese,1);
           CreateInvItems(self,ItPl_Planeberry,1);
           CreateInvItems(self,ItMi_Gold,11);
     }
     else if(InventorySet == 0)
     {
           CreateInvItems(self,ItPl_Planeberry,1);
           CreateInvItems(self,ItFo_Apple,1);
           CreateInvItems(self,ItFo_Cheese,4);
           CreateInvItems(self,ItFo_Beer,1);
     };
};
Ответить с цитированием