Class mudclient_Debug

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--a.a.a
                                |
                                +--a.a.b
                                      |
                                      +--mudclient
                                            |
                                            +--mudclient_Debug
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, KeyListener, MenuContainer, MouseListener, MouseMotionListener, Runnable, Serializable

public class mudclient_Debug
extends mudclient
implements KeyListener, MouseListener, MouseMotionListener

The override class that allows additional functionalty in mudclient

See Also:
Serialized Form

Nested Class Summary
 class mudclient_Debug.AttackScript
           
 class mudclient_Debug.CombatStyle
           
 class mudclient_Debug.Commander
           
 class mudclient_Debug.PickUpItemScript
           
static class mudclient_Debug.rsStub
           
 class mudclient_Debug.Sleeper
           
 class mudclient_Debug.UseItem
           
 class mudclient_Debug.Walker
           
 
Field Summary
 boolean autoReloginOverride
           
 boolean ghost
           
 boolean macroOn
          True if macros should be running
static Hashtable macros
          A reference of commands to the macro that handles the command
static boolean ms
           
 int overhead
           
 mudclient_Debug.Commander talkToNpc
           
 boolean terainOn
           
 int worldHook
           
 int zoom
           
 
Fields inherited from class mudclient
bq, br, bs, bw, iu, iv, iw
 
Fields inherited from class a.a.b
bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, R, S, T, U, V, Y
 
Fields inherited from class a.a.a
A, B, C, D, E, F, g, G, H, I, J, k, K, l, L, m, M, n, N, O, P, Q, x, y, z
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mudclient_Debug()
          Creates a new instance of mudclient_Debug
 
Method Summary
 void _a()
           
 void a()
           
 void A()
           
 void a(boolean param)
           
 void a(int i1, int j1, byte[] abyte)
           
 void a(int param, int param1, int param2)
           
 void a(int param, int param1, int param2, int param3, boolean param4)
           
 c a(int param, int param1, int param2, int param3, int param4)
           
 boolean a(int i, int i1, int j1, int k1, int l1, int i2, boolean flag, boolean flag1)
           
 void a(int param, int param1, int param2, int param3, int param4, int param5, int param6)
           
 void a(Runnable runnable)
           
 Socket a(String s1, int i)
           
 void a(String s1, String s2, boolean flag)
           
 byte[] a(String str, String str1, int param)
           
 boolean actAt(int x, int y)
           
 void addLoopListener(Runnable listener)
           
 void addMessageListener(MessageListener l)
           
 void b_false(boolean flag)
           
 void b()
           
 void B()
           
 void b(boolean param)
           
 void b(int i)
           
 boolean b(int param, int param1)
           
 void b(int param, int param1, int param2)
           
 c b(int param, int param1, int param2, int param3)
           
 void b(int param, int param1, int param2, int param3, boolean param4)
           
 a.a.f b(int param, int param1, int param2, int param3, int param4)
           
 void b(int param, int param1, int param2, int param3, int param4, int param5, int param6)
           
 void b(String str, int param)
           
 void ba()
           
 void bb()
           
 void bc()
           
 void bd()
           
 void be()
           
 void bf()
           
 void bg()
           
 void bh()
           
 void bi()
           
 void bj()
           
 void bk()
           
 void bl()
           
 void bm()
           
 void bn()
           
 void bo()
           
 void bp()
           
 void bq()
           
 void br()
           
 void bs()
           
 void bt()
           
 void c()
           
 void C()
           
 void c(boolean param)
           
 boolean c(int param)
           
 boolean c(int i, int j)
           
 void c(int param, int param1, int param2)
           
 void c(int param, int param1, int param2, int param3)
           
 void c(int param, int param1, int param2, int param3, int param4, int param5, int param6)
           
 void c(int param, String str)
           
 void changeWorld(int world)
          Attemps to chnage the world by sending the logout command and creating a new socket to another world.
 int convertLocToMob(int cor)
           
 int convertMobToLoc(int cor)
           
 int countItem(int id)
          tells you how much of a pirticular item you have
 Image createImage(int param, int param1)
           
 void d()
           
 void D()
           
 void d(boolean param)
           
 int d(int param)
           
 void d(int i, int i1, int j1, int k1, int l1, int i2, int j2)
           
 void d(String str)
           
 void d(String str, String str1)
           
 void depositItem(int amount, int id)
          deposit an item into the bank
 void directAttack(Object mob)
           
 void displayMessage(String message)
          Displays a message to the user.
 void dropItem(int pos)
           
 void E()
           
 void e(boolean param)
           
 boolean e(int param)
           
 void e(String str)
           
 boolean executeCommand(String command)
          Executes a command.
 void F()
           
 void f(boolean param)
           
 void f(int i)
           
 void fireMessageEvent(String message, int filter)
           
 void G()
           
 String g(int param)
           
 URL getCodeBase()
           
 int getCountInBank(int position)
           
 int getCurrentHP()
          gets your current hp
 URL getDocumentBase()
           
 float getFatigue()
          gets your gatigue as a percentage (from 1.0 to 0.0)
 Graphics getGraphics()
           
 int getItemCountGround()
           
 int getItemIDGround(int index)
           
 int getItemInBankId(int position)
           
 int getItemInInv(int position)
          gets an item id in your invintory
 String getItemInInvName(int position)
           
 String getItemNameByID(int id)
           
 void getItemOffGround(int index)
           
 int getItemsInBank()
           
 int getItemsInInv()
          gets how many slots are being used in your invintory (max is 30)
 int getItemXLocation(int index)
           
 int getItemYLocation(int index)
           
 int getMaxHP()
          gets your max hp
 int getMobXPosition(Object mob)
           
 int getMobYPosition(Object mob)
           
 Object getNpc(int index)
          gets an npc by its place in the list.
 int getNpcCount()
          gets the npc count
 int getNpcId(Object npc)
           
 float getNpcLevel(Object npc)
          gets a level of an npc (float value will be multiple of .25)
 Object[] getNpcs()
          gets the npcs array
 int getObjectCount()
           
 int getObjectID(int index)
           
 int getObjectSendID(int index)
           
 int getObjectXLocation(int index)
           
 int getObjectYLocation(int index)
           
 String getParameter(String str)
           
 int getPlayerLevel(Object player)
           
 int getXLocation()
          gets your x location
 int getXZone()
          get the x part of the "zone" you are in
 int getYLocation()
          gets your y location
 Object getYourself()
           
 int getYZone()
          get the Y "zone" you are in
 int getZoom()
           
 void H()
           
 void I()
           
 boolean isBankVisible()
           
 boolean isChoice()
          Tells you if there is a choice to be made on the screen
 boolean isItemStackable(int itemId)
           
 boolean isMobInCombat(Object mob)
           
 boolean isNpcAttackable(Object npc)
           
 int j()
           
 void J()
           
 void K()
           
 boolean keyDown(Event event, int i1)
           
 void keyPressed(KeyEvent event)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 void l()
           
 void L()
           
 boolean loggedIn()
           
 void login()
           
 void m()
           
 void M()
           
static void main(String[] args)
           
 void makeNpcChoice(int option)
          select an option from a list of options presented to the user This will *not* remove the choices from the screen
 void mineRock(int x, int y)
          walks directly south the rock and mines it.
 void mineRock(int x, int y, int xMod, int yMod)
          same as mineRock but you choose where to stand when mining exactly one of xMod and yMod should be 0.
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent event)
           
 void mouseReleased(MouseEvent e)
           
 void N()
           
 void O()
           
 void p()
           
 void P()
           
 void q()
           
 void Q()
           
 void r()
           
 void R()
           
 Runnable removeLoopListener(Runnable listener)
           
 void removeMessageListener(MessageListener l)
           
 void s()
           
 void S()
           
 void setBankVisible(boolean visible)
           
 void setCombatStyle(int style)
           
 void setWorld(int world)
           
 void setZoom(int zoom)
           
 void T()
           
 void talkToNpc(Object npc)
           
 void u()
           
 void U()
           
 void useItem(int pos)
           
 void useItemOnItem(int pos, int pos2)
           
 void useItemOnObject(int pos, int object, int x, int y)
           
 void v()
           
 void V()
           
 void w()
           
 void W()
           
 void waitForBank(int timeout)
           
 boolean walkTo(int x, int y)
          walks to the location not interacting with any objects (as if you clicked on the map to that location)
 void walkToAbout(int x, int y, int timeout)
           
 void withdrawItem(int amount, int id)
          Withdraws an item from the bank Note that trying to withdraw more than one of a non-stackable item will fail.
 void x()
           
 void X()
           
 void y()
           
 void Y()
           
 void z()
           
 void Z()
           
 
Methods inherited from class a.a.b
a, a, a, a, a, a, a, a, b, b, b, c, c, k, n, o, t
 
Methods inherited from class a.a.a
a, a, a, a, a, b, destroy, e, f, g, h, i, init, keyUp, mouseDown, mouseDrag, mouseMove, mouseUp, paint, run, start, stop, update
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getImage, getImage, getLocale, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, location, lostFocus, mouseEnter, mouseExit, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ms

public static boolean ms

zoom

public int zoom

overhead

public int overhead

terainOn

public boolean terainOn

ghost

public boolean ghost

worldHook

public int worldHook

autoReloginOverride

public boolean autoReloginOverride

macroOn

public volatile boolean macroOn
True if macros should be running


macros

public static Hashtable macros
A reference of commands to the macro that handles the command


talkToNpc

public mudclient_Debug.Commander talkToNpc
Constructor Detail

mudclient_Debug

public mudclient_Debug()
Creates a new instance of mudclient_Debug

Method Detail

a

public void a(int i1,
              int j1,
              byte[] abyte)
Overrides:
a in class mudclient

D

public void D()
Overrides:
D in class mudclient

Q

public void Q()
Overrides:
Q in class mudclient

login

public void login()

c

public boolean c(int i,
                 int j)
Overrides:
c in class mudclient

b_false

public void b_false(boolean flag)

keyDown

public boolean keyDown(Event event,
                       int i1)
Overrides:
keyDown in class a.a.a

keyPressed

public void keyPressed(KeyEvent event)
Specified by:
keyPressed in interface KeyListener

b

public void b(int i)
Overrides:
b in class mudclient

executeCommand

public boolean executeCommand(String command)
Executes a command. Called when something is typed in that begins with '/'

Parameters:
command - The command to execute (not including the '/')
Returns:
true if the command should be remove from the command line after it is entered in. false if the command should stay on the line.

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent event)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

q

public void q()
Overrides:
q in class mudclient

V

public void V()
Overrides:
V in class mudclient

v

public void v()
Overrides:
v in class mudclient

e

public boolean e(int param)
Overrides:
e in class mudclient

U

public void U()
Overrides:
U in class mudclient

m

public void m()
Overrides:
m in class a.a.b

u

public void u()
Overrides:
u in class mudclient

d

public int d(int param)
Overrides:
d in class mudclient

e

public void e(String str)
Overrides:
e in class mudclient

b

public void b(String str,
              int param)
Overrides:
b in class mudclient

bs

public void bs()
Overrides:
bs in class mudclient

z

public void z()
Overrides:
z in class mudclient

d

public void d()
Overrides:
d in class mudclient

d

public void d(String str,
              String str1)
Overrides:
d in class mudclient

d

public void d(int i,
              int i1,
              int j1,
              int k1,
              int l1,
              int i2,
              int j2)
Overrides:
d in class mudclient

a

public boolean a(int i,
                 int i1,
                 int j1,
                 int k1,
                 int l1,
                 int i2,
                 boolean flag,
                 boolean flag1)
Overrides:
a in class mudclient

a

public void a(int param,
              int param1,
              int param2,
              int param3,
              boolean param4)
Overrides:
a in class mudclient

R

public void R()
Overrides:
R in class mudclient

w

public void w()
Overrides:
w in class mudclient

f

public void f(int i)
Overrides:
f in class mudclient

a

public byte[] a(String str,
                String str1,
                int param)
Overrides:
a in class mudclient

a

public Socket a(String s1,
                int i)
         throws IOException
Overrides:
a in class mudclient
IOException

c

public void c(boolean param)
Overrides:
c in class mudclient

b

public void b(boolean param)
Overrides:
b in class mudclient

a

public void a(boolean param)
Overrides:
a in class mudclient

y

public void y()
Overrides:
y in class mudclient

createImage

public Image createImage(int param,
                         int param1)
Overrides:
createImage in class mudclient

x

public void x()
Overrides:
x in class mudclient

getParameter

public String getParameter(String str)
Overrides:
getParameter in class mudclient

bo

public void bo()
Overrides:
bo in class mudclient

W

public void W()
Overrides:
W in class mudclient

bp

public void bp()
Overrides:
bp in class mudclient

g

public String g(int param)
Overrides:
g in class mudclient

bi

public void bi()
Overrides:
bi in class mudclient

A

public void A()
Overrides:
A in class mudclient

bf

public void bf()
Overrides:
bf in class mudclient

s

public void s()
Overrides:
s in class mudclient

X

public void X()
Overrides:
X in class mudclient

a

public void a(Runnable runnable)
Overrides:
a in class mudclient

r

public void r()
Overrides:
r in class mudclient

be

public void be()
Overrides:
be in class mudclient

C

public void C()
Overrides:
C in class mudclient

bh

public void bh()
Overrides:
bh in class mudclient

l

public void l()
Overrides:
l in class mudclient

L

public void L()
Overrides:
L in class mudclient

getCodeBase

public URL getCodeBase()
Overrides:
getCodeBase in class mudclient

getDocumentBase

public URL getDocumentBase()
Overrides:
getDocumentBase in class mudclient

J

public void J()
Overrides:
J in class mudclient

br

public void br()
Overrides:
br in class mudclient

O

public void O()
Overrides:
O in class mudclient

p

public void p()
Overrides:
p in class mudclient

P

public void P()
Overrides:
P in class mudclient

c

public boolean c(int param)
Overrides:
c in class mudclient

b

public void b(int param,
              int param1,
              int param2,
              int param3,
              boolean param4)
Overrides:
b in class mudclient

I

public void I()
Overrides:
I in class mudclient

bg

public void bg()
Overrides:
bg in class mudclient

a

public void a(int param,
              int param1,
              int param2,
              int param3,
              int param4,
              int param5,
              int param6)
Overrides:
a in class mudclient

a

public c a(int param,
           int param1,
           int param2,
           int param3,
           int param4)
Overrides:
a in class mudclient

a

public void a(int param,
              int param1,
              int param2)
Overrides:
a in class mudclient

_a

public void _a()

a

public void a()
Overrides:
a in class mudclient

F

public void F()
Overrides:
F in class mudclient

bq

public void bq()
Overrides:
bq in class mudclient

j

public int j()
Overrides:
j in class mudclient

bn

public void bn()
Overrides:
bn in class mudclient

S

public void S()
Overrides:
S in class mudclient

K

public void K()
Overrides:
K in class mudclient

bb

public void bb()
Overrides:
bb in class mudclient

bl

public void bl()
Overrides:
bl in class mudclient

B

public void B()
Overrides:
B in class mudclient

b

public void b(int param,
              int param1,
              int param2,
              int param3,
              int param4,
              int param5,
              int param6)
Overrides:
b in class mudclient

b

public a.a.f b(int param,
               int param1,
               int param2,
               int param3,
               int param4)
Overrides:
b in class mudclient

b

public c b(int param,
           int param1,
           int param2,
           int param3)
Overrides:
b in class mudclient

b

public void b(int param,
              int param1,
              int param2)
Overrides:
b in class mudclient

b

public boolean b(int param,
                 int param1)
Overrides:
b in class mudclient

b

public void b()
Overrides:
b in class mudclient

M

public void M()
Overrides:
M in class mudclient

bc

public void bc()
Overrides:
bc in class mudclient

bj

public void bj()
Overrides:
bj in class mudclient

T

public void T()
Overrides:
T in class mudclient

ba

public void ba()
Overrides:
ba in class mudclient

c

public void c()
Overrides:
c in class mudclient

c

public void c(int param,
              int param1,
              int param2)
Overrides:
c in class mudclient

c

public void c(int param,
              int param1,
              int param2,
              int param3)
Overrides:
c in class mudclient

c

public void c(int param,
              int param1,
              int param2,
              int param3,
              int param4,
              int param5,
              int param6)
Overrides:
c in class mudclient

d

public void d(boolean param)
Overrides:
d in class mudclient

H

public void H()
Overrides:
H in class mudclient

bd

public void bd()
Overrides:
bd in class mudclient

G

public void G()
Overrides:
G in class mudclient

f

public void f(boolean param)
Overrides:
f in class mudclient

N

public void N()
Overrides:
N in class mudclient

e

public void e(boolean param)
Overrides:
e in class mudclient

Z

public void Z()
Overrides:
Z in class mudclient

bk

public void bk()
Overrides:
bk in class mudclient

getGraphics

public Graphics getGraphics()
Overrides:
getGraphics in class mudclient

bm

public void bm()
Overrides:
bm in class mudclient

d

public void d(String str)
Overrides:
d in class mudclient

bt

public void bt()
Overrides:
bt in class mudclient

Y

public void Y()
Overrides:
Y in class mudclient

c

public void c(int param,
              String str)
Overrides:
c in class mudclient

E

public void E()
Overrides:
E in class mudclient

withdrawItem

public void withdrawItem(int amount,
                         int id)
Withdraws an item from the bank Note that trying to withdraw more than one of a non-stackable item will fail.

Parameters:
amount - amount of the item
id - the location of the item in the bank

walkTo

public boolean walkTo(int x,
                      int y)
walks to the location not interacting with any objects (as if you clicked on the map to that location)

Parameters:
x - the x cord
y - the y cord
Returns:
false if the location is known not to be accessible otherwise true and will try to walk to that location

actAt

public boolean actAt(int x,
                     int y)

depositItem

public void depositItem(int amount,
                        int id)
deposit an item into the bank

Parameters:
amount - the amount to deposit
id - the id of the item in the bank

makeNpcChoice

public void makeNpcChoice(int option)
select an option from a list of options presented to the user This will *not* remove the choices from the screen

Parameters:
option - the id of the option to select (0 is the top option)

isChoice

public boolean isChoice()
Tells you if there is a choice to be made on the screen

Returns:
true if the chioce options are up

mineRock

public void mineRock(int x,
                     int y)
walks directly south the rock and mines it. Will fail if you have no pick or there is some object (e.g. another rock) south of the rock or the rock is out of range. Returns when the command is sent to the server

Parameters:
x - the x location of the rock
y - The y location of the rock

mineRock

public void mineRock(int x,
                     int y,
                     int xMod,
                     int yMod)
same as mineRock but you choose where to stand when mining exactly one of xMod and yMod should be 0. The other should be either -1 or 1

Parameters:
x - the x location of the rock
y - the y location of the rock
xMod - the distance of how far west to stand from the rock
yMod - the distance of how far north to stand from the rock

addMessageListener

public void addMessageListener(MessageListener l)

removeMessageListener

public void removeMessageListener(MessageListener l)

fireMessageEvent

public void fireMessageEvent(String message,
                             int filter)

changeWorld

public void changeWorld(int world)
Attemps to chnage the world by sending the logout command and creating a new socket to another world. This should not be used if you could not log out at this time (due to fighting)

Parameters:
world - the world id (defined in Main)

setWorld

public void setWorld(int world)

addLoopListener

public void addLoopListener(Runnable listener)

removeLoopListener

public Runnable removeLoopListener(Runnable listener)

loggedIn

public boolean loggedIn()

setCombatStyle

public void setCombatStyle(int style)

displayMessage

public void displayMessage(String message)
Displays a message to the user. You can use @...@ tags and filtering tags (e.g.

Parameters:
message - the message to display

getXLocation

public int getXLocation()
gets your x location

Returns:
your x location

getYLocation

public int getYLocation()
gets your y location

Returns:
your y location

getXZone

public int getXZone()
get the x part of the "zone" you are in

Returns:
the xZone

getYZone

public int getYZone()
get the Y "zone" you are in

Returns:
the yZone

getCurrentHP

public int getCurrentHP()
gets your current hp

Returns:
your hp

getMaxHP

public int getMaxHP()
gets your max hp

Returns:
your max hp

countItem

public int countItem(int id)
tells you how much of a pirticular item you have

Parameters:
id - the id of the item
Returns:
the count

getItemInInv

public int getItemInInv(int position)
gets an item id in your invintory

Parameters:
position - get the item id in your invintory at a pirticual location
Returns:
the item id

getItemInInvName

public String getItemInInvName(int position)

getItemNameByID

public String getItemNameByID(int id)

getItemsInInv

public int getItemsInInv()
gets how many slots are being used in your invintory (max is 30)

Returns:
the used slots in your invintory

getFatigue

public float getFatigue()
gets your gatigue as a percentage (from 1.0 to 0.0)

Returns:
your fatigue

getNpcs

public Object[] getNpcs()
gets the npcs array

Returns:
the npc array

getNpc

public Object getNpc(int index)
gets an npc by its place in the list.

Parameters:
index - the index to use
Returns:
an npc at the location in the list

getNpcId

public int getNpcId(Object npc)

getNpcCount

public int getNpcCount()
gets the npc count

Returns:
the number of npcs in the list

getNpcLevel

public float getNpcLevel(Object npc)
                  throws ClassCastException
gets a level of an npc (float value will be multiple of .25)

Parameters:
npc - the npc
Returns:
the level of the npc
Throws:
ClassCastException - If not the "npc" object that you can get from getNpc(int)

isNpcAttackable

public boolean isNpcAttackable(Object npc)

isMobInCombat

public boolean isMobInCombat(Object mob)

getMobXPosition

public int getMobXPosition(Object mob)

getMobYPosition

public int getMobYPosition(Object mob)

getYourself

public Object getYourself()

directAttack

public void directAttack(Object mob)

getItemCountGround

public int getItemCountGround()

getItemIDGround

public int getItemIDGround(int index)

getItemXLocation

public int getItemXLocation(int index)

getItemYLocation

public int getItemYLocation(int index)

getItemOffGround

public void getItemOffGround(int index)

getObjectCount

public int getObjectCount()

getObjectID

public int getObjectID(int index)

getObjectSendID

public int getObjectSendID(int index)

getObjectXLocation

public int getObjectXLocation(int index)

getObjectYLocation

public int getObjectYLocation(int index)

convertLocToMob

public int convertLocToMob(int cor)

convertMobToLoc

public int convertMobToLoc(int cor)

isItemStackable

public boolean isItemStackable(int itemId)

getPlayerLevel

public int getPlayerLevel(Object player)

setZoom

public void setZoom(int zoom)

getZoom

public int getZoom()

useItemOnObject

public void useItemOnObject(int pos,
                            int object,
                            int x,
                            int y)

walkToAbout

public void walkToAbout(int x,
                        int y,
                        int timeout)

dropItem

public void dropItem(int pos)

useItemOnItem

public void useItemOnItem(int pos,
                          int pos2)

useItem

public void useItem(int pos)

talkToNpc

public void talkToNpc(Object npc)

a

public void a(String s1,
              String s2,
              boolean flag)
Overrides:
a in class a.a.b

waitForBank

public void waitForBank(int timeout)

getItemsInBank

public int getItemsInBank()

getItemInBankId

public int getItemInBankId(int position)

getCountInBank

public int getCountInBank(int position)

setBankVisible

public void setBankVisible(boolean visible)

isBankVisible

public boolean isBankVisible()

main

public static void main(String[] args)