Results 1 to 7 of 7

Thread: Reflection shop.scar

  1. #1
    Join Date
    Feb 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Reflection shop.scar

    Just working on shop.scar...

    I'm unable to test at the moment, would appreciate some feedback..


    SCAR Code:
    //------------------------------------------------------------------\\
    //--             Scar Non-Standard Resource Library               --||
    //--                  » Reflection Routines - Banking             --||
    //------------------------------------------------------------------//
    // * function GetShopArray(Playerstock : Boolean): TBankSlotArray;  // * by Seroko
    // * function ShopCount(id : Integer;                               // * by Seroko
    //                      Playerstock : Boolean): Integer;            // *
    // * procedure BuyItem(id, quantity : Integer;                      // * by Seroko
    //                     Playerstock : Boolean);                      //
    //------------------------------------------------------------------//
    Current Project: Catching up on what I missed, re-writing some old includes I done in the past.
    Upcoming Project: Open For Suggestions

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Nice, I'll use it and credit you in my script, ok?

    EDIT: TShopArray? Where can I find it?
    EDIT: I just replaced it with TBankSlotArray

    EDIT: This line gave me an error: "r := TheShop[i].Index/10 + 1;"
    Last edited by Zyt3x; 08-24-2009 at 08:41 PM.

  3. #3
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Nice, I'll use it and credit you in my script, ok?

    EDIT: TShopArray? Where can I find it?
    EDIT: I just replaced it with TBankSlotArray
    It's TBankSlotArray
    EDIT: A second late...

  4. #4
    Join Date
    Feb 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Nice, I'll use it and credit you in my script, ok?

    EDIT: TShopArray? Where can I find it?
    EDIT: I just replaced it with TBankSlotArray

    EDIT: This line gave me an error: "r := TheShop[i].Index/10 + 1;"

    Sorry, I was attempting to see if I could get values also and created TShopArray to hold the values, and it turned out to be impossible or beyond me, so I went back to just using BankSlots and obviously forgot to change it back, Like I said its really untested as I can't test it at the moment.

    I believe if you're using the mainstock and the quantity is infinite it shows up as -1, And I don't know why that would of gave you an error unless you tried to buy something that didn't exist. I probably should add a Exit; if it doesn't exist.
    Current Project: Catching up on what I missed, re-writing some old includes I done in the past.
    Upcoming Project: Open For Suggestions

  5. #5
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by Seroko View Post
    Sorry, I was attempting to see if I could get values also and created TShopArray to hold the values, and it turned out to be impossible or beyond me, so I went back to just using BankSlots and obviously forgot to change it back, Like I said its really untested as I can't test it at the moment.

    I believe if you're using the mainstock and the quantity is infinite it shows up as -1, And I don't know why that would of gave you an error unless you tried to buy something that didn't exist. I probably should add a Exit; if it doesn't exist.
    Is there any difference between shop-item-ids and inventory-item-ids?

  6. #6
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Me likey, i would honestly use in my karamja fisher and seller. If only this had been around a few days ago

  7. #7
    Join Date
    Feb 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Is there any difference between shop-item-ids and inventory-item-ids?
    Inventory item ids are +1 from the actual id (From the ge)

    Shop items are the actual ids if thats what you're talking about. It was mostly built to view the player stock though, as I was having issues getting the amount with traditional ways..
    Current Project: Catching up on what I missed, re-writing some old includes I done in the past.
    Upcoming Project: Open For Suggestions

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •