Script cất đệ ko tự động ăn máu

mẫu_sơn

Donkey Kong
Tham gia ngày
3/5/06
Bài viết
443
Reaction score
2
các bạn sửa dùm cái script con đệ chẳng chịu ăn uống HP SP gì cả

Mã:
 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 battle_count = 0; 
byte NS_count = 0;  
byte myturn = 0; 
byte peturn = 0; 


/***** Chinh sua ID chu Party o day *****/ 

uint idchupt = 686313; 

/*************************************/ 

/*********************** My Attack *************************/ 
public override void MyAttack()  
{     
myturn++; 
if (myturn == 1) 
{ 
CharacterInfo MyChar = ts.Character;  
//NPCCombatObject Monster = findMonster();     
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 17001);     
} 
 if (myturn >=2)  
{ 
  
ts.delay(1); 
ts.UnSelectPartner(); 

} 
  
}  


/******************* My Partner Attack *********************/ 
public override void MyPartnerAttack()  
{  
peturn++; 
if (peturn == 1) 
{ 
CharacterInfo MyWarrior = ts.CurrentPartner;  
//NPCCombatObject Monster = findMonster();     
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 3, 12003); 
} 
if (peturn >= 2)  
 { 
ts.delay(1); 
 } 
 }  


/********************* Battle Started **********************/ 
public override void BattleStarted() 
{ 
battle_count++;  
myturn = 0; 
peturn =0;  
} 


/********************* Battle Stoped ***********************/ 
public override void BattleStoped() 
{     
ts.SelectPartner(10012); 
AutoEatFood(); 
ProcessInventoryAction(); 
CheckDisconnect();     
Stop(); 
} 


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


/******************** 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); 
} 


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


/************************* Start ***************************/ 
public override void Start() 
{ 
debug("Request Party .........."); 
ts.RequestParty(idchupt); 
} 


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


/*********************** View State ************************/ 
void ViewState() 
{ 
debug(" Số lần gặp BTQ : "+ NS_count +"  Số con ma : " + ts.Character.ghost ,255) ; 
} 


/********************* Accepted Party **********************/ 
public override void AcceptedParty(uint playerid) 
{ 
if (playerid == idchupt) {debug("Join to  " + playerid);} 
} 


/************************ Party Stop ***********************/ 
public override void PartyStop(uint playerid) 
{ 
if (playerid == idchupt) {debug(idchupt+ "  Giải tán đội ngũ ...");} 
} 


/************************ Init Bot *************************/ 
public override void InitBot() 
{ 
if (ts.Character.mapid==12521) {ts.Warp(5);}      
ts.delay(1000);
AddDropItemList("viênongmật"); 
AddDropItemList("tựđ uốngthuốc"); 
AddDropItemList("Măng hô");
AddDropItemList("thần hành");
AddDropItemList("ThuốcNhấtĐiểm");
AddDropItemList("Thuốc Bổ Huyết");
AddDropItemList("Thuốc Lục Vị");
AddDropItemList("viên công kích");
AddDropItemList("Rượu vàng");      
ViewState();  
debug("Login Okie");  
}
 
Đúng rùi, mình cũng đang thắc mắc cái đó, các pác pro vào chỉ giúp em với
:(( , toàn phải ăn viên TDUT ngại lắm ah


PHP:
+mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào  +mp đi nào +mp đi nào +mp đi nào +mp đi nào  +mp đi nào+mp đi nào +mp đi nào +mp đi nào +mp đi nào +mp đi nào
 
em cũng bị nữa chẳng biết sao ai sữa giùm với
 
/************************ Init Bot *************************/
public override void InitBot()
{
if (ts.Character.mapid==12521) {ts.Warp(5);}
ts.delay(1000);
AddDropItemList("viênongmật");
AddDropItemList("tựđ uốngthuốc");
AddDropItemList("Măng hô");
AddDropItemList("thần hành");
AddDropItemList("ThuốcNhấtĐiểm");
AddDropItemList("Thuốc Bổ Huyết");
AddDropItemList("Thuốc Lục Vị");
AddDropItemList("viên công kích");
AddDropItemList("Rượu vàng");
ViewState();
debug("Login Okie");
}
[/code][/QUOTE] sua? thanh`
Mã:
/************************ Init Bot *************************/ 
public override void InitBot() 
{ 
if (ts.Character.mapid==12521) {ts.Warp(5);}      
ts.delay(1000);
AddDropItemList("viênongmật"); 
AddDropItemList("tựđ uốngthuốc"); 
AddDropItemList("Măng hô");
AddDropItemList("thần hành");
AddDropItemList("ThuốcNhấtĐiểm");
AddDropItemList("Thuốc Bổ Huyết");
AddDropItemList("Thuốc Lục Vị");
AddDropItemList("viên công kích");
AddDropItemList("Rượu vàng");      
AutoEatFood();
ViewState();  
debug("Login Okie");  
}  

them cai' ham` AutoEatFood();
 
thêm cái hàm đó rồi mà nó cũng chẳng chịu ăn
AutoEatFood();
 
co' bác nào có cái cất pet ở cầu Triệu Chi không thế?
 
cách duy nhất la an 255 vien tdut duợc 1 ngày
 
thế mà cũng nói
hix :D :D :D
 
Bạn thử để AutoEatFood() ở cuối hàm BattleStopped() xem, hồi trước tui để ngay dưới
SelectPartner nó cũng ko ăn, dời về cuối hàm thì nó ăn. Còn nếu ko được nữa thì bạn thử thêm delay giữa SelectPartner voi AutoEatFood xem, hi vọng được.
 
cám ơn nha nhưng mà thêm delay thế nào
 
/********************* Battle Stoped ***********************/
public override void BattleStoped()
{
ts.delay(200);
ts.SelectPartner(10012);
ts.delay(200);
ProcessInventoryAction();
CheckDisconnect();
AutoEatFood();
}
 
cám ơn bạn dùng tốt quá

bà con ai mà đang ăn TDCK thì về mà sửa scrip nè

Mã:
 xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào xin tí MP nào
 
Back
Top