
about:blank
Newbie
May 10, 2005, 5:59 PM
Post #1 of 3
(943 views)
Shortcut
|
|
[201] Ultimate AutoFighter...
|
Can't Post
|
|
ok well here we go, starting of under: public final class mudclient extends b { add:
public int macroDelay = Math.abs(random.nextInt()) % 751; public int waitforLoad = Math.abs(random.nextInt()) % 15; public boolean autoFighter = false; public script smacro; public int npcid; now under that add:
public boolean InCombat() { if(djc.gml == 8 || djc.gml == 9) return true; return false; } public int GetNpcIndex(int id) { for(int j = 0; j < ebb; j++) if(dgf[j].gmj == id && dgf[j].gml != 8 && dgf[j].gml != 9) return j; return -1; } public void AttackNPC(int i) { dga[0] = 715; dfl[0] = dgf.gmh; dfm[0] = dgf.gmi; djk[0] = dgf.gmf; emg(0); } next u need the fighter so add this in:
private class autofighter extends Thread { public void run() { while(autoFighter) { int index = GetNpcIndex(npcID); if(index != -1) { if(!InCombat()) { AttackNPC(index); Wait(macroDelay); macroDelay = Math.abs(random.nextInt()) % 751 + waitforLoad; } else { Wait(waitforLoad); waitforLoad = Math.abs(random.nextInt()) % 15; } } autofighter() { start(); } } Now under fcf:
if(l == 1014) //This is F7. { Autofight = !attacknpc; if(attacknpc) fdi("@red@gaybot: @whi@fighting" + lvl +, 3); else fdj("@red@gaybot: @whi@fighter disabled", 3); } finaly add this under muclient b:
public void Wait(int ms) { try{Thread.sleep(ms);} catch(Exception exception){} } finaly save and close muclient.java then press compiles. u shoukd most certainly not get ANY errors or else u entered itin wrong not that script.... thanks ;) have a good one
|