View unanswered posts | View active topics It is currently 21 Jun 2018 08:49

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.



Reply to topic  [ 1 post ] 
Web UI: change weapon alias 
Author Message
Beginner

Joined: 12 Oct 2017 19:31
Posts: 10
/* alias 'cw' . -- or whatever you want..
Summary:
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\'');
return;
}

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


21 Feb 2018 22:08
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.