Script Legn@ Full !

Status
Không mở trả lời sau này.
mình noob lắm
sochang cho hõi là bạn cho sript chũ pt, vậy còn script cũa mem ỡ đâu sochang, bạn có thễ cho mình script giới kiều dc ko
thx
 
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;
byte myturn = 0;
byte peturn = 0;

public override void MyAttack()
{
myturn++;
if (myturn == 1)
{
CharacterInfo MyChar = ts.Character;
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000);
}
if (myturn >1)
{
CharacterInfo MyChar = ts.Character;
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000);
}
}

public override void MyPartnerAttack()
{
peturn++;
if (peturn == 1)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 10000);
}
if (peturn >1)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 10000);
}
}

public override void BattleStarted()
{
myturn=0;
peturn=0;
}

public override void BattleStoped()
{
AutoEatFood();
ProcessInventoryAction();
}

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());
}

public override void onNPCAppear(ushort npcmapid, int x, int y)
{
}

public override void OnTimer()
{
}

public override void warpFinish()
{
}

public override void PartyStop(uint PlayerId)
{
}

public override void AcceptedParty(uint playerid)
{
}

public override void Start()
{
}

public override void Stop()
{
}
public override void onPlayerWalk(uint uid, ushort x, ushort y)
{
if ((x < 0) && (y < 0))
{
debug("Co nguoi");
ts.Disconnect();
}
}
public override void PlayerOnline(uint playerid)
{
if(playerid>101 && playerid<10000)
{
debug("Game Master Online");
ts.Disconnect();
}
else if(playerid==2094472)
{
ts.RequestParty(2094472);
}
}

public override void FinishAnswer()
{
}

public override void InitBot()
{
ts.RequestParty(2094472);
}

Minh` con`nood lem'.
 
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 = 12569;
double mapid2 = 12565;
byte warpid1 = 2;
byte warpid2 = 1;

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

uint idmem1 = 1515807;
uint idmem2 = 2095273;
uint idmem3 = 2095282;
uint idmem4_sena = 180206;

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

/*********************** 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, 17001);
}
if (myturn >=3)
{
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, 2, 17001);
}
if (peturn >= 3)
{
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();
}


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


/********************* NPC Dialog ID ***********************/
public override void NpcDialog(ushort DialogId)
{
debug("Dialog ID="+DialogId.ToString());
if(DialogId==12082)
{
ts.SendEnd();
}
if(DialogId==12100)
{
ts.SendEnd();
}
if(DialogId==10227)
{
ts.SendEnd();
}
if(DialogId==10231)
{
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);}
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 == 1 && 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.Disconnect();}
if (playerid == idmem2) {debug(playerid+" Rời khỏi đội ngủ -> Disconnect !!!");ts.Disconnect();}
if (playerid == idmem3) {debug(playerid+" Rời khỏi đội ngủ -> Disconnect !!!");ts.Disconnect();}
if (playerid == idmem4_sena) {debug(playerid+" Rời khỏi đội ngủ -> Disconnect !!!");ts.Disconnect();}
}


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


/************************* Start ***************************/
public override void Start()
{
if (ts.Character.mapid == 12569) {
ts.Warp(2);
ts.SendEnd();
ts.SendEnd();
ts.SendEnd();
return;
} else
if (ts.Character.mapid == 12565) {
ts.Warp(1);
return;
}
}


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


/************************ Init Bot *************************/
public override void InitBot()
{
ts.SetReconnectTime(3);
ts.SetMaxIdleTime(15);
ts.SetTimerOnOff(true);
if (ts.Character.mapid == mapid2) {ts.Warp(warpid2);}
AddDropItemList("viênongmật");
AddDropItemList("tựđ uốngthuốc");
AddDropItemList("viên công kích");
ViewState();
}
 
Ai cho em xin SCRIPT bot thèng GM đc ko ạ! :D :D :D
Thân!
 
có ai cho em xin gate bot châu sáng ko a., em muốn train pet ở gate châu sang' , xin các bác cho em script của nó a.thz nhìu
 
seikenxiii
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 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 = 757543;
uint idmem2 = 1995909;
uint idmem3 = 2056387;
uint idmem4_sena = 1557035;

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

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


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


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


/********************* Battle Stoped ***********************/
public override void BattleStoped()
{    
AutoEatFood();
ProcessInventoryAction();
CheckDisconnect();
ViewState();
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 == 1 && 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.Disconnect();}
if (playerid == idmem2)      {debug(playerid+"  Rời khỏi đội ngủ -> Disconnect !!!");ts.Disconnect();}
if (playerid == idmem3)      {debug(playerid+"  Rời khỏi đội ngủ -> Disconnect !!!");ts.Disconnect();}
if (playerid == idmem4_sena) {debug(playerid+"  Rời khỏi đội ngủ -> Disconnect !!!");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(5  00);ts.Sena(playerid); pt4 = 1;debug(playerid + " Johned team, Quân Sư = "+playerid);}
//if (pt1 == 1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {ts.delay(1500);debug("Party Full -> Start ");Start();}
//}


/************************ Init Bot *************************/
public override void InitBot()
{    
ts.SetTimerOnOff(true);    
AddDropItemList("viênongmật");
AddDropItemList("tựđ uốngthuốc");
AddDropItemList("viên công kích");
AutoEatFood();
ViewState();
}
cho hỏi cái thàng triệu vân này có phải ở chỗ lấy áo cưới phải không
 
Dung roai` day ban.
Ai cho sochang cai scipt Bot Châusang' bên KinhBac'coi.
Minh` con`nood lem'
 
bác Dương Văn Trương ơi cho Em đây xin cái script bot Thành tuyết cỗng 1 đi script đó thấy nhiều người hỏi lắm mà sao hông cho dzay bác share cho bà con đi bác thank....
 
đệ có xem 1 số đoạn shift của huynh.đệ thích nhất la đoạn shift bot NPC nhưng có 1 số chỗ đệ thắc mắc là VD đệ muốn thay BOT NPC khác thì làm như thế nào có thể cho đệ bít được hem vậy.Va huynh có cho 1 số đoạn shift Bot NPC nhưng chỉ cho mỗi chủ PT con các mem thi sao ah.Muốn có đoạn shift mem thi thay ở chỗ nào.Và huynh cho đoạn shift BOT Đốc Du Ác chẳng hạn đệ kô muốn BOT Đốc Du Ác mà muốn BOT Võ An Quốc thành bên lang` chài thi thay ở chỗ nào .
Đệ hơi nood mong huynh thông cảm.
Nhờ huynh dìu dắt dạy đệ.Cảm ơn huynh nhìu!
 
bác co thể viết cho tui cái script để send cho 2 acc với đươc không chứ tui chỉ send đồ cho 1 acc được thối á
 
Shahatta nói:
chi oi sao em coppy ve crips sao do' login vao thi no thong bao cai nay` ne`
' Legna_Ts_Machine.LegnaExternalClass.BattleStoped()':no suitable method found to override
Bạn sử dụng lenga ver 1.0.2.5 phải ko nếu vậy bạn cần phải sửa hàm BattleStoped() thành BattleStopped() tức là thêm 1 chữ p .
 
Nuub nói:
bác co thể viết cho tui cái script để send cho 2 acc với đươc không chứ tui chỉ send đồ cho 1 acc được thối á

Mã:
void ProcessInventoryAction(){
	for(byte i=0;i<25;i++){
		Slot oSlot = (Slot)ts.MyItems[i];
		if( oSlot.itemid == 0){ continue; } 
		Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];
		if((oSlot.itemid == 26082 || 
		    oSlot.itemid == 46027 || 
		    oSlot.itemid == 46016 ||    
                    oSlot.itemid == 46013 ||
                    oSlot.itemid == 46041 ||
                    oSlot.itemid == 46033 ||
                    oSlot.itemid == 27029) && oSlot.num == 50)
		{ts.SendItemTo(012345,oSlot.slot,oSlot.num);}   //012345 là id cần send
		if((oSlot.itemid == 26157) && oSlot.num == 50)
		{ts.SendItemTo(0123456,oSlot.slot,oSlot.num);}}    //0123456 là id cần send  
}

Bạn copy phần này vào hàm ProcessInventoryAction() ở cuối file common nhé, bạn sửa lại id item phù hợp với item chỗ bạn đánh rớt nhé
 
victoryvn3 nói:
Kô ai trả lời giúp mình àh
P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E P.L.E.A.S.E
Vấn đề thứ 1 là pt full 5 người nó mới đánh, muốn chỉnh lài bao nhiêu đánh là tùy, có thể 2,3,4 bằng cách sửa trong phần khai báo:
byte pt1 = 0;
byte pt2 = 0;
byte pt3 = 0;
byte pt4 = 0;
và :
uint idmem1 = 1111111;
uint idmem2 = 2222222;
uint idmem3 = 3333333;
uint idmem4_sena = 4444444;
Ở trên nếu muốn bỏ 1 con đi, chẳng hạn bỏ mem2 đi, thì khai lại: byte pt2=1; và ở dưới khai các id trong pt của mình vào, cái uint mem2 = 222222; thì không cần khai gì cả.
Còn về vấn đề cất pet turn 2 thì vào trong topic Full Scrip ngay mấy trang đầu có post, tìm lại đi
 
Bác Trương ơi, làm ơn giải thính dùm cái scripts DDA khi kích hoạt nó ko có báo lỗi mà nó ko đánh chỉ báo như vậy nè.
Dialog ID=11372
Dialog ID=11372
Dialog ID=10055
Dialog ID=11372
Dialog ID=10055
Dialog ID=11372
Dialog ID=10114
 
ReturneR nói:
Bác Trương ơi, làm ơn giải thính dùm cái scripts DDA khi kích hoạt nó ko có báo lỗi mà nó ko đánh chỉ báo như vậy nè.
Dialog ID=11372
Dialog ID=11372
Dialog ID=10055
Dialog ID=11372
Dialog ID=10055
Dialog ID=11372
Dialog ID=10114

NHận Q chưa , còn Q ko.
30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char
 
em đây mới tập bot nhưng cũng có crip này pót lên cho pà con xem giùm
VỚi lại ai cho em hỏi làm sao minh mới compo khi dung` Lengna
anh Ken noi + thừ chả đến đệ + 700 la compo nhưng em ko biết cộng gì
agi hay là lv

CÒN ĐÂY LÀ CRIPS BOT LƯU BÍCH
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 
string state=""; 
byte pt_count = 0; 

uint tv1 = 0; //là QS luôn 
uint tv2 = 0; 
uint tv3 = 0; 
uint tv4 = 0; 

uint maxpt = 0; //so thanh vien 


public override void MyAttack() 
{ 
CharacterInfo MyChar = ts.Character; 
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000); 
} 
public override void MyPartnerAttack() 
{ 
CharacterInfo MyWarrior = ts.CurrentPartner; 
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 11005); 
} 

public override void BattleStarted() 
{ 
ts.SetTimerOnOff(false); 
} 

public override void BattleStoped() 
{ 
ProcessInventoryAction(); 
AutoEatFood(); 
} 

public override void doRecvQuestion() 
{ 
state="BTQ"; 
} 
public override void ResponseAnswer() 
{ 
int dtime=get_random(1,5); 
debug("Delay "+dtime.ToString()+" before answer."); 
ts.delay(dtime*1000); 
string tmp=ts.LastQuestion.Replace("=?",""); 
int ans=ts.Eval(tmp); 
byte ans_index=Convert.ToByte(ts.LastAnswers[ans.ToString()]); 
debug("Answer choice:"+ans_index.ToString()); 
ts.Answer(ans_index); 
} 

public override void onPlayerWalk(uint uid, ushort x, ushort y) 
{ 
if (uid > 1 && uid < 501) { 
debug("GM den roi chay thoi",0xFF0000); 
ts.Disconnect(false); 
} 
} 


public override void PartyStop(uint playerid) 
{ 
if (playerid == tv1 || playerid == tv2 || playerid == tv3 || playerid == tv4) {ts.Disconnect();} 
} 


public override void Start() 
{ 
ts.ClickOnNPC(14); 
} 

public override void FinishAnswer() 
{ 
Start(); 
} 

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

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

public override void OnTimer() 
{ 
ts.AcceptParty(tv1); 
ts.AcceptParty(tv2); 
ts.AcceptParty(tv3); 
ts.AcceptParty(tv4); 
} 

public override void AcceptedParty(uint playerid) 
{ 
if(playerid == tv1) {ts.Sena(playerid);} 
pt_count++; 
if(pt_count==maxpt){ 
debug(" So thanh vien la : " + pt_count ,0x0000FF); 
Start();} 
else{ 
debug(" So thanh vien la : " + pt_count ,0x0000FF); 
} 
} 

public override void InitBot() 
{ 
ts.SetTimerOnOff(true); 
ts.SetReconnectTime(1); 
ts.SetMaxIdleTime(20); 
debug(" S? con ma : " + ts.Character.ghost ,0xFF0000) ; 
}
 
Mã:
 xin script thành tuyết cửa 1 nào

mẹ sư toàn hỏi chính đáng mà bọn mod nó cảnh cáo mình cấp 2 rồi
 
Status
Không mở trả lời sau này.
Back
Top