Thread: [718] shops help!!

Results 1 to 10 of 10
  1. #1 [718] shops help!! 
    Registered Member
    Join Date
    Jul 2014
    Posts
    25
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Hi there

    I'm editing a 718 server with eclipse and i don't know how to get an npc to open a shop.. I've looked up loads of tutorials but none have helped me

    also, how do you get an npc to face a certain direction, all the ones i spawn face northwest and it's quite annoying..

    i've created all my shops in unpackedShops.txt and it won't work for some reason, my console never comes up with "packing shops"..

    if anyone could help me with these problems then i will be forever in your debt

    cheers
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    You have to delete packedshops.s

    Code:
    else if (npc.getId() == x)
    ShopsHandler.openShop(player, x);
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2014
    Posts
    25
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    oh and whenever i try to trade an npc now, it won't trade, none of them work anymore, they used to before i messed around with unpackedShops... someone please help me
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2014
    Posts
    25
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    where do i put that code??
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2014
    Posts
    25
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    packedshops.s isn't even there, i think the code has a problem with packing the shops.. any ideas? D:
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by Ashley18 View Post
    unpackedshops.p isn't even there, i think the code has a problem with packing the shops.. any ideas? D:
    You can edit posts, no need to triple post.

    NPCHandler.java

    packedshops should be in /data/items/

    Check launcher if it sends the method to pack.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2014
    Posts
    25
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    thanks so much man you're a legend, quick question how do i change the facing position of the npc i wanna spawn? D:

    soz for triple post lol
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jul 2014
    Posts
    25
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    tried that bro but i don't have NPCSpawning.java for some reason..
    Reply With Quote  
     

  10. #10  
    Registered Member Sjonsen's Avatar
    Join Date
    May 2012
    Posts
    321
    Thanks given
    15
    Thanks received
    44
    Rep Power
    20
    NPC.java, processNPC method:

    Code:
    if (id == NPCID){
    			setDirection(DIRECTION_INT);
    		}
    Direction ints are in the thread Datbeastmayne linked.
    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. [718] Shop help
    By Slixr in forum Help
    Replies: 9
    Last Post: 09-17-2013, 06:04 AM
  2. 718 Shop help
    By V E X in forum Help
    Replies: 4
    Last Post: 09-13-2013, 09:21 PM
  3. 667/718 Matrix Shop help?!?!!?
    By lighter xd in forum Help
    Replies: 6
    Last Post: 04-17-2013, 03:56 PM
  4. 718 Shop help
    By Newreality in forum Help
    Replies: 2
    Last Post: 01-16-2013, 01:07 AM
  5. 718 Shop Prices Help
    By CamperScape in forum Help
    Replies: 3
    Last Post: 12-26-2012, 07:09 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •