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

Having trouble adding a stat scroll to vendor

Discussion in 'Script Support' started by metalscourge, Nov 5, 2018.

  1. metalscourge
    Offline

    metalscourge New Member

    Joined:
    Oct 12, 2018
    Messages:
    5
    Likes Received:
    0
    i'm trying to add stat scrolls to a vendor
    how do i set the type of stat scroll +5 +10 or in this case +50? my stat cap is 500


    Code (C#):
    1. Add(new GenericBuyInfo("Stat Scroll +50", typeof(StatCapScroll(550), 5000000, 20, 0x14F2, 0x481) );
     
  2. Po0ka
    Offline

    Po0ka Active Member

    Joined:
    Aug 19, 2014
    Messages:
    680
    Likes Received:
    81
    Check the definition of "GenericBuyInfo", i think it accepts an array of parameters you can pass.
    Some object[]
    Which means you can pass "new object[]{ 5 }" i think?

    There might be some stock examples of this, take a look at all the vendor SBinfos.
     
  3. metalscourge
    Offline

    metalscourge New Member

    Joined:
    Oct 12, 2018
    Messages:
    5
    Likes Received:
    0
    Yup Yup Thanks that worked. Thank you.
    Code (C#):
    1.  Add(new GenericBuyInfo("StatCapScroll", typeof(StatCapScroll), 5000000, 20, 0x14F2, 0x481, new object[] { 550 }));
     
    • No Problem! No Problem! x 1
Similar Threads: Having trouble
Forum Title Date
Mono Support Having trouble getting server to run on Ubuntu16.04 and Mono Sep 22, 2018
Script Support Still having trouble with Ultima Live. Apr 15, 2016
General Discussion Still having trouble Uploading Mar 25, 2016
Archived Bug Reports A few Eoden problems we are having. Jul 2, 2018
Script Support Having some difficulty with quests that use ObtainObjective May 30, 2017
Script Support Having a little prob with HS ships Mar 25, 2017
General Discussion having problem with pandoras box 3.0 Sep 16, 2016