Script Legn@ Full !

Status
Không mở trả lời sau này.
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 BattleStopped()
{
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) ;
}

cai nay xai de thiet :D:D
 
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 = 90; // 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();
}

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());
if(DialogId==5){ ts.SelectChoice(1); ts.SendEnd(); }
}

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

Bot GianDung ne
 
chùi ui sao tui connect rùi mà nó ko chịu đánh nè T___________T . anh chị nào đang xài dc cript Giản Dung và hiện vẫn Bot dc thi share hộ em với T_T
 
chùi ui sao tui connect rùi mà nó ko chịu đánh nè T___________T . anh chị nào đang xài dc cript Giản Dung và hiện vẫn Bot dc thi share hộ em với T_T
 
Vậy có bác nào đang chơi Legna@ bản 1.0.2.5
thì cho em xin cái script của chủ pt và mem ở CỰ LỘC , bản script em xài lâu rồi từ hồi bản đầu tiên, giờ ai có bản nào chạy ngon ngon ít lỗi cho em xin 1 bản
 
Hi mình share cho các bạn script giới kiều đây script chạy tốt gập BTQ trả lời xong mói dis

[LTL]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 = 12000;
double mapid2 = 12441;
byte warpid1 = 16;
byte warpid2 = 1;

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

uint idmem1 = 0;
uint idmem2 = 0;
uint idmem3 = 0;
uint idmem4_sena = 0;

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

/*********************** My Attack *************************/
public override void MyAttack()
{
myturn++;
if (myturn == 1)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 0, 10000);
}
if (myturn >=2)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 3, 17001);
}
if (myturn >=3)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 3, 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, 3, 17001);
}
if (peturn >= 3)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 3, 17001);
}
}

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


/********************* Battle Stoped ***********************/
public override void BattleStoped()
{
ts.delay(200);
AutoEatFood();
ProcessInventoryAction();
CheckDisconnect();
ViewState();
ts.SendEnd();
}


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


/********************* 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 == mapid1) {
ts.Walk(1022,1155);
ts.Warp(warpid1);
return;
} else
if (ts.Character.mapid == mapid2) {
ts.Warp(warpid2);
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(500);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(1);
ts.SetTimerOnOff(true);
if (ts.Character.mapid == mapid2) {ts.Warp(warpid2);}

ViewState();
}
 
cái bot trương lương sao kỳ quá vậy mấy pồ ơi co lúc dánh 1 turn no chạy sang hang bên kia thế la disconet .. có lúc được 2,3 turn nó lại vậy cứ mỗi lần dis như vậy ăn toàn ma thôi à ai rảnh giúp tui chút đi thanks nhiều nhiều :D
 
cho mình hỏi với, mình đăng nhập đc rùi nhưng sao vào trận nó ko đánh vậy. ai biết chỉ mình với nha. cám on nhùi
 
dề nghị tất cà mọi người sau này dùng cript thì post như vậy cho dể thấy nè
PHP:
rồi viết cript vào dậy
 
viet nhu the bang cach nao`. chi di. chu tui cung muon viet kieu do cho de doc. ma voi lai muon copy dơn sciprt trong do thi sao. chu tui bam select all thi` copy nguyen trang luon ::( ::(
 
các bác cho em hỏi tí cái hàm Unselectpartner() với selectpartner() phải bảng legn@ nèo mới xài đc vậy ? Em đang xài bảng 1.0.2.0 có hàm đó chưa?? Thx nhìu
 
down bảng mới ve xài cai Sc của ai đóa để trên này thì nó báo
No overload for method 'UnSelectPartner' takes '1' arguments
mong cai anh giúp đỡ
 
lam on cho hoi? tu nhien tui dang chay bot. xuat hien 1 cua so bao loi~. neu tat cua so nay thi 1 trong 5 cua so legna se bi tat. ma bam send eror thi mot hoi sau cung tat not' . cai bang? no ghi vay ne`
legna machine has encountered a problem and need to close. we are sorry for the inconvenience.
if you are were in the middle of something ,the ìnormation you working on might be lost.
please tell microsoft about this problem. We have created an eror that you can send to help us improve legna machine. we will treat this report as confidential and anonymous


may bac pro xem gium minh. con neu ai da bi thi lam chi tui cach khac phuc cai nay voi . thx moi nguoi nhieu
 
Mấy anh ơi làm ơn cho em xin 1 cái script TGiac chay tốt nhe, nhân tien dday cho em hỏi là sao cai script T Giac của em lại danh khoang 2-3 tran thì no hiên tiếp : Dialog ID=10183
Dialog ID=12249
Dialog ID=10140
Dialog ID=12215
như vấy rồi đúng im luôn có cách nào khắc phục không vậy , giúp em với cảm ơn mấy anh nhiều lắm. Và cho em xin hỏi luôn là làm sao mình có thể post hình kèm theo được vậy
 
các pro có thể cho tui hỏi làm thế nào khi bot triệu vân hay trương giác tỷ lệ combo cao và set agi bằng bao nhiêu để độ combo là tuyệt đối
tui sét mãi agi bằng nhau lớn hơn 8x mà vẫn kô com bo
team tui là
ID phong 150 pet tào hồng rb LV 96
ID hỏa mage 135 pet QG LV 80
ID thủy bufl 142
ID hoa war 107 pet HHT LV 30
mà sao đánh vẫn kô com bo mặc dù sét agi bằng nhau hết
và xin cho hỏi agi của pét khi bot pét lên LV có phụ thuộc nhiều kô
Mã:
xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mpxin chut exp và mp xin chut exp và mp  xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp  xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp  xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp  xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp  xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp  xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp  xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp  xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mp xin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mpxin chut exp và mp
 
hinh nhu tinh trung binh cong lv ben no +them 40 nua~ thi` phai? neu tren so do thi` combo 100% .nhung con de nao duoi so do nen bo? di de do mat cong keu lv ben ta xuong
cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm cho xin it pm
 
Status
Không mở trả lời sau này.
Back
Top