All pastes #2075191 Raw Edit

Miscellany

public text v1 · immutable
#2075191 ·published 2011-06-05 19:37 UTC
rendered paste body
actionbuttons.xml
====
<?xml version="1.0" encoding="ISO-8859-1"?>
<ActionButtonConfig>
  <ActionButtonFrame x="668" y="4" visible="false">
    <ActionButton id="0" icon="clw">cast 'cure light wounds' @partyTarget;cast info</ActionButton>
    <ActionButton id="1" icon="ccw">cast 'cure critical wounds' @partyTarget;cast info</ActionButton>
    <ActionButton id="2" icon="min">cast 'minor heal' @partyTarget;cast info</ActionButton>
    <ActionButton id="3" icon="maj">cast 'major heal' @partyTarget;cast info</ActionButton>
    <ActionButton id="4" icon="zz">zz</ActionButton>
    <ActionButton id="5" icon="miph">cast 'minor party heal';cast info</ActionButton>
    <ActionButton id="6" icon="maph">cast 'major party heal';cast info</ActionButton>
    <ActionButton id="7" icon="tph">cast 'true party heal';cast info</ActionButton>
    <ActionButton id="8" icon="dd">/dd</ActionButton>
    <ActionButton id="12" icon="d">say moi</ActionButton>
  </ActionButtonFrame>
  <ActionButtonFrameVertical x="0" y="0" visible="false" />
</ActionButtonConfig>

keybinding.xml
====
<?xml version="1.0" encoding="ISO-8859-1"?>
<KeyBinding>
  <KeyStroke keys="pressed F6">/actionbutton=6</KeyStroke>
  <KeyStroke keys="ctrl pressed F">@cast create food</KeyStroke>
  <KeyStroke keys="ctrl pressed F2">/actionbutton=14</KeyStroke>
  <KeyStroke keys="pressed MULTIPLY">party stats</KeyStroke>
  <KeyStroke keys="pressed F7">/actionbutton=7</KeyStroke>
  <KeyStroke keys="ctrl pressed U">/clc</KeyStroke>
  <KeyStroke keys="ctrl pressed F3">/actionbutton=15</KeyStroke>
  <KeyStroke keys="pressed ADD">down</KeyStroke>
  <KeyStroke keys="pressed F8">/actionbutton=8</KeyStroke>
  <KeyStroke keys="ctrl pressed F4">/actionbutton=16</KeyStroke>
  <KeyStroke keys="pressed NUMPAD0">pp</KeyStroke>
  <KeyStroke keys="pressed F9">/actionbutton=9</KeyStroke>
  <KeyStroke keys="ctrl pressed F5">/actionbutton=17</KeyStroke>
  <KeyStroke keys="pressed NUMPAD1">/num-1</KeyStroke>
  <KeyStroke keys="pressed SUBTRACT">unlock door with key</KeyStroke>
  <KeyStroke keys="pressed F10">/actionbutton=10</KeyStroke>
  <KeyStroke keys="ctrl pressed F6">/actionbutton=18</KeyStroke>
  <KeyStroke keys="ctrl pressed K">/keybind</KeyStroke>
  <KeyStroke keys="pressed ESCAPE">/quit</KeyStroke>
  <KeyStroke keys="pressed NUMPAD2">/num-2</KeyStroke>
  <KeyStroke keys="ctrl pressed F7">/actionbutton=19</KeyStroke>
  <KeyStroke keys="pressed F11">/actionbutton=11</KeyStroke>
  <KeyStroke keys="ctrl pressed F8">/actionbutton=20</KeyStroke>
  <KeyStroke keys="pressed NUMPAD3">/num-3</KeyStroke>
  <KeyStroke keys="pressed DIVIDE">party kills</KeyStroke>
  <KeyStroke keys="pressed F12">/actionbutton=12</KeyStroke>
  <KeyStroke keys="ctrl pressed F9">/actionbutton=21</KeyStroke>
  <KeyStroke keys="pressed NUMPAD4">/num-4</KeyStroke>
  <KeyStroke keys="pressed F1">/actionbutton=1</KeyStroke>
  <KeyStroke keys="alt pressed F4">/quit</KeyStroke>
  <KeyStroke keys="ctrl pressed F10">/actionbutton=22</KeyStroke>
  <KeyStroke keys="pressed NUMPAD5">/num-5</KeyStroke>
  <KeyStroke keys="pressed F2">/actionbutton=2</KeyStroke>
  <KeyStroke keys="shift ctrl pressed TAB">/switchframe forward</KeyStroke>
  <KeyStroke keys="ctrl pressed F11">/actionbutton=23</KeyStroke>
  <KeyStroke keys="ctrl pressed TAB">/switchtab forward</KeyStroke>
  <KeyStroke keys="pressed NUMPAD6">/num-6</KeyStroke>
  <KeyStroke keys="pressed F3">/actionbutton=3</KeyStroke>
  <KeyStroke keys="ctrl pressed B">/frameToBack</KeyStroke>
  <KeyStroke keys="ctrl pressed F12">/actionbutton=24</KeyStroke>
  <KeyStroke keys="ctrl pressed Q">/quit</KeyStroke>
  <KeyStroke keys="ctrl pressed ENTER">/commandline focus</KeyStroke>
  <KeyStroke keys="pressed NUMPAD7">/num-7</KeyStroke>
  <KeyStroke keys="pressed F4">/actionbutton=4</KeyStroke>
  <KeyStroke keys="ctrl pressed D">/del</KeyStroke>
  <KeyStroke keys="pressed NUMPAD8">/num-8</KeyStroke>
  <KeyStroke keys="pressed F5">/actionbutton=5</KeyStroke>
  <KeyStroke keys="ctrl pressed F1">/actionbutton=13</KeyStroke>
  <KeyStroke keys="pressed NUMPAD9">/num-9</KeyStroke>
</KeyBinding>

tarmabinds.bcs
====

SCRIPT_NAME="tarmabinds";
SCRIPT_DESC = "Bindings for tarma spells";
SCRIPT_OFF = false;

public static final String NUM1 = "num-1";
public static final String NUM2 = "num-2";
public static final String NUM3 = "num-3";
public static final String NUM4 = "num-4";
public static final String NUM5 = "num-5";
public static final String NUM6 = "num-6";
public static final String NUM7 = "num-7";
public static final String NUM8 = "num-8";
public static final String NUM9 = "num-9";
public static final String NUM0 = "num-0";

public String target = "";

void bootup() {
  setbindsWalk();
  macroManager.newMacro("tgt", "$"+SCRIPT_NAME+".target");
  macroManager.newMacro("switchbind", "$"+SCRIPT_NAME+".setbindsTarm");
}

void setbindsTarm() {
  clientGUI.printText("general", "Tarmalen targetting binds set.\n");
  macroManager.newMacro(NUM1, "/PartyTarget7;/tgt");
  macroManager.newMacro(NUM2, "/PartyTarget8;/tgt");
  macroManager.newMacro(NUM3, "/PartyTarget9;/tgt");
  macroManager.newMacro(NUM4, "/PartyTarget4;/tgt");
  macroManager.newMacro(NUM5, "/PartyTarget5;/tgt");
  macroManager.newMacro(NUM6, "/PartyTarget6;/tgt");
  macroManager.newMacro(NUM7, "/PartyTarget1;/tgt");
  macroManager.newMacro(NUM8, "/PartyTarget2;/tgt");
  macroManager.newMacro(NUM9, "/PartyTarget3;/tgt");
  macroManager.newMacro("switchbind", "$"+SCRIPT_NAME+".setbindsWalk");
}

void setbindsWalk() {
  clientGUI.printText("general", "Walking binds set.\n");
  macroManager.newMacro(NUM1, "southwest");
  macroManager.newMacro(NUM2, "south");
  macroManager.newMacro(NUM3, "southeast");
  macroManager.newMacro(NUM4, "west");
  macroManager.newMacro(NUM5, "look");
  macroManager.newMacro(NUM6, "east");
  macroManager.newMacro(NUM7, "northwest");
  macroManager.newMacro(NUM8, "north");
  macroManager.newMacro(NUM9, "northeast");
  macroManager.newMacro("switchbind", "$"+SCRIPT_NAME+".setbindsTarm");
}

void target() {
  String name = gvars.get("partyTarget");
  clientGUI.printText("general", "Target: "+name+"\n");
}