Xem Giúp Cái Anh Em ui !

vn1038227

Youtube Master Race
Tham gia ngày
20/11/05
Bài viết
57
Reaction score
0
cái này báo lỗi " ; expected"

PHP:
 double DisconnectFlag = 0.3; // Disconnect when current HP is below 30%  

double hpFractionEat = 0.8; //Eat HP when current HP<= 80%  
double spFractionEat = 0.8;  
double hpFraction = 0.95; //Eat until current HP >= 95 %  
double spFraction = 0.95;  

byte DisconFai = 00; // Faith of warrior to disconnect  

byte turna = 0; 
byte turnb = 0;  

byte pt1 = 0;  
byte pt2 = 0;  
byte pt3 = 0;  
byte pt4 = 0;  

double mapid1 = 12421;   
double mapid2 = 12815;  
byte warpid1 = 2;  
byte warpid2 = 1;  

uint idchupt = 1038227; 

/***** Chinh sua ID Member o day *****/  

uint idmem1 = 01459105;  
uint idmem2 = 01750854;  
uint idmem3 = 02088782;  
uint idmem4_sena = 1038327;  



public override void MyAttack() 
{    
turna++; 
if (turna == 1) 
    { 
    CharacterInfo MyChar = ts.Character;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 1, 12003);     
    } 
if (turna >=2) 
    { 
    CharacterInfo MyChar = ts.Character;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 17001); 
    } 
} 
public override void MyPartnerAttack() 
{ 
turnb++; 
if (turnb == 1) 
    { 
    CharacterInfo MyWarrior = ts.CurrentPartner;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 1, 17001); 
    } 
if (turnb >= 2) 
    { 
    CharacterInfo MyWarrior = ts.CurrentPartner;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 17001); 
    } 
} 


/********************* Battle Started **********************/  
public override void BattleStarted() 
{ 
turnb=0; 
turna=0; 
} 

public override void PreBattleStopped() 
{ 
   ts.delay(2000); 
} 

/********************* Battle Stopped ***********************/  
public override void BattleStopped()  
{  
AutoEatFood();  
ProcessInventoryAction();  
CheckDisconnect();  
Stop();  
}  


/******************* Receive Question *********************/  
public override void doRecvQuestion()  
{  
}  


/******************** Response Answer **********************/  
public override void ResponseAnswer()  
{  
string tmp=ts.LastQuestion.Replace("=?","");  
int ans=ts.Eval(tmp);  
byte ans_index=Convert.ToByte(ts.LastAnswers[ans.ToString()]);  
ts.Answer(ans_index);  
}  


/******************** NPC Dialog Menu **********************/  
public override void NpcDialogMenu(ushort DialogId)  
{  
debug("Dialog Menu ID = "+DialogId.ToString());  
}  


/********************* NPC Dialog ID ***********************/  
public override void NpcDialog(ushort DialogId)  
{  
debug("Dialog ID = "+DialogId.ToString());  
}  


/********************* On NPC Appear ***********************/  
public override void onNPCAppear(ushort npcmapid, int x, int y)  
{  
}  


/************************ On Timer *************************/  
public override void OnTimer()  
{  
}  


/********************** Warp Finish ************************/  
public override void warpFinish()  
{ 
Start();  
}  


/************************* Start ***************************/  
public override void Start()  
{   
if (ts.Character.mapid == mapid1) {   
ts.Walk(622,475);    
ts.Warp(warpid1);  
} else  
if (ts.Character.mapid == mapid2) {   
ts.Warp(warpid2);  
return;  
}   
}   


/************************** Stop ***************************/  
public override void Stop()  
{  
}  


/********************* Fishish Answer **********************/  
public override void FinishAnswer()  
{ 
Start();   
}  


/**************** Request Party Accept From ****************/  

public override void RequestPartyAcceptFrom(uint playerid)  
{  
if (playerid == idmem1) {ts.delay(500);ts.AcceptParty(playerid); pt1 = 1;debug(playerid + " Johned team");}  
if (playerid == idmem2) {ts.delay(500);ts.AcceptParty(playerid); pt2 = 1;debug(playerid + " Johned team");}  
if (playerid == idmem3) {ts.delay(500);ts.AcceptParty(playerid); pt3 = 1;debug(playerid + " Johned team");}  
if (playerid == idmem4_sena) {ts.delay(500);ts.AcceptParty(playerid);ts.delay(5  00);ts.Sena(playerid); pt4 = 1;debug(playerid + " Johned team, Qua^n Su = "+playerid);}  
if (pt1 == 1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {ts.delay(1500);debug("Party Full -> Start ");Start();}  
}  

/*********************** Party Stop ************************/  
public override void PartyStop(uint playerid)  
{  
if (playerid == idmem1) {debug("Dis by "+playerid+" dis");ts.Disconnect();}  
if (playerid == idmem2) {debug("Dis by "+playerid+" dis");ts.Disconnect();}  
if (playerid == idmem3) {debug("Dis by "+playerid+" dis");ts.Disconnect();}  
if (playerid == idmem4_sena) {debug("Dis by "+playerid+" dis");ts.Disconnect();}  
}  

/************************ Init Bot *************************/  
public override void InitBot()  
{          
AddDropItemList("viênongmật");  
AddDropItemList("Dâu đỏ");  
AddDropItemList("Táo nhỏ");  
AddDropItemList("Mật Ý Nhân");  
AddDropItemList("Nhị Quoa đầu");  
AddDropItemList("tựđ uốngthuốc");  
AddDropItemList("Táo nhỏ");  
AddDropItemList("Bành Bột Mì");  
AddDropItemList("viên công kích");  
Stop();  
}  

__________________

Còn cái này báo là " Legna_TS_Machine.LegnaExternalClass.PlayerOnline(uint)': no suitable method found to override "
PHP:
 double DisconnectFlag = 0.3; // Disconnect when current HP is below 30%  

double hpFractionEat = 0.8; //Eat HP when current HP<= 80%  
double spFractionEat = 0.8;  
double hpFraction = 0.95; //Eat until current HP >= 95 %  
double spFraction = 0.95;  

byte DisconFai = 00; // Faith of warrior to disconnect  

byte turna = 0; 
byte turnb = 0;  

byte pt1 = 0;  
byte pt2 = 0;  
byte pt3 = 0;  
byte pt4 = 0;  

uint idchupt = 1038227; 

/***** Chinh sua ID Member o day *****/  

uint idmem1 = 01459105;  
uint idmem2 = 01750854;  
uint idmem3 = 02093139;  
uint idmem4_sena = 1038327;  



public override void MyAttack() 
{    
turna++; 
if (turna == 1) 
    { 
    CharacterInfo MyChar = ts.Character;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 1, 12003); // gà đánh thường, nếu bắn hỏa tiễn thì thay lại là 12003     
    } 
if (turna >=2) 
    { 
    CharacterInfo MyChar = ts.Character;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 12003); // turn 2 skill chạy trốn  
    } 
} 
public override void MyPartnerAttack() 
{ 
turnb++; 
if (turnb == 1) 
    { 
    CharacterInfo MyWarrior = ts.CurrentPartner;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 1, 12003); // bắn hỏa tiễn 
    } 
if (turnb >= 2) 
    { 
    CharacterInfo MyWarrior = ts.CurrentPartner;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 12003); // turn 2 def 
    } 
} 


/********************* Battle Started **********************/  
public override void BattleStarted() 
{ 
turnb=0; 
turna=0; 
} 


/********************* Battle Stopped ***********************/  
public override void BattleStopped()  
{  
AutoEatFood();  
ProcessInventoryAction();  
CheckDisconnect();  
Stop();  
}  


/******************* Receive Question *********************/  
public override void doRecvQuestion()  
{  
}  


/******************** Response Answer **********************/  
public override void ResponseAnswer()  
{  
string tmp=ts.LastQuestion.Replace("=?","");  
int ans=ts.Eval(tmp);  
byte ans_index=Convert.ToByte(ts.LastAnswers[ans.ToString()]);  
ts.Answer(ans_index);  
}  


/******************** NPC Dialog Menu **********************/  
public override void NpcDialogMenu(ushort DialogId)  
{  
debug("Dialog Menu ID = "+DialogId.ToString());  
}  


/********************* NPC Dialog ID ***********************/  
public override void NpcDialog(ushort DialogId)  
{  
debug("Dialog ID = "+DialogId.ToString());  
}  


/********************* On NPC Appear ***********************/  
public override void onNPCAppear(ushort npcmapid, int x, int y)  
{  
}  


/************************ On Timer *************************/  
public override void OnTimer()  
{  
}  


/********************** Warp Finish ************************/  
public override void warpFinish()  
{ 
}  


/************************* Start ***************************/  
public override void Start()  
{   
}   


/************************** Stop ***************************/  
public override void Stop()  
{  
}  


/********************* Fishish Answer **********************/  
public override void FinishAnswer()  
{ 
}  

public override void PlayerOnline(uint playerid) 
{ 
ts.RequestParty(idchupt);  
} 


/**************** Request Party Accept From ****************/  

public override void RequestPartyAcceptFrom(uint playerid)  
{  
ts.AcceptParty(idchupt); 
} 

/*********************** Party Stop ************************/  
public override void PartyStop(uint playerid)  
{  
if (playerid == idmem1) {debug(playerid+ "Rời khởi đội ngũ");}  
if (playerid == idmem2) {debug(playerid+ "Rời khởi đội ngũ");}  
if (playerid == idmem3) {debug(playerid+ "Rời khởi đội ngũ");}  
if (playerid == idmem4_sena) {debug(playerid+ "Rời khởi đội ngũ");}  
}  

/************************ Init Bot *************************/  
public override void InitBot()  
{  
ts.SetReconnectTime(3);  
ts.SetMaxIdleTime(15);          
AddDropItemList("viênongmật");  
AddDropItemList("Dâu đỏ");  
AddDropItemList("Táo nhỏ");  
AddDropItemList("Mật Ý Nhân");  
AddDropItemList("Nhị Quoa đầu");  
AddDropItemList("tựđ uốngthuốc");  
AddDropItemList("Táo nhỏ");  
AddDropItemList("Bành Bột Mì");  
AddDropItemList("viên công kích");  
Stop();  
ts.RequestParty(idchupt); 
}
Ai bít sửa cho em , em cám ơn n` n` !
Cho em hỏi luôn
Set Agi Lư Long Khẩu Thế nào ( 2 Mage - 3 Gà )
 
Ai Xem Hộ em với , em muốn Bot Quá !
AGI nhiu thi Combo dc a. ?
 
mình cung~ bi nhu vay luon ko hiu sao nua
chan ghechan ghechan ghechan ghechan ghechan ghe
chan ghechan ghechan ghechan ghchan ghchan gcchcchan ghechan ghehan ghean ghehan ghechan ghechan gheheechan gheechan ghechanchan ghe ghecchan ghehan ghechan ghechan ghechan ghechan ghechan ghechan gchchan gheanchan ghechanchanchan ghe ghe ghe ghehechan ghechan ghchan gheechan ghechanchan ghe ghechan ghechan ghechan ghe
 
Back
Top