Web UI: change weapon alias

Need some help with your MUD client? Forgot your password? Get help here.
Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Post Reply
Posts: 10
Joined: 12 Oct 2017 19:31

Web UI: change weapon alias

Post by bashere » 21 Feb 2018 22:08

/* alias 'cw' . -- or whatever you want..
Used to change weapons while wearing a shield.

I noticed I was spending too much time removing my shield in order to switch to a
right-handed weapon, then un-wielding my left-handed weapon, so I could
wear my shield on the left arm.

This alias will remove shield, unwield args[1], wield args[2], then wear
the shield again.

Usage: cw 'weapon' 'new weapon'
Author: Bashere

// cut n' paste the following under 'javascript' in an alias:

if (args['*'] == ''){
gwc.output.append('Enter \'old weapon\' with \'new weapon\'');

gwc.connection.send('remove shield');
gwc.connection.send('unwield ' + args[1]);
gwc.connection.send('wield ' + args[2]);
gwc.connection.send('wear shield');

Post Reply