Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Javascript Coding:
[201] Ultimate AutoFighter...

 

 


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:


Code
 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:


Code
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:


Code
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:


Code
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:


Code
    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



Ckgonakikura
Newbie

May 14, 2005, 3:24 PM

Post #2 of 3 (929 views)
Shortcut
Re: [about:blank] [201] Ultimate AutoFighter... [In reply to] Can't Post

didnt work for me :( 100 errors you should make more specific like put in code and say right under then put this under...


The real Tuffy
Veteran


May 15, 2005, 12:46 AM

Post #3 of 3 (924 views)
Shortcut
Re: [Ckgonakikura] [201] Ultimate AutoFighter... [In reply to] Can't Post

100 errors is most likely you missed a bracket... So check threw it.


_____________________________
Sure...

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.10 s on (CGI/1.1)