mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-11 18:11:35 +00:00
* support running saved sdql scripts * Update code/modules/admin/verbs/SDQL2/SDQL_2.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> --------- Signed-off-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
20 lines
523 B
Plaintext
20 lines
523 B
Plaintext
/client/proc/load_sdql2_query()
|
|
set category = "Debug"
|
|
set name = "Load SDQL2 Query"
|
|
|
|
if(!check_rights(R_PROCCALL))
|
|
return
|
|
|
|
var/list/choices = flist("data/sdql/")
|
|
var/choice = input(src, "Choose an SDQL script to run:", "Load SDQL Query", null) as null|anything in choices
|
|
if(isnull(choice))
|
|
return
|
|
|
|
var/script_text = return_file_text("data/sdql/[choice]")
|
|
script_text = input(usr, "SDQL2 query", "", script_text) as message
|
|
|
|
if(!script_text || length(script_text) < 1)
|
|
return
|
|
|
|
run_sdql2_query(script_text)
|