Cho những người LV thấp.

  • Thread starter Thread starter DuongVănTruong
  • Ngày gửi Ngày gửi
Status
Không mở trả lời sau này.
Van du dao sĩ nè :
Mã:
double DisconnectFlag = 0.2; // Disconnect when current HP is below 30% 

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

byte DisconFai = 00; // Faith of warrior to disconnect 
byte pt_count = 0; 
byte myturn = 0;
byte peturn = 0;

uint tv1 = 0207963; // là QS luôn 
uint tv2 = 007969; // L
uint tv3 = 0036360; // L
uint tv4 = 0218518; // G

uint maxpt = 3; //so thanh vien 


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

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

public override void BattleStoped() 
{ 
ProcessInventoryAction(); 
AutoEatFood(); 
ts.ClickOnNPC(6);
} 

public override void doRecvQuestion() 
{ 
debug("Gap BTQ roi`, tra loi` ko noi dau, chay thoi !",0xFF0000);
ts.Disconnect();
} 
public override void ResponseAnswer() 
{ 
ts.delay(10000);
} 

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) {debug("Disconnect boi " + playerid,0xFF2200);ts.Disconnect();} 
} 


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

public override void FinishAnswer() 
{ 
ts.ClickOnNPC(6);
} 

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

public override void NpcDialog(ushort DialogId) 
{ 
debug("Dialog ID="+DialogId.ToString()); 
if (DialogId==12210) {ts.ClickOnNPC(6);}
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){
ts.SetTimerOnOff(false);
debug(" So thanh vien la : " + pt_count + " ===> Go Let's Go !" ,0x0000FF);
ts.SetTimerOnOff(false); 
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) ; 
}
 
bác Trường ơi cho hỏi cai rip đánh cung đô sao mới đánh một chút la nó trừ diểm khăn vàng rồi dứng im ko đánh đươc nữa ... co cách nào mà ko cần diểm khăn vàng mà nó vẫn đánh ko...
 
cho em hoi gio` minh bot' 2 acc thi` minh bo~ bot' so' thanh` vien o cho~ nao` vay anh Ken
phien` anh chi~ giup' thx
 
Cái code đánh Vân Du Đạo Sĩ không có được không biết bạn đã test thử chưa vậy??Bạn thử coi lai và test lại luôn đi nha.
Bà con hãy post thêm mấy đoạn script giành cho những người lv trung bình đi các bạn cho những ai 5x-6x đó và post luôn Quest đi các bạn cho đỡ phải đi tìm Quest nữa.
 
mã PHP viết ở đâu vậy chỉ luôn đi bạn
 
de vay em sao biet cach sai
linh moi dau co biet cai crip nhu the nao
cho em sin crip luon di
 
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, 10000);
}

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

public override void BattleStoped()
{
ProcessInventoryAction();
AutoEatFood();
ts.ClickOnNPC(3);
ts.ClickOnNPC(3);
}

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

public override void FinishAnswer()
{
}

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

public override void NpcDialog(ushort DialogId)
{
debug("Dialog ID="+DialogId.ToString());
if(DialogId==10152){ 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) ;
}

Anh Tường ơi sao em copy bản DDA vào nhưng sao nó báo lỗi là : Legna_TS_Machine.LegnaExternalClass.BattleStoped()':no suitable method found to override :(( :(( :(( :((
 
do thay đổi hàm trong LegNa 1.0.2.5 thôi mà
bác đổi hàm BattleStoped() thành BattleStopped() là được mà, thêm 1 chữ p vào là ok rồi
Have fun!
 
day la` truong trinh` gi` vay,nhin` so wa thay nhuc dau` wa',ma` sao post len nhieu` the, cau bai` a` :D:D:D
 
DuongVănTruong nói:
Hàn Trung :
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(1); 
} 

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

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

public override void NpcDialog(ushort DialogId) 
{ 
debug("Dialog ID="+DialogId.ToString()); 
  if (DialogId == 12077) 
  {
      ts.ClickOnNPC(1);
      ts.ClickOnNPC(1);
  }
  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) ; 
}
Thân!

xin man phép hoi 12077=YinGuan nó có phải mã ID của thằng hàn trung kô mà sao tui kô dánh được pt xong nó đứng im
thx DVT trước nha
 
pó tay cai scrip Đốc Du Ác bị lỗi Rồi đại ca ơi chĩnh dùm cái đi
 
Lỗi đâu hả bạn mình vẫn bot được mà nếu bi sao thì mình cho scrip của mình
YM huyhoangonline
 
ai viết cho cái scirp bot Võ An Quốc với
Thanks nhìu
 
DuongVănTruong nói:
Hàn Trung :
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(1); 
} 

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

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

public override void NpcDialog(ushort DialogId) 
{ 
debug("Dialog ID="+DialogId.ToString()); 
  if (DialogId == 12077) 
  {
      ts.ClickOnNPC(1);
      ts.ClickOnNPC(1);
  }
  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) ; 
}
Thân!

Dương văn trường ông xem lại cái scrip này đi
nó toàn đứng im có đánh gì đâu !
30 char 30 char30 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 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 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 30 char 30 char 30 char 30 char 30 char 30 char 30 char 30 char
 
Mã 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, 11003);
}
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(5);
}

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

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

public override void NpcDialog(ushort DialogId)
{
debug("Dialog ID="+DialogId.ToString());
if (DialogId == 12103)
{
ts.ClickOnNPC(5);
ts.ClickOnNPC(5);
}
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) ;
}


THân!
 
Oai' anh oi.Uhm`em dong` y' la` co'scipt rui`, con` Bot thi` ko bit lv khoang? 9x ra day Bot dc. ko.Ma`Day moi' chi? scipt chu pt.
Cho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt memberCho em xinc ai scipt member
 
các anh cho em hỏi sao cái bản bot Đốc Du Ác em chay ko được nó báo lỗi 'Legna_TS_Machine.LegnaExternalClass.BattleStoped()': no suitable method found to override là sao vậy anh chỉ em với anh !
 
những cái scipt kia phải chỉnh sửa thế nào để bot được vậy , và đăng nhập ở đó nó có nhưng cái IP thì đánh IP gì vậy
 
anh chi em cach bot cai dc ko anh duongvantruong
 
DuongVănTruong nói:
Mong GM vài hôm hẵng del.

Đề nghị các bạn không xin xỏ ở đây nha.

Đây là 1 số Script bot các con lv thấp dành cho những bạn lv ko cao.
Rút kinh nghiệm mấy lần trước là không test, lần này test rùi mới post.

Đốc Du Ác:
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, 10000); 
} 

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

public override void BattleStoped() 
{ 
ProcessInventoryAction(); 
AutoEatFood(); 
ts.ClickOnNPC(3); 
ts.ClickOnNPC(3); 
} 

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

public override void FinishAnswer() 
{ 
} 

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

public override void NpcDialog(ushort DialogId) 
{ 
debug("Dialog ID="+DialogId.ToString()); 
if(DialogId==10152){   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) ; 
}

Thân!
híc,sao khi em nhập đoạn script này vào nó báo lỗi khi nạp script là sao????nó báo chi tiết:"Metadata file 'Legna TS Machine.exe' could not be found"
 
Status
Không mở trả lời sau này.
Back
Top