Project Zomboid

Project Zomboid

Vendors
 This topic has been pinned, so it's probably important
Nine Iron  [developer] 23 Jun, 2022 @ 8:52am
FAQs - If you have a question regarding the mods use, please post it here!
Let me know, I'll help you out!
< >
Showing 1-15 of 71 comments
Nine Iron  [developer] 23 Jun, 2022 @ 9:39am 
In response to R4ZHOR -

"Yeah I took a look into your script, nice they does not require that mods, because I don't use them. I just use britas armor pack, vannila weapon expansion, and other weapon mods.

I still have yet to learn how to add some itens there following the same method as you did, checking if the mod in installed and then running the functions.

One thing I did not understood and for that, you could open another fixed channel about FAQ / Questions so we can talk to you there.

Some stuff like the true or false in the script, I didnt get it. Also, you said to add the caliber but some items does not have caliber there and I don't know how to get that info for some mod items also."





The true and false is set for multiple quantities. I wouldn't suggest changing them at this point, as it might break the mod, but you can if you want.

The ammunition and attachments won't need calibers, just the magazines and guns. If the items in that table have calibers, you will need to add calibers. It won't show up otherwise. If you're adding weapons that have a different caliber than what is already there then you would need to add the caliber to the caliber table(vendorsWeapons[4]) as well as the item. To get that info, it's just the size of the bullet the guns/magazine use.

To add items from other mods you would need the mod id at the beginning of the ItemType. I apologize, I stated ItemName in the intructions, but it is ItemType. If you open the admin 'Item List' in game, the type field is the first one. Find the item you're looking for and then add the mod identifier. For example to add the ATM machine you would add {"Vendors.ATMMachine", 100}. The ID is not always the mod name though.
R4ZH0R 23 Jun, 2022 @ 9:43am 
I have a few questions about how to correctly add itens to the vendors. So:

- For example, I do not use Brita's weapon pack. But I know the base item name that I want to buy, both ammunition and clip. How do I correctly introduce it inside the vendors price script?

In vendorsWeapons[1] I have the following:
{"Box_Ammo", {"ShotgunShellsBox", 250, true}, {"223Box", 220, true}, {"308Box", 250, true}, {"Bullets38Box", 200, true}, {"Bullets45Box", 200, true}, {"40Rounds", 4000, true}, {"556Box", 250, true}};

As you can see, I added "40Rounds" ammo and its item name is base.40Rounds, then I removed the base. before adding it to the list as it seems right.

I have also added the caliber, as you mentioned:
{"Caliber", ".40Rounds", ".223-REM", ".308", ".44-MAG", ".45 Auto", "5.56", "9mm"};

Before that I have added
{"Magazines", {"40ClipCan", 10000, false, "40Rounds"}, etc...

But all I can see in vendor, is a new context menu with the 40Rounds but nothing being selled, and when clicked/mouse over, nothing happens.
Last edited by R4ZH0R; 23 Jun, 2022 @ 9:46am
Nine Iron  [developer] 23 Jun, 2022 @ 9:55am 
In the caliber table you have ".40Rounds" but just "40Rounds" in the magazine table. You would need to remove the '.' The ".223" and ".308" are because they're normally labeled with the '.' but 40Rounds wouldn't need it.

I'm not sure what mod they're from, but in Brita they're called 40HERound and 40INCRound.
You would need to change 40Rounds in the ammo table to 40HERound or 40INCRound. If it's not Base.40HERound you would need to add whatever mod ID instead of "Base".

Let me know if you need more help.


Also, since your posts aren't actually coming through I can't see your post history for the translation on the main page.
Last edited by Nine Iron; 23 Jun, 2022 @ 10:38am
R4ZH0R 23 Jun, 2022 @ 11:35am 
The 40mm HE, can of 40mm rounds and clip of 40mm rounds, they all come from Paw Low Loot (and paw low loot fantasy).

Their name is Base.40Rounds, Base.40ClipCan and Base.40Clip
respectively.

https://i.imgur.com/pfpgG41.png

I will make the changes you said and will try again.
Nine Iron  [developer] 23 Jun, 2022 @ 11:40am 
Yeah, if they're Base. then you should just need to add "40MM HE Round" "Can of 40MM Rounds" and "Clip of 40MM Rounds" Add "40MM" to the caliber list.
R4ZH0R 23 Jun, 2022 @ 11:45am 
Originally posted by Nine Iron:
Yeah, if they're Base. then you should just need to add "40MM HE Round" "Can of 40MM Rounds" and "Clip of 40MM Rounds" Add "40MM" to the caliber list.
OK

About the mod ID instead of base, in ammo table I would need to change this:
{"40Rounds", 4000, true},

to this then?
{"40ClipCan", 4000, true},

And now I have:
{"Magazines", {"40ClipCan", 10000, false, "40MM"},

Since the 40ClipCan is the magazine, and 40Rounds is the ammunition.


I also have 13.2 Ammo (132Bullets) and Box of 13.2 Bullets (132Box) that I want to add. Will repeat the process.

Since 13.2 does not have a clip, just added the box and now the script look like this:

https://i.imgur.com/h76uhxV.png
Last edited by R4ZH0R; 23 Jun, 2022 @ 11:56am
Nine Iron  [developer] 23 Jun, 2022 @ 11:51am 
{"Magazines", {"40ClipCan", 10000, false, "40Rounds"},

Yes, but in the picture you sent it's listing the type(tipo) as 'Clip of 40MM Rounds'. Vendors is looking for the itemType. So whatever is listed in the type field is what you need to enter.
R4ZH0R 23 Jun, 2022 @ 11:56am 
Originally posted by Nine Iron:
{"Magazines", {"40ClipCan", 10000, false, "40Rounds"},

Yes, but in the picture you sent it's listing the type(tipo) as 'Clip of 40MM Rounds'. Vendors is looking for the itemType. So whatever is listed in the type field is what you need to enter.

Ok. Changes will be made. Thanks!

Will let you know after changing it
R4ZH0R 24 Jun, 2022 @ 11:15am 
Just a last feedback. The changes worked! The tip in the changelog of the other mod, vendors prices also worked and now everything seems running smoothly.

Can't wait for new content of this mod! ;)
Nine Iron  [developer] 24 Jun, 2022 @ 11:27am 
Glad to hear it!
PAPU 25 Jun, 2022 @ 3:54pm 
@Nine Iron I'm working on one servera and your's are great were using it because it's more realistic way of trading.... Just wanna ask some help how we can integrate the money values to another mod like "Better Money System" mod. Already both install them but can't figure out how to make it work. What happen is i can't deposit the money (Vendor Mod) to ATM (Better Money System) machine
Last edited by PAPU; 25 Jun, 2022 @ 3:57pm
Nine Iron  [developer] 25 Jun, 2022 @ 4:02pm 
The itemTypes for Vendors money items are:

Vendors.OneDollar
Vendors.TenDollar
Vendors.HundredDollar
Vendors.ThousandDollar

ATM (Better Money System) would need to look for those items.
Last edited by Nine Iron; 25 Jun, 2022 @ 4:02pm
PAPU 25 Jun, 2022 @ 8:23pm 
Im not kinda techies how to convert that money from one mod to another
PAPU 25 Jun, 2022 @ 8:24pm 
Is there a way how we can do this Sir?
Nine Iron  [developer] 25 Jun, 2022 @ 8:29pm 
No, not unless the author of ATM (Better Money System) designed it to.
Last edited by Nine Iron; 25 Jun, 2022 @ 8:29pm
< >
Showing 1-15 of 71 comments
Per page: 1530 50