1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Random Magery Scrolls for Selling 2017-04-15

Magery Vendors Customizatiom: Random Scrolls for Selling

  1. Joew
    Random Magery Scrolls for Selling
    This scripts adds randoms magery scrolls for selling at Magery Vendors.
    You can choose how many types of scrolls do you want to sell, how many ammount for each ones and wich cicles do you want.


    Installation:
    Just replace the file: Scripts\VendorInfo\SBMage.cs for this one and recompile.


    Customiztions:
    You need to change 2 things on code.

    1) Line 98:
    Code (C#):
    1. Retorno4 = RandomScroll(4, rnd.Next(2,4)); // RandomScroll(Circle, Amount) => Sorts Amount units of circle Circle.
    The first param is wich circle the scrolls would be. In this case, its from 4th Circle.

    The second param is how many different scrolls will be sell. This example, it will random between 2 and 4 differents scrolls from 4th circle.

    If will want random from all Circles, just choose the number zero: 0

    2) Line 102:
    Code (C#):
    1. this.Add(new GenericBuyInfo(types[x.Key], 12 + (x.Value / (8 * 4)), rnd.Next(1,10), x.Value, 0));
    Price that scrolls will be sell:
    Code (C#):
    1. 12 + (x.Value / (8 * 4))
    Ammount of scrolls to sell:
    Code (C#):
    1. rnd.Next(1,10)
    In this case, it will be random between 1 and 10 scrolls.

    You can change whatever you want and share. The only thing that I asks you is to not remove the credits.
    sahisahi likes this.