Results 1 to 3 of 3
  1. #1
    Flamealchamist's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed

    Post A few questions regarding fabs

    So 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

  2. #2
    Slendergo's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    382
    Reputation
    17
    Thanks
    250
    My Mood
    Inspired
    Quote Originally Posted by Flamealchamist View Post
    So 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
    to change pet feed costs you open PetYardCommandHandler.cs
     

    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)},

  3. The Following User Says Thank You to Slendergo For This Useful Post:

    Flamealchamist (04-30-2016)

  4. #3
    Luis's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    2,801
    Reputation
    348
    Thanks
    1,846
    My Mood
    Psychedelic
    Solved.
    thanks slendergo.

Similar Threads

  1. [Help] Few questions regarding memory hacking, etc.
    By Ruined1 in forum C# Programming
    Replies: 0
    Last Post: 02-14-2015, 02:10 AM
  2. A few questions regarding MW2 Liberation and VAC
    By vanFail in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 04-06-2014, 08:27 AM
  3. Few questions regarding "eBook for sale" section
    By CiborN in forum Marketplace Talk
    Replies: 4
    Last Post: 12-26-2013, 07:21 AM
  4. WarRock hacking... few questions
    By zelda803 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 02-03-2006, 03:03 PM