Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

honglinhanh nói:mọi người ơi cho tui hỏi cái scrip tui viết như thế này bot lưu bích thiếu cái gì sao nó kô chịu đánh mọi người chỉ dùm tui cho nào sai nha
double DisconnectFlag = 0.3; // Disconnect when current HP is below 30%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; byte pt1 = 0; byte pt2 = 0; byte pt3 = 0; byte pt4 = 0; double mapid1 = 12013; double mapid2 = 12521; byte warpid1 = 1; byte warpid2 = 5; /***** Chinh sua ID Member o day *****/ uint idmem1_sena = 667227; /*************************************/ /*********************** 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) { CharacterInfo MyChar = ts.Character; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 17001); } } 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, 2, 10000); } } /********************* Battle Started **********************/ public override void BattleStarted() { battle_count++; myturn = 0; peturn = 0; } /********************* Battle Stoped ***********************/ public override void BattleStoped() { AutoEatFood(); ProcessInventoryAction(); CheckDisconnect(); ViewState(); } /******************* 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); } /******************** NPC Dialog Menu **********************/ public override void NpcDialogMenu(ushort DialogId) { debug("Dialog Menu ID = "+DialogId.ToString()); ts.SelectChoice(1); ts.SendEnd(); } /********************* NPC Dialog ID ***********************/ public override void NpcDialog(ushort DialogId) { debug("Dialog ID = "+DialogId.ToString()); if (DialogId == 12121) { ts.ClickOnNPC(14); ts.ClickOnNPC(14); } else{ ts.SendEnd(); } } /********************* On NPC Appear ***********************/ public override void onNPCAppear(ushort npcmapid, int x, int y) { } /************************ On Timer *************************/ public override void OnTimer() { if (pt1 == 0) {ts.AcceptParty(idmem1_sena);} } /********************* Accepted Party **********************/ public override void AcceptedParty(uint playerid) { if (playerid == idmem1_sena) {debug(playerid + " Gia nhập đội ngũ");pt1 = 1; ts.Sena(idmem1_sena);debug(playerid + " Làm Quân Sư");} if (pt1 ==1 ) {ts.SetTimerOnOff(false);ts.delay(1000);debug("Đội ngũ đã đầy -> Start");Start();} } /*********************** Party Stop ************************/ public override void PartyStop(uint playerid) { if (playerid == idmem1_sena) {debug(playerid+" Rời khỏi đội ngủ -> Disconnect !!!");ts.Disconnect();} } /********************** Warp Finish ************************/ public override void warpFinish() { if (pt1 == 1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {debug("Party Full -> Start ");Start();} } /************************* Start ***************************/ public override void Start() { ts.ClickOnNPC(14); } /************************** Stop ***************************/ public override void Stop() { } /*********************** View State ************************/ void ViewState() { 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ố lần gặp BTQ : "+ NS_count +" Số con ma : " + ts.Character.ghost ,255) ; debug("======= Script bot luu bich edit by giap hong linh - Copy Right GameVN–™ =======",255) ; } /********************* Fishish Answer **********************/ public override void FinishAnswer() { ts.delay(1000); Start(); } /**************** Request Party Accept From ****************/ //public override void RequestPartyAcceptFrom(uint playerid) //{ //if (playerid == idmem1_sena) {ts.delay(500);ts.AcceptParty(playerid);ts.delay(500);ts.Sena(playerid); pt1 = 1;debug(playerid + " Johned team, Quân Sư = "+playerid);} //if (pt1 == 1 ) {debug("Party Full -> Start ");Start();} //} /************************ Init Bot *************************/ public override void InitBot() { ts.SetTimerOnOff(true); ts.SetReconnectTime(1); ts.SetMaxIdleTime(10); ts.SetTimerOnOff(true); AddDropItemList("viênongmật"); AddDropItemList("tựđ uốngthuốc"); AddDropItemList("viên công kích"); ViewState(); } còn dưới đây là của mem
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;
double mapid1 = 12013;
double mapid2 = 12521;
byte warpid1 = 1;
byte warpid2 = 5;
/***** Chinh sua ID chu Party o day *****/
uint idchupt = 1728654;
public override void MyAttack()
{
myturn++;
if (myturn == 1)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 3, 17001);
}
if (myturn >=2)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 10000);
}
}
public override void MyPartnerAttack()
{
peturn++;
if (peturn == 1)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 1, 2, 10000);
}
if (peturn >= 2)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 10000);
}
}
public override void BattleStarted()
{
battle_count++;
myturn = 0;
peturn = 0;
}
public override void BattleStoped()
{
AutoEatFood();
ProcessInventoryAction();
CheckDisconnect();
Stop();
}
public override void doRecvQuestion()
{
}
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);
}
public override void NpcDialogMenu(ushort DialogId)
{
debug("Dialog Menu ID="+DialogId.ToString());
}
public override void NpcDialog(ushort DialogId)
{
debug("Dialog ID="+DialogId.ToString());
}
/*********************** Party Stop ************************/
public override void PartyStop(uint playerid)
{
if (playerid == idchupt) {debug("Dis by "+playerid+" dis");ts.Disconnect();}
}
public override void onNPCAppear(ushort npcmapid, int x, int y)
{
}
public override void OnTimer()
{
}
public override void warpFinish()
{
}
public override void Start()
{
debug("Request Party ..........");
ts.RequestParty(idchupt);
}
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 edit by DucHoang - Copy Right GameVN =======",255) ;
}
public override void PlayerOnline(uint playerid)
{
if (playerid == idchupt) {debug(idchupt + " Is Now Online, RequestParty ......");ts.delay(500);ts.RequestParty(idchupt);}
}
public override void FinishAnswer()
{
}
public override void InitBot()
{
ts.SetReconnectTime(3);
ts.SetMaxIdleTime(15);
AddDropItemList("ThuốcNhấtĐiểm");
AddDropItemList("viênongmật");
AddDropItemList("tựđ uốngthuốc");
AddDropItemList("viên công kích");
if (ts.Character.mapid==mapid2) {ts.Warp(warpid2);}
Stop();
{debug("Login Okie, Request Party .......");ts.delay(500);ts.RequestParty(idchupt);}
}
mọi người chỉ dùm tui sao nó kô chịu đánh :o :o :o
bạn chỉnh ID skill đúng rồi nhưng liệu tọa độ có đúng khôngkho_vi_yeu nói:Cho hỏi một chút, tại sao con mình hệ thủy chỉnh skill 11002 xài "Băng Tường" không được, bạn nào biết giúp dùm mình

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 NS_count = 0;
byte battle_count = 0;
byte die_count = 0;
byte pet_die_count = 0;
byte myturn = 0;
byte peturn = 0;
byte pt1 = 0;
byte pt2 = 0;
byte pt3 = 0;
byte pt4 = 0;
/***** Chinh sua ID Member o day *****/
uint idmem1 = 670354;
uint idmem2 = 1690406;
uint idmem3 = 0;
uint idmem4_sena = 444200;
/*************************************/
/*********************** 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, 10000);
}
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, 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();
ViewState();
ts.SendAction(58);
Start();
}
/******************* 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.delay(2000);
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());
if(DialogId==15429) {ts.SendEnd();}
else if(DialogId==15661) {ts.ClickOnNPC(4);}
else if(DialogId==15657) {ts.ClickOnNPC(4);}
}
/********************* On NPC Appear ***********************/
public override void onNPCAppear(ushort npcmapid, int x, int y)
{
}
/************************ On Timer *************************/
public override void OnTimer()
{
if (pt1 == 0) {ts.AcceptParty(idmem1);}
if (pt2 == 0) {ts.AcceptParty(idmem2);}
if (pt3 == 0) {ts.AcceptParty(idmem3);}
if (pt4 == 0) {ts.AcceptParty(idmem4_sena);}
}
/********************* Accepted Party **********************/
public override void AcceptedParty(uint playerid)
{
if (playerid == idmem1) {debug(playerid + " Gia nhập đội ngũ");pt1 = 1;}
if (playerid == idmem2) {debug(playerid + " Gia nhập đội ngũ");pt2 = 1;}
if (playerid == idmem3) {debug(playerid + " Gia nhập đội ngũ");pt3 = 1;}
if (playerid == idmem4_sena) {debug(playerid + " Gia nhập đội ngũ");pt4 = 1;
ts.Sena(idmem4_sena);debug(playerid + " Làm Quân Sư");}
if (pt1 ==1 && pt2 == 1 && pt3 == 0 && pt4 == 1) {ts.SetTimerOnOff(false);ts.delay(1000);debug("Đội ngũ đã đầy -> Start");Start();}
}
/*********************** Party Stop ************************/
public override void PartyStop(uint playerid)
{
if (playerid == idmem1) {debug(playerid+" Rời khỏi đội ngủ -> Disconnect !!!");ts.SetTimerOnOff(false);ts.delay(500);ts.Disconnect();}
if (playerid == idmem2) {debug(playerid+" Rời khỏi đội ngủ -> Disconnect !!!");ts.SetTimerOnOff(false);ts.delay(500);ts.Disconnect();}
if (playerid == idmem3) {debug(playerid+" Rời khỏi đội ngủ -> Disconnect !!!");ts.SetTimerOnOff(false);ts.delay(500);ts.Disconnect();}
if (playerid == idmem4_sena) {debug(playerid+" Rời khỏi đội ngủ -> Disconnect !!!");ts.SetTimerOnOff(false);ts.delay(500);ts.Disconnect();}
}
/********************** Warp Finish ************************/
public override void warpFinish()
{
}
/************************* Start ***************************/
public override void Start()
{
ts.ClickOnNPC(4);
}
/************************** Stop ***************************/
public override void Stop()
{
}
/*********************** View State ************************/
void ViewState()
{
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ố lần gặp BTQ : "+ NS_count +" Số con ma : " + ts.Character.ghost ,255) ;
debug("======= Script by Jet007 - Copy Right GameVN–™ =======",255) ;
}
/********************* Fishish Answer **********************/
public override void FinishAnswer()
{
ts.delay(5000);
Start();
ts.delay(500);
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(500);ts.Sena(playerid); pt4 = 1;debug(playerid + " Johned team, Quân Sư = "+playerid);}
//if (pt1 == 1 && pt2 == 1 && pt3 == 0 && pt4 == 1) {ts.delay(1500);debug("Party Full -> Start ");Start();}
//}
/************************ Init Bot *************************/
public override void InitBot()
{
ts.SetReconnectTime(3);
ts.SetMaxIdleTime(15);
ts.SetTimerOnOff(true);
AddDropItemList("viênongmật");
AddDropItemList("tựđ uốngthuốc");
AddDropItemList("viên công kích");
AddContributeItemList("Mật Ý Nhân ");
AutoEatFood();
ts.SendAction(58);
ViewState();
}
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);}
}
kho_vi_yeu nói:Cho hỏi một chút, tại sao con mình hệ thủy chỉnh skill 11002 xài "Băng Tường" không được, bạn nào biết giúp dùm mình
public override void MyAttack()
{
if (myturn == 1)
{
CharacterInfo MyChar = ts.Character;
ts.SendAttack(MyChar.Row, MyChar.Col, 3, 2, 11002);
}
void FindItemSend(uint playerid,uint Iid,byte num)
{
for(byte i=0;i< 25;i++)
{
Slot oSlot = (Slot)ts.MyItems[i];
if( oSlot.itemid == 0 )
{
continue;
}
if(oSlot.itemid == Iid && oSlot.num == num)
{
Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];
ts.SendItemTo(playerid,oSlot.slot,num);
debug("Send " + oItem + " to " + playerid + " amount " + num , 0xC08008);
}
}
}
TimeSend++;
if (TimeSend % 120 == 0)
{
FindItemSend(idsendtaphoa, 26169, 50);//Mang Kho
FindItemSend(idsendtaphoa, 26168, 50);//Ruou Vang
FindItemSend(idtiemthuoc, 27035,50);//Nhat diem
FindItemSend(idtiemthuoc, 27066,50);// bo huyet
FindItemSend(idtiemthuoc, 27005,50);// Tinh nao
FindItemSend(idtiemthuoc, 27032,50);//Luc vi
FindItemSend(idsendtaphoa, 46033, 50);//ong mat
FindItemSend(idsendtaphoa, 46041, 50);//Tu dong uong thuoc
FindItemSend(idsendtaphoa, 46013, 50);//Vien Cong Kich
}
kết cục thảm hại....nó chả chịu gửi cho em lấy 1 lọ sp