Project Zomboid

Project Zomboid

Vendors
 此主题已被置顶,因此可能具有重要性
Nine Iron  [开发者] 2022 年 6 月 23 日 上午 8:52
FAQs - If you have a question regarding the mods use, please post it here!
Let me know, I'll help you out!
< >
正在显示第 1 - 15 条,共 71 条留言
Nine Iron  [开发者] 2022 年 6 月 23 日 上午 9:39 
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 2022 年 6 月 23 日 上午 9:43 
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.
最后由 R4ZH0R 编辑于; 2022 年 6 月 23 日 上午 9:46
Nine Iron  [开发者] 2022 年 6 月 23 日 上午 9:55 
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.
最后由 Nine Iron 编辑于; 2022 年 6 月 23 日 上午 10:38
R4ZH0R 2022 年 6 月 23 日 上午 11:35 
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  [开发者] 2022 年 6 月 23 日 上午 11:40 
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 2022 年 6 月 23 日 上午 11:45 
引用自 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
最后由 R4ZH0R 编辑于; 2022 年 6 月 23 日 上午 11:56
Nine Iron  [开发者] 2022 年 6 月 23 日 上午 11:51 
{"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 2022 年 6 月 23 日 上午 11:56 
引用自 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 2022 年 6 月 24 日 上午 11:15 
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  [开发者] 2022 年 6 月 24 日 上午 11:27 
Glad to hear it!
PAPU 2022 年 6 月 25 日 下午 3:54 
@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
最后由 PAPU 编辑于; 2022 年 6 月 25 日 下午 3:57
Nine Iron  [开发者] 2022 年 6 月 25 日 下午 4:02 
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.
最后由 Nine Iron 编辑于; 2022 年 6 月 25 日 下午 4:02
PAPU 2022 年 6 月 25 日 下午 8:23 
Im not kinda techies how to convert that money from one mod to another
PAPU 2022 年 6 月 25 日 下午 8:24 
Is there a way how we can do this Sir?
Nine Iron  [开发者] 2022 年 6 月 25 日 下午 8:29 
No, not unless the author of ATM (Better Money System) designed it to.
最后由 Nine Iron 编辑于; 2022 年 6 月 25 日 下午 8:29
< >
正在显示第 1 - 15 条,共 71 条留言
每页显示数: 1530 50