Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 14th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public boolean fullInv = true;
  2.  
  3. public void serverMessageRecieved(ServerMessageEvent e) {
  4.                 String message = e.getMessage();
  5.                 if (message
  6.                                 .contains("You don't have enough")) {
  7.                         fullInv = false;
  8.                 }
  9. }
  10.  
  11.        
  12. private void teleFally(){
  13.                 magic.castSpell(46);
  14.                 sleep(1500,1700);
  15.                 }
  16.  
  17. //these are in loop
  18.         if (fullInv = true && atPlace()){      
  19.                         getItem();
  20.                          }
  21.                
  22.         if (fullInv = false){
  23.                         teleFally();}