Thread: How do I make an NPC open a shop?

Results 1 to 3 of 3
  1. #1 How do I make an NPC open a shop? 
    Registered Member

    Join Date
    Oct 2012
    Posts
    398
    Thanks given
    31
    Thanks received
    33
    Rep Power
    991
    Yeah, I was just wondering how to make it so when I click on an NPC it opens the shop I want it to. I've already made the shop. Just can't figure that part out.
    Reply With Quote  
     

  2. #2  
    New Project
    Ben_U's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    1,711
    Thanks given
    109
    Thanks received
    360
    Rep Power
    66
    Code:
    				else if (npc.getId() == 457)
    					ShopsHandler.openShop(player, 27);
    Where it says 457, thats where the NPC id goes, and where the 27 is, is what shop id it is.
    Reply With Quote  
     

  3. #3  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Find firstclicknpc in action handler and you'll see cases with random things.


    Case 1234:
    C.getPA().openShop(1);
    Break;

    I think you can change it

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. How to make an Npc open a shop on " Trade "
    By ProjectAurora in forum Tutorials
    Replies: 13
    Last Post: 08-06-2013, 12:59 AM
  2. Npc Dialogue Shop Open
    By Sam' in forum Requests
    Replies: 0
    Last Post: 06-08-2012, 11:30 AM
  3. npc Dialogue open shop
    By kiltedknight in forum Help
    Replies: 1
    Last Post: 02-12-2011, 09:34 PM
  4. [pi] donator shop, wont open new npc
    By Fearless in forum Help
    Replies: 4
    Last Post: 11-09-2010, 01:16 AM
  5. How to make an NPC open the char screen?
    By coder sal in forum Help
    Replies: 3
    Last Post: 01-20-2009, 07:03 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •