Script Legn@ Full !

Status
Không mở trả lời sau này.
AlanHVN nói:
Ai có script tu hành chạy đc với legna 1.0.2.61 có phần tự động uống hp sp mình tu ra làm ơn share cho mình với, cám ơn nhiều.

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

public override void RecvDropItems(string Itemname, int Num)
{
if ( Num >=1 ) {SaSamPHan();}
}

void SaSamPHan()
{
	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 >= 52001 && oSlot.itemid <= 52019 && oSlot.itemid != 52015) && oSlot.num >=1)
		{ts.EatItem(oSlot.slot,oSlot.num,0);}
}
}


public override void InitBot()
{
ts.SendAction(48);
ts.SetReconnectTime(1);
ts.SetMaxIdleTime(15);
debug("Đăng nhập thành công") ; 
}
 
Ai biết cách tìm Warpid chỉ mình với, ko biết tìm lại bài tính warpid ở đâu ở trong forum này. ai biết giúp mình với
 
gacon2006 nói:
anh Trường ơi cho em xin cai' scipt bot nhaquansondong cửa 2 với
cái scipt ở đầu trang bị lỗi ko bot đc anh ah
anh Trương ơi giúp em đi cái scipt ở mấy trang trước bị lỗi rồi em ko bot đc
 
DuongVănTruong nói:
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

public override void RecvDropItems(string Itemname, int Num)
{
if ( Num >=1 ) {SaSamPHan();}
}

void SaSamPHan()
{
	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 >= 52001 && oSlot.itemid <= 52019 && oSlot.itemid != 52015) && oSlot.num >=1)
		{ts.EatItem(oSlot.slot,oSlot.num,0);}
}
}


public override void InitBot()
{
ts.SendAction(48);
ts.SetReconnectTime(1);
ts.SetMaxIdleTime(15);
debug("Đăng nhập thành công") ; 
}


Cám ơn Trường rất nhìu.
 
To: Pawn !
Cho tui xin cái SC bot TG đi Bro được chứ, thấy Bro bot đó khí thế we' đi thôi, Bro có thể share cho anh em cùng xài chứ.
Thansk Bro
 
Bác Trường ơi có thể share giúp mình cái bot o sông Triệu Chi được hem...scirpt của mình lạ qua'...1 trận thì được 935 exp ma` 1' thì được có 4k5 à...bạn giúp mình với...hic
thanks>"<
 
có ai bit cach nao bot giản dung ma ra nhiu thanh long hoac danhmã ko, chi em voi, hoac cach nao hack item dóa, cam on nhìu
 
DươngVan Trương ơi có thể cho mình xin cái Cript Legn@ cho con bán đồ đi,mình tìm hoài mà không thấy cái cript bán đồ, DVT có thể cho mình cái cript bán đồ hoàn chỉnh đình cám ơn nhiều.
 
Choa em cin kái warp ở gate Mã Thăng zới mí anh oai....
kám ơn kác anh nhìu...
30 kái thịt nạc 30 kái thịt nạc 30 kái thịt nạc 30 kái thịt nạc 30 kái thịt nạc 30 kái thịt nạc
 
Cái legna này hình như chỉ bot được pet hỏa thôi phải kô các pác
Sao tôi thằng đệ Lưu Dư của tôi kô sài skill bắn đá được mà thằng Tôn trọng lại sài Hỏa Tiễn được
Tui đã đổi ID skill rồi đó nha
PHP:
/******************* 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, 20012);  
}  
if (peturn >= 2)  
{  
CharacterInfo MyWarrior = ts.CurrentPartner;  
//NPCCombatObject Monster = findMonster();  
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 17001);  
}  
}
Mong mọi người giúp đỡ
 
Cái legna này hình như chỉ bot được pet hỏa thôi phải kô các pác
Sao tôi thằng đệ Lưu Dư của tôi kô sài skill bắn đá được mà thằng Tôn trọng lại sài Hỏa Tiễn được
Tui đã đổi ID skill rồi đó nha
PHP:
/******************* 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, 20012);  
}  
if (peturn >= 2)  
{  
CharacterInfo MyWarrior = ts.CurrentPartner;  
//NPCCombatObject Monster = findMonster();  
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 17001);  
}  
}
 
ai co scrip bot truong giac' ma tu dong giai? ma cho em xin voi tim mai~ ma ko co srcip bot truong giac tu dong giai? ma de cam chuot cho de~ hoi ti la gap ma a`
 
sao tui chạy cái no báo lỗi này nè
'Legna_TS_Machine.LegnaExternalClass.BattleStoped()': no suitable method found to override
là sao dzay giúp mình với mấy bồ ơi,chả hĩu ze` cả ::(
 
Mã:
nho` may anh xem giu`m em sao pt vao` la` no dis
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;


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

uint idmem1 = 1971095;
uint idmem2 = 628310;
uint idmem3 = 686379;
uint idmem4_sena = 636798;

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

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


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


/********************* Battle Stoped ***********************/
public override void BattleStopped()
{
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 == 12130)
{
ts.ClickOnNPC(50);
ts.ClickOnNPC(50);
ts.SendEnd();
return;
}
if(DialogId == 10183)
{
ts.ClickOnNPC(50);
ts.ClickOnNPC(50);
ts.SendEnd();
return;}
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);}
}

/************* Click on NPC *********************/
void TruongGiac(){
ts.ClickOnNPC(50);
ts.delay(500);
ts.SendEnd();
}

/********************* 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(500);debug("Đội ngũ đã đầy -> Start");TruongGiac();}
}


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


/************************** 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 DKQV (Develop form Gamevn) =======",255) ;
}


/********************* Fishish Answer **********************/
public override void FinishAnswer()
{
ts.delay(4000);
TruongGiac();
}


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


/************************ Init Bot *************************/
public override void InitBot()
{
ts.SetReconnectTime(3);
ts.SetMaxIdleTime(10);
ts.SetTimerOnOff(true);
AddDropItemList("viênongmật");
AddDropItemList("tựđ uốngthuốc");
AddDropItemList("viên công kích");
ViewState();
}
 
ông dùng legna mới thì phải thêm vào chỗ này nề
public override void BattleStoped() sửa lại nề:
public override void BattleStopped()
 
AI cho mình xin cái script đánh quang ngân bình đi ( cho luôn cái của mem) thk all
 
bác DVT ơi cái sc bot mấy thằg DDA,Hàn Trung,Lưu Bích,...... sao đánh kô được,dzoi' lại muốn dánh 1 mình thì sao,tui log dzo cái no đứng yên ah` nó ko chịu đánh sao kỳ dzay,T_T giup tui đi bác DVT,mấy cái sc đó cần lém
 
ai bít sài legn@ pro thì hướng dẫn kỹ cho bà con đi,để mấy cha kia dzo câu bài wài chóng mặt wa' ,vd như chỉnh sc va common ntn
 
Status
Không mở trả lời sau này.
Back
Top