mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
Intent: If using a Discord bot, make it so that the game is able to pull and process pinned messages in specific discord channels as memos.
194 lines
4.6 KiB
Plaintext
194 lines
4.6 KiB
Plaintext
//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()
|
|
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)
|
|
else
|
|
src << "<span class='warning'>The wiki URL is not set in the server configuration.</span>"
|
|
return
|
|
|
|
/client/verb/forum()
|
|
set name = "forum"
|
|
set desc = "Visit the forum."
|
|
set hidden = 1
|
|
if( config.forumurl )
|
|
if(alert("This will open the forum in your browser. Are you sure?",,"Yes","No")=="No")
|
|
return
|
|
src << link(config.forumurl)
|
|
else
|
|
src << "<span class='warning'>The forum URL is not set in the server configuration.</span>"
|
|
return
|
|
|
|
/client/verb/reportbug()
|
|
set name = "reportbug"
|
|
set desc = "Report a bug."
|
|
set hidden = 1
|
|
if( config.githuburl )
|
|
if(alert("This will open the issue tracker in your browser. Are you sure?",,"Yes","No")=="No")
|
|
return
|
|
src << link(config.githuburl + "/issues")
|
|
else
|
|
src << span("warning", "The issue tracker URL is not set in the server configuration.")
|
|
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=640x500")
|
|
#undef RULES_FILE
|
|
|
|
/client/verb/hotkeys_help()
|
|
set name = "hotkeys-help"
|
|
set category = "OOC"
|
|
|
|
var/admin = {"<font color='purple'>
|
|
Admin:
|
|
\tF5 = Aghost (admin-ghost)
|
|
\tF6 = player-panel-new
|
|
\tF7 = admin-pm
|
|
\tF8 = Invisimin
|
|
</font>"}
|
|
|
|
var/hotkey_mode = {"<font color='purple'>
|
|
Hotkey-Mode: (hotkey-mode must be on)
|
|
\tTAB = toggle hotkey-mode
|
|
\ta = left
|
|
\ts = down
|
|
\td = right
|
|
\tw = up
|
|
\tq = drop
|
|
\te = equip
|
|
\tr = throw
|
|
\tt = say
|
|
\t5 = emote
|
|
\tx = swap-hand
|
|
\tz = activate held object (or y)
|
|
\tj = toggle-aiming-mode
|
|
\tf = cycle-intents-left
|
|
\tg = cycle-intents-right
|
|
\t1 = help-intent
|
|
\t2 = disarm-intent
|
|
\t3 = grab-intent
|
|
\t4 = harm-intent
|
|
\tCtrl = drag
|
|
\tShift = examine
|
|
</font>"}
|
|
|
|
var/other = {"<font color='purple'>
|
|
Any-Mode: (hotkey doesn't need to be on)
|
|
\tCtrl+a = left
|
|
\tCtrl+s = down
|
|
\tCtrl+d = right
|
|
\tCtrl+w = up
|
|
\tCtrl+q = drop
|
|
\tCtrl+e = equip
|
|
\tCtrl+r = throw
|
|
\tCtrl+x = swap-hand
|
|
\tCtrl+z = activate held object (or Ctrl+y)
|
|
\tCtrl+f = cycle-intents-left
|
|
\tCtrl+g = cycle-intents-right
|
|
\tCtrl+1 = help-intent
|
|
\tCtrl+2 = disarm-intent
|
|
\tCtrl+3 = grab-intent
|
|
\tCtrl+4 = harm-intent
|
|
\tF1 = adminhelp
|
|
\tF2 = ooc
|
|
\tF3 = say
|
|
\tF4 = emote
|
|
\tDEL = pull
|
|
\tINS = cycle-intents-right
|
|
\tHOME = drop
|
|
\tPGUP = swap-hand
|
|
\tPGDN = activate held object
|
|
\tEND = throw
|
|
</font>"}
|
|
|
|
var/robot_hotkey_mode = {"<font color='purple'>
|
|
Hotkey-Mode: (hotkey-mode must be on)
|
|
\tTAB = toggle hotkey-mode
|
|
\ta = left
|
|
\ts = down
|
|
\td = right
|
|
\tw = up
|
|
\tq = unequip active module
|
|
\tt = say
|
|
\tx = cycle active modules
|
|
\tz = activate held object (or y)
|
|
\tf = cycle-intents-left
|
|
\tg = cycle-intents-right
|
|
\t1 = activate module 1
|
|
\t2 = activate module 2
|
|
\t3 = activate module 3
|
|
\t4 = toggle intents
|
|
\t5 = emote
|
|
\tCtrl = drag
|
|
\tShift = examine
|
|
</font>"}
|
|
|
|
var/robot_other = {"<font color='purple'>
|
|
Any-Mode: (hotkey doesn't need to be on)
|
|
\tCtrl+a = left
|
|
\tCtrl+s = down
|
|
\tCtrl+d = right
|
|
\tCtrl+w = up
|
|
\tCtrl+q = unequip active module
|
|
\tCtrl+x = cycle active modules
|
|
\tCtrl+z = activate held object (or Ctrl+y)
|
|
\tCtrl+f = cycle-intents-left
|
|
\tCtrl+g = cycle-intents-right
|
|
\tCtrl+1 = activate module 1
|
|
\tCtrl+2 = activate module 2
|
|
\tCtrl+3 = activate module 3
|
|
\tCtrl+4 = toggle intents
|
|
\tF1 = adminhelp
|
|
\tF2 = ooc
|
|
\tF3 = say
|
|
\tF4 = emote
|
|
\tDEL = pull
|
|
\tINS = toggle intents
|
|
\tPGUP = cycle active modules
|
|
\tPGDN = activate held object
|
|
</font>"}
|
|
|
|
if(isrobot(src.mob))
|
|
src << robot_hotkey_mode
|
|
src << robot_other
|
|
else
|
|
src << hotkey_mode
|
|
src << other
|
|
if(holder)
|
|
src << admin
|
|
|
|
/client/verb/open_webint()
|
|
set name = "open_webint"
|
|
set desc = "Visit the web interface."
|
|
set hidden = 1
|
|
|
|
if (config.webint_url)
|
|
if(alert("This will open the web interface in your browser. Are you sure?", ,"Yes","No") == "No")
|
|
return
|
|
src << link(config.webint_url)
|
|
else
|
|
src << span("warning", "The web interface URL is not set in the server configuration.")
|
|
return
|
|
|
|
/client/verb/open_discord()
|
|
set name = "open_discord"
|
|
set desc = "Get a link to the Discord server."
|
|
set hidden = 1
|
|
|
|
if (discord_bot && discord_bot.active)
|
|
if(alert("This will open Discord in your browser or directly. Are you sure?",, "Yes", "No") == "Yes")
|
|
var/url_link = discord_bot.retreive_invite()
|
|
if (url_link)
|
|
src << link(url_link)
|
|
else
|
|
src << span("danger", "An error occured retreiving the invite.")
|
|
else
|
|
src << span("warning", "The serverside Discord bot is not set up.") |