Zelda
Joined: 14th Jul 2011
Posts: 520
What is shop ID?
Im making a new shop NPC and I got this box telling the shop id of the new duplicated NPC is 1. What is this? Should I change it?
---
Nice, Get Hacked Bro.
13 years, 33 weeks ago
|
Re: What is shop ID?
Heres an example: 15.name = Aeven Weapon Smith
15.trade = 21,100,5, 27,350,15, 207,500,30, 34,650,50, 18,1200,100, 19,1600,100, 283,2500,400
the shop ID is 15. this is correct because the 15 represents the shop ID.
---
stay tuned.
13 years, 33 weeks ago
|
Zelda
Joined: 14th Jul 2011
Posts: 520
Re: What is shop ID?
isnt this the NPC id?
---
Nice, Get Hacked Bro.
13 years, 33 weeks ago
|
Re: What is shop ID?
Zelda posted: (17th Sep 2011, 09:03 pm)
isnt this the NPC id?
Nope, it's the shop id. try it out and you'll see the results ;)
---
stay tuned.
13 years, 33 weeks ago
|
Zelda
Joined: 14th Jul 2011
Posts: 520
Re: What is shop ID?
ok ill try, but I spawned: I had a "shop id" as u say 188, Npc name is supermarket, I typed $snpc 188 and appeared the supermarket npc.... is this correct to happen? Shall the shop id be the npc id?
---
Nice, Get Hacked Bro.
13 years, 33 weeks ago
|
Re: What is shop ID?
As far as I've experienced, the NPC ID and Shop ID are completely separate. You can have NPC #125 have Shop ID #32 if you want.
13 years, 33 weeks ago
|
Zelda
Joined: 14th Jul 2011
Posts: 520
Re: What is shop ID?
Very strange, how come I spawned 188 and appeared the Npc with the same shop id?
---
Nice, Get Hacked Bro.
13 years, 33 weeks ago
|
Re: What is shop ID?
Here's a way to test this:
1) Edit your NPC pub to give "Cyndi" a Shop ID of 15 ("Aeven Weapon Smith")
2) Go in-game and summon "Cyndi" - $snpc 100
3) Check to see if she opens up the Aeven Weapon Smith shop. If she does, all you need to do is make sure the Shop ID in the pub file matches the Shop ID you want the NPC to have. If she doesn't, then my experiences must've been bugged or due to an old rev or something.
Either way, you just have to make sure that the Shop ID correlates to something detailed in your shops.ini file. If it won't work to have the NPC pointing to a different Shop ID, have the Shop ID point to the NPC. From what it would appear, keeping Shop IDs and NPC IDs the same just
helps maintain a level of organization that makes development easier.
13 years, 33 weeks ago
|
Zelda
Joined: 14th Jul 2011
Posts: 520
Re: What is shop ID?
look the error I got:
[WRN] skipping invalid craft shop data for NPC #75
75.name = Old Bazzar shop
75.trade = 451,200,130, 334,50000,35000
75.craft = 424,475,10,408,2,219,5, 425,475,10,408,2,215,5, 201,475,98,411,5,457,1, 436,475,300,457,3,421,6,156,12,424,2,425,2
What has gone wrong?
---
Nice, Get Hacked Bro.
13 years, 33 weeks ago
|
Re: What is shop ID?
Zelda posted: (17th Sep 2011, 09:49 pm)
look the error I got:
[WRN] skipping invalid craft shop data for NPC #75
75.name = Old Bazzar shop
75.trade = 451,200,130, 334,50000,35000
75.craft = 424,475,10,408,2,219,5, 425,475,10,408,2,215,5, 201,475,98,411,5,457,1, 436,475,300,457,3,421,6,156,12,424,2,425,2
What has gone wrong?
Your craft line is missing numbers. The correct line should read:
75.craft = 424,475,10,408,2,219,5,0,0, 425,475,10,408,2,215,5,0,0, 201,475,98,411,5,457,1,0,0, 436,475,300,457,3,421,6,156,12
Note that you can normally have up to four items and quantities to craft any given item unless you're using a custom client, so 424,2,425,2 are overflow. The additional 0s are required in the other items because there ALWAYS needs to be four items and quantities (unless you're using a custom
client, again), and 0,0 gives a null item and null quantity.
Assuming you just drop the last two item req's entirely, the code above should fix your NPC's crafting problem.
13 years, 33 weeks ago
|
Re: What is shop ID?
Shopid isn't used in eoserv. so you can just ignore it.
---
http://www.torn.com/478456
13 years, 33 weeks ago
|
Zelda
Joined: 14th Jul 2011
Posts: 520
Re: What is shop ID?
still not working:
75.name = Old Bazzar shop
75.trade = 451,200,130, 334,50000,35000
75.craft = 424,475,10,408,2,219,5,0,0, 425,475,10,408,2,215,5,0,0, 201,475,98,411,5,457,1,0,0, 436,475,300,424,4,425,4,156,12
---
Nice, Get Hacked Bro.
13 years, 33 weeks ago
|
Re: What is shop ID?
try using this:
http://www.mediafire.com/?babvfjbrqn8w6zc
It helps a lot with stuff with npcs.
---
http://www.torn.com/478456
13 years, 33 weeks ago
|
Zelda
Joined: 14th Jul 2011
Posts: 520
Re: What is shop ID?
I do have this
---
Nice, Get Hacked Bro.
13 years, 33 weeks ago
|
Re: What is shop ID?
Zelda posted: (17th Sep 2011, 10:07 pm)
still not working:
75.name = Old Bazzar shop
75.trade = 451,200,130, 334,50000,35000
75.craft = 424,475,10,408,2,219,5,0,0, 425,475,10,408,2,215,5,0,0, 201,475,98,411,5,457,1,0,0, 436,475,300,424,4,425,4,156,12
The code looks fine to me. What does the NPC dialogue window say when you bring it up in editPub?
13 years, 33 weeks ago
| | | | | | | | | | | | | | | |