Gothic II: Gold Classic

Gothic II: Gold Classic

Gothic 2 Mod Workshop
Finally an easy way to upload and download mods for the original Gothic 2
Learn More
Мод на ману у торговцев
Есть ли мод, что бы у торговцев всегда были бутылки маны в продаже?
< >
Showing 1-2 of 2 comments
D36 64 6 Jul @ 3:52am 
Скопируй этот текст в текстовый файл ManaPotionsForAllTraders.d в папку system/autorun:
func void B_RefreshInvItemToAmount(var C_Npc npc,var int itm,var int neededAmount) { var int currentAmount; currentAmount = Npc_HasItems(npc,itm); if(currentAmount < neededAmount) { CreateInvItems(npc,itm,neededAmount - currentAmount); }; }; test(B_GiveTradeInv) { func void B_GiveTradeInv(var C_Npc slf) { B_GiveTradeInv_Old(slf); if(!Npc_IsDead(slf)) { B_RefreshInvItemToAmount(slf,ItPo_Mana_03,50); }; }; };

У каждого торговца всегда будут 50 эликсиров маны.
Originally posted by D36:
Скопируй этот текст в текстовый файл ManaPotionsForAllTraders.d в папку system/autorun:
func void B_RefreshInvItemToAmount(var C_Npc npc,var int itm,var int neededAmount) { var int currentAmount; currentAmount = Npc_HasItems(npc,itm); if(currentAmount < neededAmount) { CreateInvItems(npc,itm,neededAmount - currentAmount); }; }; test(B_GiveTradeInv) { func void B_GiveTradeInv(var C_Npc slf) { B_GiveTradeInv_Old(slf); if(!Npc_IsDead(slf)) { B_RefreshInvItemToAmount(slf,ItPo_Mana_03,50); }; }; };

У каждого торговца всегда будут 50 эликсиров маны.
Ого, спасибо тебе, добрый человек.
< >
Showing 1-2 of 2 comments
Per page: 1530 50