Project Zomboid

Project Zomboid

140 个评价
Rick's MLC Pay & Pump
3
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.232 MB
2024 年 3 月 20 日 下午 10:28
10 月 12 日 上午 2:49
21 项改动说明 ( 查看 )

订阅以下载
Rick's MLC Pay & Pump

在 RicksMLC 的 1 个合集中
Rick's MLC's Fine Collection of Hand Crafted Mods
13 件物品
描述
"No dough, no go." - Quote from the Secure-Gas-And-Go Payments Processing Company

Gas pumps throughout the country have been updated to the finest level of secure payment possible.
To use a gas pump you will require either a Credit Card with a non-zero balance, or cash Money.
Each time you pick up a blank Credit Card an amount will be displayed in its description in your inventory.
When you use the gas pump it will draw down any Credit Cards and then Money in your primary inventory.
To aid in budgeting, any Credit Cards and Money in your backpacks or other packs will not be consumed.

There are sandbox options to all you to customise the cost of various fuels, and to set auto search for money in your bags.

This mod is @Nightscale's fault; many thanks for the idea and the specification.
Many thanks to @Khontac for assistance and advice in designing the payments handling from the inventory.

Include the RicksMLC_PayAtThePump3rdPartyPatch if you use Treads and/or FuelAPI. This patch fixes a compatibility issue between Pay At The Pump and Treads and FuelAPI mods.

Workshop ID: 3194049112
Mod ID: RicksMLC_PayAtThePump
Mod ID: RicksMLC_PayAtThePump3rdPartyPatch
热门讨论 查看全部(7)
2
10 月 12 日 上午 2:50
PZK vehicles
Cyrisa
5
2024 年 7 月 19 日 上午 10:38
Errors
Orlo6k
3
4 月 3 日 上午 5:11
Suggestion
dtoxic
178 条留言
RicksMLC  [作者] 10 月 12 日 上午 2:50 
PZK vanilla compatibility is now implemented. Tanker trucks are expensive to fill.
RicksMLC  [作者] 9 月 3 日 下午 11:25 
@Jusblazm. Done :) The B41 .lua file is now identical to the B42. Please let me know if you have any issues.
Jusblazm 9 月 3 日 下午 5:55 
Hi @RicksMLC, are you still updating the B41 version of this mod? I had a request to create a compatibility patch between this and a mod of mine, and I've done so in b42, but in b41 the reduceCreditBalances function is still local and not global. If you would be willing to update that, it would be wonderful.
RagingLoony 6 月 8 日 上午 4:27 
lol tyvm, love this community
RicksMLC  [作者] 6 月 8 日 上午 12:21 
@Shipyard. I have updated the mod so the local functions are now public. Added the following comment:
-- Note for modders: To add mod support for your fuel handling there are three API methods to call:
-- RicksMLC_PayAtPumpAPI.initPurchaseFuel(this)
-- Call in the :new() Check the source is a fuel pump and initialise the pay amounts.
-- RicksMLC_PayAtPumpAPI.updateFuelPurchase(self, self.tankStart, self.tankTarget)
-- Call in :update(). Check the funds balance and reduce any credit card funds by the delta fuel amount.
-- Note that the :perform() is not needed as the funds balance checking and reducing is handled in updateFuelPurchase.
-- RicksMLC_PayAtPumpAPI.handleEmergencyStop(self)
-- Call in :stop(). Handle the take fuel action abort state by finishing the payment of the final amount.
RicksMLC  [作者] 6 月 7 日 上午 3:27 
@Shipyard - Hmm... I had made some functions local (private) which should really be public so other people can add compatibility. The local functions are "initFuelPurchase", "payForFuel", "updateFuelPurchase" and "handleEmergencyStop". I will make these available once I have tested the changes and they should be sufficient to add compatibility override functions. An example implementation would be similar to the code inside the "require "TimedActions/UGTakePropane"" code on line 530 of RicksMLC_PayAtThePump.lua
Shipyard 6 月 6 日 下午 8:23 
Hello again! Do you think it is possible to get this to work with [B42] Useful Barrels? In the comments, they mentioned that they tried to see if it was possible on their end to make a patch but could not. Would this be something you could do? Thanks!
Cyrisa 5 月 17 日 下午 1:12 
Could this be patched to work with "JM3 refill propane"?
It would be pretty awesome to add cost to propane use at the pump.

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3479641945
jamie bertle 4 月 11 日 下午 3:45 
in b42 we spawn in with ID cards that seems to act as a way for us to use the atms?? . as i had no credit card when i used it. your chara already has a bank acc. which is fine i however i noticed that acc and the pzlinxu mods wallet acc thing. are not linked. i had over 2 grand in my bank acc yet, pzlinxu only showed a 1000. and it seemed to use my id card as bankcard or credit card. side note pzlinxu has very few items you can buy, and i cant seem to sell any items. zbay is far better then pzlinxu,it has far more buying options.