Script Legn@ Full !

Status
Không mở trả lời sau này.
các bạn ơi nếu muốn cho def thi` sửa script như thế nào , ở đoạn nào ,thanks
 
mọi người ơi sao tôi tìm mỏi mắt chẳng thấy sc hàn trung vậy , chán wa' , ai rảnh post ho^j minh nhe , cảm ơn bạn nhiều
 
Rút cục sau 1 hồi mày mò em cũng đã bít xài cái legn@ rồi ^___^
Nhưng mờ sao em bot giới kiều cứ đến em đánh là "chờ người chơi điều khiển" xong đứng làm tượng cho nó oánh, chỉ có đệ oánh thui, chả hỉu gì cả, bác nào chỉ giúp, please...
 
ghienchoigame nói:
Bác nào chỉ dùm em, sao em cứ truy cập là báo lỗi khi nạp script: 'Legna_TS_Machine.LegnaExternalClass.BattleStoped()': no suitable method found to override
Bác nào có lòng chỉ dùm, em còn noop >___<
cais này hình như đã có hướng dẫn rồi mà, bạn sửa chữ " BattleStoped" thành "BattleStopped" là xong thôi ( thêm có 1 chữ p ah )
 
mấy pa cho bít cái nài để vào phần nào

void ProcessInventoryAction(){
for(byte i=0;i<25;i++){
Slot oSlot = (Slot)ts.MyItems;
if( oSlot.itemid == 0){ continue; }
Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];
if ((oSlot.itemid >= 1 && oSlot.itemid <= 99999) && oSlot.num == 50)
{ts.Sell(oSlot.slot, oSlot.num);} // Day la sell

if((oSlot.itemid == 27037 ||
oSlot.itemid == 27030 ||
oSlot.itemid == 27066 ||
oSlot.itemid == 27041 )&& oSlot.num >= 1)
{ts.DropItem(oSlot.slot,oSlot.num);} // Day la Drop
}
}

tui để vào toàn thấy lỗi thôi àh
 
mấy pác ơi cái đoạn auto send đồ tui có đầy đủ rồi nhưng đâu thấy nó send gì đâu nài làm thế nào mấy pác chỉ rùm với
 
scrpit danh thanh tuyet cua em sao bao loi nhu vay.

'Legna_TS_Machine.LegnaExternalClass.BattleStoped( )': no suitable method found to override

may bac chi dum` em....


script chupt
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 myturn = 0;
byte peturn = 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;

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

uint idmem1 = 02296529;
uint idmem2 = 02041314;
uint idmem3 = 1745946;
uint idmem4_sena = 1582164;

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

/*********************** 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, 12003);
}
if (myturn >=2)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 10000);
}
}


/******************* 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, 2, 12003);
}
if (peturn >= 2)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 17001);
}
}


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


/********************* Battle Stoped ***********************/
public override void BattleStoped()
{
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()
{
debug("************************************************** **********************",255) ;
debug(" Số trận đánh : " + battle_count ,255) ;
debug(" HP của "+ts.Character.CharName+" = " + ts.Character.HP +" "+ "/" +" "+ ts.Character.MAXHP,255);
debug(" HP của "+ts.CurrentPartner.CharName +" = " + ts.CurrentPartner.HP + " "+"/" +" "+ ts.CurrentPartner.MAXHP +" "+" FAI = " + ts.CurrentPartner.fai,255);
debug(" Số con ma : " + ts.Character.ghost ,255) ;
debug("===== Script by Ha Van Toan - Copy Right GameVN–™ =====",255) ;
}


/********************* 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, Quân Sư = "+playerid);}
if (pt1 == 1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {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();
}
---------cua mem va ga` co giong nhau hem vay
chi doi? id chu pt thoi hay sao bac' nao` co scrpit danh thanh tuyet cua chu pt va mem+ ga lun gui cho em nha.
 
cứu em với cái sao con của em luc trước vo legen được sao bây giờ ko vo được vậy
ko biết co phải là scrip ko vậy
đây là scrip
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 myturn = 0;
byte peturn = 0;

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

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

uint idchupt = 76973;

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

/*********************** 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, 12003);
}
if (myturn >=2)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 0, 10000);
}
}


/******************* 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, 1, 12003);
}
if (peturn >= 2)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 3, 10000);
}
}


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


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

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


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


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


/************************** Stop ***************************/
public override void Stop()
{
debug("************************************************** **********************",255) ;
debug(" Số trận đánh : " + battle_count ,255) ;
debug(" HP của "+ts.Character.CharName+" = " + ts.Character.HP +" "+ "/" +" "+ ts.Character.MAXHP,255);
debug(" HP của "+ts.CurrentPartner.CharName +" = " + ts.CurrentPartner.HP + " "+"/" +" "+ ts.CurrentPartner.MAXHP +" "+" FAI = " + ts.CurrentPartner.fai,255);
debug(" Số con ma : " + ts.Character.ghost ,255) ;
debug("======= Script by zFantasy - Copy Right GameVN–™ =======",255) ;
}


/************************ Init Bot *************************/
public override void InitBot()
{
if (ts.Character.mapid==12441) {ts.Warp(1);}
ts.delay(1000);
ts.SetReconnectTime(1);
debug("Login Okie");
}
CAI NÀY CỦA CON THỨ 1 VÀ ĐÂY LÀ CON THỨ 2
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 myturn = 0;
byte peturn = 0;

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

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

uint idchupt = 76973;

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

/*********************** 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, 12003);
}
if (myturn >=2)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 0, 10000);
}
}


/******************* 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, 1, 12003);
}
if (peturn >= 2)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 3, 10000);
}
}


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


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

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


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


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


/************************** Stop ***************************/
public override void Stop()
{
debug("************************************************** **********************",255) ;
debug(" Số trận đánh : " + battle_count ,255) ;
debug(" HP của "+ts.Character.CharName+" = " + ts.Character.HP +" "+ "/" +" "+ ts.Character.MAXHP,255);
debug(" HP của "+ts.CurrentPartner.CharName +" = " + ts.CurrentPartner.HP + " "+"/" +" "+ ts.CurrentPartner.MAXHP +" "+" FAI = " + ts.CurrentPartner.fai,255);
debug(" Số con ma : " + ts.Character.ghost ,255) ;
debug("======= Script by zFantasy - Copy Right GameVN–™ =======",255) ;
}


/************************ Init Bot *************************/
public override void InitBot()
{
if (ts.Character.mapid==12441) {ts.Warp(1);}
ts.delay(1000);
ts.SetReconnectTime(1);
debug("Login Okie");
}
xin các anh giúp em với
 
Mấy bác cho hỏi, team em có 1 fong với 2 hoả, em mún xài hỏa tiễn + huyền kích thì fải sửa cái script ra sao, em bot cự lộc ạ, thanks...
 
Các anh chị ui cho em xin cai Warp ID Lư Long Khẩu cổng 1 với, MapID thi em đã mò đc còn Warp ID thì em pó tay rùi> :-s :-s
 
MonKey.D.Luffy nói:
THeo Y/c 1 số bạn :chicken: pót nốt cái script mem thanh tuyết, lưu ý mem, qs và gà đều như nhau tùy mỗi ng mún đánh như thế nào thì sửa lại chỗ (ts.SendAttackMyChar.Row, MyChar.Col, 0, 1, ?????)
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 = 01364987;

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

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



public override void MyAttack()
{   
turna++;
if (turna == 1)
	{
	CharacterInfo MyChar = ts.Character; 
	//NPCCombatObject Monster = findMonster();	
	ts.SendAttack(MyChar.Row, MyChar.Col, 0, 1, 10000); // 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, 18001); // 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, 17001); // turn 2 def
	}
}


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


/********************* Battle Stoped ***********************/ 
public override void BattleStoped() 
{ 
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);
}



nhưng sao mình copy và chạy thử thì nó báo lỗi này vậy? lỗi: dòng 155, cột 1, Invalid token '}' in class, struct, or interface member declaration
mong hay chi cho minh`
 
babyanhyeuem997 nói:
scrpit danh thanh tuyet cua em sao bao loi nhu vay.

'Legna_TS_Machine.LegnaExternalClass.BattleStoped( )': no suitable method found to override



/********************* Battle Stoped ***********************/
public override void BattleStoped()
{
AutoEatFood();
ProcessInventoryAction();
CheckDisconnect();
Stop();
}
---------cua mem va ga` co giong nhau hem vay
chi doi? id chu pt thoi hay sao bac' nao` co scrpit danh thanh tuyet cua chu pt va mem+ ga lun gui cho em nha.
thêm chữ p vào thôi BattleStoped() thành BattleStopped() :whew:
 
Ai chỉ em cách chỉnh lại cái script để pt 2 acc treo nick thôi cũng được (>_<).
Em chơi 2 acc địa mage mới 5x không có team nên không bot được trong lớp lại không ai chơi TS nên chỉ có cách cho 2 acc pt treo nick, set 1 acc làm QS
Đã chỉnh sửa cái sript pt 5 acc ==> 2acc nhung nó cứ báo lỗi rồi ngắt kết nối (>_<).
Hoạc nếu các anh đã có hướng dần qua thì chỉ em nó nằm trong khoảng trang mấy đến trang mấy (không cần chính xác biết "khoảng" nào là được) (^_^)
Thanks
 
anh oi sao khi em ket noi thi` hien ra nhu vay la` sao
"anhLoading code....done
Kết nối tới máy chủ 203.113.150.15:6414
Kết nối thành công.
ID/mật khẩu không hợp lệ !!!
Ngừng kết nối với máy chủ !!!"
giup em voi ca~ 5 acc cua em dieu hien len nhu vay
cam on anh nhieu
 
bác nào có script bot HC DT mới thì send cho mình với vì mình đang cần để train pet!
 
HienTS nói:
anh oi sao khi em ket noi thi` hien ra nhu vay la` sao
"anhLoading code....done
Kết nối tới máy chủ 203.113.150.15:6414
Kết nối thành công.
ID/mật khẩu không hợp lệ !!!
Ngừng kết nối với máy chủ !!!"
giup em voi ca~ 5 acc cua em dieu hien len nhu vay
cam on anh nhieu

Pass của bạn khi login lege@ phải từ 9 kí tự trở xuống nếu quá 9 kí tự sẽ ko đăng nhập được và sẽ là ID/mật khẩu không hợp lệ !!!
Ngừng kết nối với máy chủ !!!"
 
mấy pác cho cái script_mem tự động send item đó hix hix tui sủa được nhưng không thấy nó send bó hàn
 
huyenthieugia81 nói:
Gửi BiBôBiBa, bạn cần cái bán shop à. Mình chỉ có cái ở bán ở Diệp thành thôi, con tạp hóa á. Bạn sài thử xem nhé
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;
double TimeSale = 0; 

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

byte battle_count = 0; 

byte myturn = 0; 
byte peturn = 0; 


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

uint idchupt = 75740; 

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

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


/******************* 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, 2, 10000); 
} 
if (peturn >= 2) 
{ 
CharacterInfo MyWarrior = ts.CurrentPartner;  
//NPCCombatObject Monster = findMonster();     
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 10000); 
} 
} 


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


/********************* Battle Stoped ***********************/ 
public override void BattleStoped() 
{     
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); 
} 


/************************ On Timer *************************/ 
public override void OnTimer() 
{
   TimeSale++; 
    if (TimeSale % 200 == 0) 
    { 
       	FindItemSale (46027, 50);
        FindItemSale (26168, 50); 
	FindItemSale (46016, 50); 
	FindItemSale (46027, 50); 
	FindItemSale (26082, 50);
	FindItemSale (48005, 50);
	FindItemSale (46013, 50);
    }
} 

public override void NpcDialog(ushort DialogId) 
{     
    debug("Dialog ID = "+ DialogId.ToString()); 
    ts.SendEnd(); 
}

public override void NpcDialogMenu(ushort DialogId)  
{  
    debug("Dialog Menu ID = "+ DialogId.ToString());
    ts.SelectChoice(2); 
    ts.SendEnd(); 
}

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


/************************** Stop ***************************/ 
public override void Stop() 
{  
for(byte i=0;i<25;i++){  
Slot oSlot = (Slot)ts.MyItems[i];  
Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];  
if(oSlot.itemid == 0){ continue; }   
debug(oItem.itemname + " at slot " + oSlot.slot.ToString() + " with ID " + oSlot.itemid.ToString(),0);  
}  
}  

/********************** Player Online **********************/ 
public override void PlayerOnline(uint playerid) 
{  
if (playerid == idchupt) {debug(idchupt + "  Is Now Online, RequestParty ......");ts.delay(500);ts.RequestParty(idchupt);} 
} 

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

/************************ Init Bot *************************/ 
public override void InitBot() 
{         
    ts.SetTimerOnOff(true); 
    ts.ClickOnNPC(2);
AddDropItemList("Măng khô");
AddDropItemList("Thuốc Bổ Huyết ");
AddDropItemList("tựđ uốngthuốc"); 
AddDropItemList("viên công kích"); 
AddDropItemList("ThuốcNhấtĐiểm");  
AutoEatFood();
Stop(); 
{debug("Login Okie, Request Party .......");ts.delay(500);ts.RequestParty(idchupt);} 
}
Đây là cái bán đồ của mình, bạn sài thử nhé

kiểm tra lại đi ông no toàn báo sai thế này thì dùng làm sao được #>:) #>:) #>:)
 
huyenthieugia81 nói:
Gửi BiBôBiBa, bạn cần cái bán shop à. Mình chỉ có cái ở bán ở Diệp thành thôi, con tạp hóa á. Bạn sài thử xem nhé
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;
double TimeSale = 0; 

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

byte battle_count = 0; 

byte myturn = 0; 
byte peturn = 0; 


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

uint idchupt = 75740; 

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

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


/******************* 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, 2, 10000); 
} 
if (peturn >= 2) 
{ 
CharacterInfo MyWarrior = ts.CurrentPartner;  
//NPCCombatObject Monster = findMonster();     
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 10000); 
} 
} 


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


/********************* Battle Stoped ***********************/ 
public override void BattleStoped() 
{     
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); 
} 


/************************ On Timer *************************/ 
public override void OnTimer() 
{
   TimeSale++; 
    if (TimeSale % 200 == 0) 
    { 
       	FindItemSale (46027, 50);
        FindItemSale (26168, 50); 
	FindItemSale (46016, 50); 
	FindItemSale (46027, 50); 
	FindItemSale (26082, 50);
	FindItemSale (48005, 50);
	FindItemSale (46013, 50);
    }
} 

public override void NpcDialog(ushort DialogId) 
{     
    debug("Dialog ID = "+ DialogId.ToString()); 
    ts.SendEnd(); 
}

public override void NpcDialogMenu(ushort DialogId)  
{  
    debug("Dialog Menu ID = "+ DialogId.ToString());
    ts.SelectChoice(2); 
    ts.SendEnd(); 
}

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


/************************** Stop ***************************/ 
public override void Stop() 
{  
for(byte i=0;i<25;i++){  
Slot oSlot = (Slot)ts.MyItems[i];  
Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];  
if(oSlot.itemid == 0){ continue; }   
debug(oItem.itemname + " at slot " + oSlot.slot.ToString() + " with ID " + oSlot.itemid.ToString(),0);  
}  
}  

/********************** Player Online **********************/ 
public override void PlayerOnline(uint playerid) 
{  
if (playerid == idchupt) {debug(idchupt + "  Is Now Online, RequestParty ......");ts.delay(500);ts.RequestParty(idchupt);} 
} 

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

/************************ Init Bot *************************/ 
public override void InitBot() 
{         
    ts.SetTimerOnOff(true); 
    ts.ClickOnNPC(2);
AddDropItemList("Măng khô");
AddDropItemList("Thuốc Bổ Huyết ");
AddDropItemList("tựđ uốngthuốc"); 
AddDropItemList("viên công kích"); 
AddDropItemList("ThuốcNhấtĐiểm");  
AutoEatFood();
Stop(); 
{debug("Login Okie, Request Party .......");ts.delay(500);ts.RequestParty(idchupt);} 
}
Đây là cái bán đồ của mình, bạn sài thử nhé

kiểm tra lại đi ông no toàn báo sai thế này thì dùng làm sao được #>:) #>:) #>:)
ông kiểm tra lai coi ...
mà ai có srip bán hàng share cho mọi người dùng cái nha
ai co share de
ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô ai có share scrip bán hàng được kô
 
Status
Không mở trả lời sau này.
Back
Top