to change pet feed costs you open PetYardCommandHandler.csSo a few questions for code in fabs.
How would I change the prices of fusing pets and feeding pets.
How would I change the exp multiplier so that you get exp and fame quicker.
And how would I add new Items to the shop like find there id for example (0xaf6) is the id for the t12 staff.
-Thanks for the help
Code:switch (client.Account.PetYardType) { case 1: if (!TryDeduct(packet.Currency, client.Player, 500)) return; // this is 500 fame break; case 2: if (!TryDeduct(packet.Currency, client.Player, 2000)) return; break; case 3: if (!TryDeduct(packet.Currency, client.Player, 25000)) return; break; case 4: if (!TryDeduct(packet.Currency, client.Player, 50000)) return; break; } } if (packet.Currency == CurrencyType.Gold) { switch (client.Account.PetYardType) { case 1: if (!TryDeduct(packet.Currency, client.Player, 150)) return;// this is 150 gold break; case 2: if (!TryDeduct(packet.Currency, client.Player, 400)) return; break; case 3: if (!TryDeduct(packet.Currency, client.Player, 1200)) return; break; case 4: if (!TryDeduct(packet.Currency, client.Player, 2000)) return; break; } }
to change xp gain and fame gain open player.leveling.cs
Code:if(XpBoosted) Experience += exp * 2; else Experience += exp; // this is without xp boost - change to watever you want //this one is for famechange to watever if (Experience < 200 * 1000) newFame = Experience / 1000; else newFame = 200 + (Experience - 200 * 1000) / 1000;
to change items in shops open MerchantLists.cs inside you will find something like
Code:to add item to the shop list look for something like public static int[] store1List = { 0xcdd, 0xcda, 0xccf, 0xcce, 0xc2f, 0xc2e, 0xc23, 0xc19, 0xc11, 0x71f, 0x710, 0x70b, 0x70a, 0x705, 0x701, 0x2290 }; just add a value on thats a objectid and it will be added to that store //The 0xaf6 is the object id the currencytype is whatever you set it and the 3 is the {0xaf6, new Tuple<int, CurrencyType>(3, CurrencyType.FortuneTokens)},