Thread: Multiple shops in one npc. [pi]

Results 1 to 8 of 8
  1. #1 Multiple shops in one npc. [pi] 
    Registered Member
    Join Date
    Sep 2013
    Posts
    35
    Thanks given
    8
    Thanks received
    2
    Rep Power
    11
    I'm trying to organize my shops.
    So i thought it'd be cool to have multiple shops in one npc.
    This is what i mean.

    Multiple shops, so like where it says "Frosts" that'd be Armoury.
    Rewards would be Weaponry.
    and when you click it , it will open that shop.

    Help?
    Reply With Quote  
     

  2. #2  
    Donator

    Chief Sosa's Avatar
    Join Date
    Jun 2012
    Posts
    1,164
    Thanks given
    48
    Thanks received
    234
    Rep Power
    83
    Enitydef

    Code:
    		if(i == ####) { // NPC ID 
        entityDef.actions = new String[5];
        entityDef.actions[0] = "OPTION 1";
    	entityDef.actions[2] = "OPTION 2";
    	entityDef.actions[3] = "OPTION 3";
        entityDef.name = "NAME"; // NPC name
    	entityDef.aByte68 = 1;
        entityDef.description = "DESCRIPTION HERE ".getBytes(); // NPC description
    	}

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2013
    Posts
    35
    Thanks given
    8
    Thanks received
    2
    Rep Power
    11
    Thanks, !
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2013
    Posts
    882
    Thanks given
    43
    Thanks received
    57
    Rep Power
    58
    Quote Originally Posted by Lean. View Post
    Enitydef

    Code:
    		if(i == ####) { // NPC ID 
        entityDef.actions = new String[5];
        entityDef.actions[0] = "OPTION 1";
    	entityDef.actions[2] = "OPTION 2";
    	entityDef.actions[3] = "OPTION 3";
        entityDef.name = "NAME"; // NPC name
    	entityDef.aByte68 = 1;
        entityDef.description = "DESCRIPTION HERE ".getBytes(); // NPC description
    	}
    nice conventions
    Reply With Quote  
     

  5. #5  
    Donator

    Chief Sosa's Avatar
    Join Date
    Jun 2012
    Posts
    1,164
    Thanks given
    48
    Thanks received
    234
    Rep Power
    83
    Quote Originally Posted by The Reason View Post
    nice conventions
    nice spam

    Reply With Quote  
     

  6. #6  
    I need some more coffee

    Jason's Avatar
    Join Date
    Aug 2009
    Age
    26
    Posts
    6,101
    Thanks given
    2,384
    Thanks received
    2,796
    Rep Power
    4343
    I know this doesn't answer your question but this may be a unique concept you might want to try.

    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2013
    Posts
    882
    Thanks given
    43
    Thanks received
    57
    Rep Power
    58
    Quote Originally Posted by Jason View Post
    I know this doesn't answer your question but this may be a unique concept you might want to try.

    is that what you have in veldahar? that sounds pretty simple to do, thanks for the idea. just need to figure out how to put buttons on the interface
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    May 2011
    Posts
    1,788
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    i have it like this

    with a back button in the shop interface
    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. Simple dialogue for 2 shops in one npc
    By Tomas in forum Snippets
    Replies: 11
    Last Post: 07-26-2013, 02:26 PM
  2. 80 + Shops in one list!
    By Aymen in forum Configuration
    Replies: 1
    Last Post: 07-26-2013, 06:23 AM
  3. Replies: 17
    Last Post: 06-08-2011, 03:34 AM
  4. Replies: 1
    Last Post: 08-12-2009, 10:48 PM
  5. [Chaos-Revolved]500+ Npcs In One Spot!
    By Jonatino in forum Show-off
    Replies: 15
    Last Post: 06-13-2009, 05:49 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
  •