[317] Creating shops

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Novice JennyScape is offline
    MemberRank
    Mar 2008 Join Date
    3Posts

    [317] Creating shops

    To start off you need an npc i think you get npc's id's best by going on moparscape client and search there.

    When you finded your npc that you want to be the shop keeper

    Add the npc to autospawn.cfg

    So it would be like this:

    Code:
    spawn = 619    2843    3675    0    0    0    0    0    2    seller
    First ### is NPC's id, next ones is coords and you dont have to edit the last numbers.

    And to get coords for the npc just go to spot you want the npc to be and type ::mypos (Should be in all sources)

    Next you need to add items to the shop

    So open shops.cfg

    Heres an example:
    Code:
    shop = ##    Herb Shop                2    2    (itemid)      (amount)       (itemid)       (amount)       (ect)        (ect)
    "Herb shop" is the name of the shop wich will see when you open the shop


    And last part. Open client.java and search for
    Code:
    WanneShop = 30;
    And if you dont find that, search for
    Code:
    case 155: //first Click npc
    And scroll down for few secs until you see alot of wanneshops.

    Then just add
    Code:
    else if (NPCID == ####) { // Id of Npc
    PutNPCCoords = true;
    WanneShop = ##; //Id of shop
    }
    So you put npc's id to NPCID == ####) {
    And Shops id to WanneShop = ##; (Put the same number what you putted in shops.cfg to this:
    Code:
    shop = -->##<--    Herb Shop                2    2

    Please post if i missed some part and i edit.

    Comment's would be nice.
    And im G0D on runelocus, Godz on rs-server.
    My second tut, dont flame/spam pl0x.
    Last edited by JennyScape; 24-07-08 at 11:12 AM.


  2. #2
    Member YourMaster is offline
    MemberRank
    Apr 2008 Join Date
    The Netherlands :)Location
    59Posts

    Re: Creating shops


  3. #3
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: Creating shops

    Well Jenny, i don't want to flame you, as you so rightfully ask, so do not take this as a flaming (like everyone else seems to do >.<) but you have broken the rules of the section, the rule you have broken:

    [QUOTE]#2.1

  4. #4
    Novice JennyScape is offline
    MemberRank
    Mar 2008 Join Date
    3Posts

    Re: Creating shops

    Quote Originally Posted by -fedexer- View Post
    Well Jenny, i don't want to flame you, as you so rightfully ask, so do not take this as a flaming (like everyone else seems to do >.<) but you have broken the rules of the section, the rule you have broken:



    Hopefully you can resolve this issue by editing your thread :winky:

    Oh, Im sorry, I didn't have readed it yet. :P I edit my title.


    EDIT: If i can ;S
    EDIT: Mod can you change the title!

  5. #5
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: Creating shops

    Yeah i figured that would be a problem ^^ Think it's 100 posts needed to change the title.

  6. #6
    Novice faffert is offline
    MemberRank
    Jan 2009 Join Date
    1Posts

    Re: [Tut]Creating shops

    hello, ive got an question.

    how can i delete shops?? cause i get an error if i remove some items from a shop than the server wont start!

    greetz didier

  7. #7
    right + down + X GhostSnyper is offline
    MemberRank
    May 2006 Join Date
    AZ, USALocation
    2,818Posts

    Re: [Tut]Creating shops

    Quote Originally Posted by faffert
    hello, ive got an question.

    how can i delete shops?? cause i get an error if i remove some items from a shop than the server wont start!

    greetz didier
    Just delete the line, and make sure that there are no empty lines before [endofspawnlist] (or w/e)

  8. #8
    Rip Akaruz pixelpro321 is offline
    MemberRank
    Dec 2007 Join Date
    InternetLocation
    1,427Posts

    Re: [Tut - A] [317] Creating shops

    fedexer i think its 250 to change title

  9. #9
    Alpha Member MSDartz is offline
    MemberRank
    May 2008 Join Date
    PwnVilleLocation
    2,171Posts

    Re: [Tut - A] [317] Creating shops

    Cool. I like it.

  10. #10
    Account Upgraded | Title Enabled! silv3rbullet is offline
    MemberRank
    Dec 2008 Join Date
    1,277Posts

    Re: [Tut - A] [317] Creating shops

    Woah, didn't expect to see you here, Dartz.

  11. #11
    Member Hablake is offline
    MemberRank
    Jun 2009 Join Date
    South EnglandLocation
    84Posts

    Re: [Tut - A] [317] Creating shops

    Well Explained, Great Tut Overall 8/10

    Nothings Perfect!

  12. #12
    Venture Adventure Tyler is offline
    LegendRank
    Nov 2008 Join Date
    United KingdomLocation
    4,443Posts

    Re: [Tut - A] [317] Creating shops

    Quote Originally Posted by Hablake View Post
    Well Explained, Great Tut Overall 8/10

    Nothings Perfect!
    Don't copy and paste posts.

  13. #13
    Novice M4RK13 is offline
    MemberRank
    Jul 2009 Join Date
    3Posts

    Re: [Tut - A] [317] Creating shops

    How do you change the prices of the items in shops? Editing shops.cfg won't work.

  14. #14

    Re: [Tut - A] [317] Creating shops

    Hey i keep getting an error when i do this and i did everything exactly as u did

    "exception in thread "main" java.lang.numberformatexception: for input string "41 Santas_rare_shop"
    at java.lang.numberformat.exception.forinputstring<numberformatexception.java:48>
    at java.lang.integer.parseInt<integer.java:456>
    at java.lang.integer.parseInt<integer.java:497>
    at shophandler.loadshops<shophandler.java:115>
    at shophandler.<init><shophandler.java:30>
    at server.main<server.java:28>

  15. #15
    Proficient Member timmscape-hotel is offline
    MemberRank
    Jul 2009 Join Date
    HabboLocation
    154Posts

    Re: [Tut - A] [317] Creating shops

    Quote Originally Posted by 1234qwerty1234 View Post
    Hey i keep getting an error when i do this and i did everything exactly as u did

    "exception in thread "main" java.lang.numberformatexception: for input string "41 Santas_rare_shop"
    at java.lang.numberformat.exception.forinputstring<numberformatexception.java:48>
    at java.lang.integer.parseInt<integer.java:456>
    at java.lang.integer.parseInt<integer.java:497>
    at shophandler.loadshops<shophandler.java:115>
    at shophandler.<init><shophandler.java:30>
    at server.main<server.java:28>

    did you compile or is this the compile error?
    i think this is the compile error?



Page 1 of 2 12 LastLast

Advertisement