denngarr / seat-srp
A module for SeAT that tracks SRP requests
Installs: 26 502
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 8
Forks: 21
Open Issues: 12
Language:Blade
Type:seat-plugin
Requires
- eveseat/eseye: ^2.0
- eveseat/eveapi: ^4.0
- eveseat/services: ^4.1
- eveseat/web: ^4.0
- dev-master
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.6
- 4.2.5
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.x-dev
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- v4.0.2
- 4.0.1
- 4.0.1-alpha
- 4.0.0-alpha
- 3.0.x-dev
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0-beta6
- 3.0.0-beta5
- 3.0.0-beta4
- 3.0.0-beta3
- 3.0.0-beta2
- 3.0.0-beta1
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0-RC1
This package is not auto-updated.
Last update: 2024-12-21 12:19:57 UTC
README
A module for SeAT that tracks SRP requests
This plugin write for SeAT is providing to your instance a way to manage your ship replacement program (SRP)
If you have issues with this, you can contact me on Eve as Crypta Electrica, or on email as 'crypta@crypta.tech'
Quick Installation:
In your seat directory (By default: /var/www/seat), type the following:
php artisan down
composer require denngarr/seat-srp
(You can skip this step if you are running 3.x) After a successful installation, you can include the actual plugin by editing config/app.php and adding the following after:
/*
* Package Service Providers...
*/
add
Denngarr\Seat\SeatSrp\SrpServiceProvider::class
and save the file. Now you're ready to tell SeAT how to use the plugin:
php artisan vendor:publish --force
php artisan migrate
php artisan up
And now, when you log into SeAT, you should see a 'Ship Replacement Program' link on the left.
SRP Payout Calculations
Simple SRP
By default, the application is configured in simple mode. In this mode, the SRP payout is calculated by using the evepraisal value returned from Jita sell for the whole killmail.
Advanced SRP
Advanced SRP can be enabled in the settings menu. Once enabled, the SRP Admin will need to specify rules around payout calculations. The rule types available are Type
, Group
and Default
. The rules are matched in that order with the first match being used to calculate payout value.
Shared Configuration Options
- Price Source - Where the pricing of individual elements will be drawn from
- Base Value - A fixed ISK amount added to each payout from this rule
- Hull % - The percentage of the ship hull value to be paid out.
- Fit % - The percentage of the ship fit value to be paid out.
- Cargo % - The percentage of the ship cargo value to be paid out.
- Deduct Insurance - If selected, the payout will be reduced by the benefit gained from insurance (payout - cost)
Rule Types
Type Rules
Type rules match the ship type exactly, for example a Scorpion or Blackbird. Note that variants are considered separate ships. Ie a Raven is different to a Raven Navy Issue.
Group Rules
Group rules match based on the group of the ship, such as Frigate
, Shuttle
or Battleship
.
Default Rule
The default rule is the rule used when there are no type or group rules that have been triggered. The default rule is a catch all for any remaining payout calculations.
Discord Webhook (optional)
Automated notifications of new SRP Requests submitted in Discord
In Discord application:
- On a channel of your choice, click the cog icon to open the channel settings
- In the channel settings, navigate to the Webhooks tab
- Click
Create Webhook
- Fill in name for the webhook and (optional) image
- Copy the Webhook URL
- Click
Save
to finish creating the webhook
In SeAT file:
The Ship Replacement Program Settings page accepts two variables for the webhook:
- (required)
Webhook URL
: this is the url you copied when creating the webhook in Discord - (optional)
Discord Mention Role
: this can be a room mention (e.g.@here
), a Discord role ID, or a specific user ID - Role ID and User ID can be obtained by typing/@rolename
into a channel (e.g./@srp_manager
)
Example of entries:
Webhook URL = https://discordapp.com/api/webhooks/513619798362554369/Px9VQwiE5lhhBqOjW7rFBuLmLzMimwcklC2kIDJhQ9hLcDzCRPCkbI0LgWq6YwIbFtuk
Discord Mention Role = <@&198725153385873409>
Good luck, and Happy Hunting!! o7
Usage Tracking
In order to get an idea of the usage of this plugin, a very simplistic form of anonymous usage tracking has been implemented.
Read more about the system in use here