dispatch support

main
Samantha Wright 2025-07-10 04:10:33 -07:00
parent 8b4d528b42
commit bfbc458f37
2 changed files with 8 additions and 1 deletions

View File

@ -374,7 +374,7 @@ main(integer src, integer n, string m, key outs, key ins, key user) {
return; return;
} }
integer viable = FALSE; integer viable = FALSE; // desired power change is possible
integer new_state = (sys == "on"); integer new_state = (sys == "on");
if(!new_state && sys != "off") { if(!new_state && sys != "off") {
@ -609,6 +609,9 @@ main(integer src, integer n, string m, key outs, key ins, key user) {
} }
notify_program("security power", outs, NULL_KEY, user); notify_program("security power", outs, NULL_KEY, user);
if(llGetInventoryType("dispatch") == INVENTORY_SCRIPT) {
notify_program("dispatch power", outs, NULL_KEY, user);
}
llSleep(0.5); llSleep(0.5);

View File

@ -129,6 +129,10 @@ main(integer src, integer n, string m, key outs, key ins, key user) {
s_msg = "You have been denied access to " + callsign + " indefinitely."; s_msg = "You have been denied access to " + callsign + " indefinitely.";
} }
if(llGetInventoryType("dispatch") == INVENTORY_SCRIPT) {
notify_program("dispatch security " + action, subject, NULL_KEY, subject);
}
print(s_outs, subject, s_msg); print(s_outs, subject, s_msg);
if(recognition_inhibited && (action == "yes" || action == "trust")) if(recognition_inhibited && (action == "yes" || action == "trust"))