Jump to content

Pay for Electricity

Closed 1.1.2

CashDK
CashDK

Posted

Hi, anyway we could make it work with the Umod plugin Pay for Electricity. As for now every generator on map becomes a paying generator. 

Fruster

Posted

Hiey! sorry, I didn't quite understand what you meant.

CashDK

Posted

Hi, I use the plugin from Umod called "Pay for Electricity" it makes the standard generator stop the power outlet until you pay with scrap in the plugins menu. So the generators used in DungeonBases never work because of no outlet. Nivex has added support for his RaidableBases in the "Pay for Electricity" plugin: He added this:

   [PluginReference] Plugin RaidableBases;

#region Helpers
        private bool EventTerritory(BaseEntity entity) { try { return Convert.ToBoolean(RaidableBases?.Call("EventTerritory", entity.transform.position)); } catch { return true; } }

 

Now I do not know whar to do or add. 😉
 

Fruster

Posted

Sorry for the late reply. As far as I know, raidable bases, like my plugin, use ownerID = 0 for all buildings and items. I think it would be better to add an exception in the Pay for Electricity plugin and ignore such buildings. Perhaps you should contact the developer of that plugin

CashDK

Posted

1 minute ago, Fruster said:

Sorry for the late reply. As far as I know, raidable bases, like my plugin, use ownerID = 0 for all buildings and items. I think it would be better to add an exception in the Pay for Electricity plugin and ignore such buildings. Perhaps you should contact the developer of that plugin

Thanks Mate, I did reach out to the developer but never got any reply. So I got Chatgpt to add it to the plugin. Its working now, only thing I had to do was set the copypaste config ""EntityOwner (true/false)": false," 

Fruster

Posted

You're welcome! If the issue is resolved, I'll close this ticket. If you have any questions, you can let me know in PM

  • Like 1
Fruster

Posted

Changed Status from Pending to Closed

2m

Downloads

Total number of downloads.

9.6k

Customers

Total customers served.

139.6k

Files Sold

Total number of files sold.

2.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.