mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Updates the wiki verb to be able to type, say 'wiki cult', and hopefully go to the cult page.
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
//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()
|
||||
/client/verb/wiki(query as text)
|
||||
set name = "wiki"
|
||||
set desc = "Visit the wiki."
|
||||
set hidden = 1
|
||||
if( config.wikiurl )
|
||||
if(alert("This will open the wiki in your browser. Are you sure?",,"Yes","No")=="No")
|
||||
return
|
||||
src << link(config.wikiurl)
|
||||
set desc = "Type what you want to know about. This will open the wiki on your web browser."
|
||||
set category = "OOC"
|
||||
if(config.wikiurl)
|
||||
if(query)
|
||||
var/output = config.wikiurl + "/index.php?title=Special%3ASearch&profile=default&search=" + query
|
||||
src << link(output)
|
||||
else
|
||||
src << link(config.wikiurl)
|
||||
else
|
||||
src << "\red The wiki URL is not set in the server configuration."
|
||||
src << "<span class='danger'>The wiki URL is not set in the server configuration.</span>"
|
||||
return
|
||||
|
||||
/client/verb/forum()
|
||||
@@ -20,16 +22,21 @@
|
||||
return
|
||||
src << link(config.forumurl)
|
||||
else
|
||||
src << "\red The forum URL is not set in the server configuration."
|
||||
src << "<span class='danger'>The forum URL is not set in the server configuration.</span>"
|
||||
return
|
||||
|
||||
#define RULES_FILE "config/rules.html"
|
||||
/client/verb/rules()
|
||||
set name = "Rules"
|
||||
set desc = "Show Server Rules."
|
||||
set hidden = 1
|
||||
src << browse(file(RULES_FILE), "window=rules;size=480x320")
|
||||
#undef RULES_FILE
|
||||
|
||||
if(config.rulesurl)
|
||||
if(alert("This will open the rules in your browser. Are you sure?",,"Yes","No")=="No")
|
||||
return
|
||||
src << link(config.rulesurl)
|
||||
else
|
||||
src << "<span class='danger'>The rules URL is not set in the server configuration.</span>"
|
||||
return
|
||||
|
||||
/client/verb/hotkeys_help()
|
||||
set name = "hotkeys-help"
|
||||
|
||||
Reference in New Issue
Block a user