• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Discovery Development Discovery Developers Forum Discovery Unofficial Development Discovery Mod Content Submissions
« Previous 1 … 3 4 5 6 7 … 28 Next »
Request: /autorepair

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Request: /autorepair
Offline Remnant
03-31-2018, 03:19 PM, (This post was last modified: 03-31-2018, 03:26 PM by Remnant.)
#10
Member
Posts: 2,206
Threads: 248
Joined: Apr 2012

(03-31-2018, 03:06 PM)Alex. Wrote: I have reason to believe that the ReqEquipment/ReqHullStatus hooks may be called when people attempt to repair their ships manually. Maybe we can use that along with BaseData::get_ship_repair_cost

I definitely think that's a safe assumption, given I dunno how else the system would figure out how to calculate repair costs. (Unless it uses an unhooked function, which I doubt) - ill experiment with that later. Let's assume you're right, that ReqEquipment functions solve the issue of getting the cost for the equipment mounted on your vessel. (And a function to set its health). Maybe the repair operation can be done as @SnakThree suggested, on undock? Perhaps just a Boolean flag set on dock, which is checked once the player launches to space again?
The idea is that players don't have to do anything manually.

I discarded the idea at first, because it wouldn't hide the repair operation on the base, but on second thought, it's not that bad of an option, as it'll do it for you, if the user doesn't.

Ps. What kind of garbage values does GetRelativeHealth give you. Those numbers are far too large to match the current or max HP, nor does it seem to be a percentage.
Reply  


Messages In This Thread
Request: /autorepair - by Vexykin - 03-30-2018, 06:54 PM
RE: Request: /autorepair - by Sand-Viper - 03-30-2018, 06:57 PM
RE: Request: /autorepair - by Remnant - 03-30-2018, 07:05 PM
RE: Request: /autorepair - by Remnant - 03-31-2018, 01:28 AM
RE: Request: /autorepair - by Vexykin - 03-31-2018, 01:45 AM
RE: Request: /autorepair - by Remnant - 03-31-2018, 05:16 AM
RE: Request: /autorepair - by SnakThree - 03-31-2018, 06:55 AM
RE: Request: /autorepair - by Alex. - 03-31-2018, 02:54 PM
RE: Request: /autorepair - by Alex. - 03-31-2018, 03:06 PM
RE: Request: /autorepair - by Remnant - 03-31-2018, 03:19 PM
RE: Request: /autorepair - by Gunbladelad - 03-31-2018, 09:55 PM
RE: Request: /autorepair - by Alex. - 04-30-2018, 01:00 AM

  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2026 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode