You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs.
/client/verb/wiki(query as text)
set name ="wiki"
set desc ="Type what you want to know about. This will open the wiki in your web browser. Type nothing to go to the main page."
set hidden =TRUE
var/wikiurl=CONFIG_GET(string/wikiurl)
if(wikiurl)
if(query)
var/output= wikiurl +"/index.php?search="+ query
src<< link(output)
elseif (query !=null)
src<< link(wikiurl)
else
to_chat(src, span_danger("The wiki URL is not set in the server configuration."))
return
/client/verb/forum()
set name ="forum"
set desc ="Visit the forum."
set hidden =TRUE
var/forumurl=CONFIG_GET(string/forumurl)
if(forumurl)
if(tgui_alert(src, "This will open the forum in your browser. Are you sure?",, list("Yes","No"))!="Yes")
return
src<< link(forumurl)
else
to_chat(src, span_danger("The forum URL is not set in the server configuration."))
return
/client/verb/demoview(roundnumber as num)
set name ="demoview"
set desc ="Enter Round Number you wish to see the replay of"
set hidden =1
var/roundurl=CONFIG_GET(string/demourl)
if(roundnumber <26360)
roundnumber =26360
if(roundurl)
if(!roundnumber)
roundnumber = text2num(GLOB.round_id-1)
if(alert("This will open the demo in your browser. Are you sure?",,"Yes","No")!="Yes")
return
src<< link("[roundurl][roundnumber]")
else
to_chat(src, span_danger("The demo URL is not set in the server configuration."))
/client/verb/rules()
set name ="rules"
set desc ="Show Server Rules."
set hidden =TRUE
var/rulesurl=CONFIG_GET(string/rulesurl)
if(rulesurl)
if(tgui_alert(src, "This will open the rules in your browser. Are you sure?",, list("Yes","No"))!="Yes")
return
src<< link(rulesurl)
else
to_chat(src, span_danger("The rules URL is not set in the server configuration."))
return
/client/verb/github()
set name ="github"
set desc ="Visit Github"
set hidden =TRUE
var/githuburl=CONFIG_GET(string/githuburl)
if(githuburl)
if(tgui_alert(src, "This will open the Github repository in your browser. Are you sure?",, list("Yes","No"))!="Yes")
return
src<< link(githuburl)
else
to_chat(src, span_danger("The Github URL is not set in the server configuration."))
return
/client/verb/reportissue()
set name ="report-issue"
set desc ="Report an issue"
set hidden =TRUE
var/githuburl=CONFIG_GET(string/githuburl)
if(githuburl)
var/message="This will open the Github issue reporter in your browser. Are you sure?"
if(GLOB.revdata.testmerge.len)
message +="<br>The following experimental changes are active and are probably the cause of any new or sudden issues you may experience. If possible, please try to find a specific thread for your issue instead of posting to the general issue tracker:<br>"