Script Legn@ Full !

Thảo luận trong 'Hộp lưu trữ' bắt đầu bởi Dragon St.Knight, 15/3/06.

Trạng thái chủ đề:
Không mở trả lời sau này.
  1. LyDaiLong(Noob)

    LyDaiLong(Noob) Youtube Master Race

    Tham gia ngày:
    2/4/06
    Bài viết:
    31
    anh Truong oi cai crip bot gian dung nay` cua? anh
    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 = 01880304; //là QS luôn
    uint tv2 = 01993142;


    uint maxpt = 1; //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(1);
    Start();
    }

    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 ) {ts.Disconnect();}
    }


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

    public override void FinishAnswer()
    {
    ts.delay(3000);
    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.delay(3000);
    ts.ClickOnNPC(1);
    }else{
    ts.SendEnd();
    }
    }

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

    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);
    debug(" Số con ma : " + ts.Character.ghost ,0xFF0000) ;
    }
    no' bi gi ma` danh dc 1 van ro`i hien len
    Dialog ID = 15657
    Dialog ID = 12385
    Dialog ID = 12385
    Menu ID=5
    ro`i tu. dong ngat ket noi lun vay anh truon` huhu
     
  2. truongngo

    truongngo Youtube Master Race

    Tham gia ngày:
    29/11/05
    Bài viết:
    31
    Mấy anh ơi xem dùm em cái script bot TG này phải khắc phục chổ nào nữa vì đánh được có vài trận là đứng đó luôn àh kô bem tiếp, mấy anh giúp hộ em em cám ơn nhiều lắ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 songuoi = 00;
    byte DisconFai = 00;
    byte myturn = 0;
    byte peturn = 0;
    byte gm=0;
    uint mem1 = 243045;
    uint mem2 = 99102;
    uint mem3 = 2100835;
    uint quansu = 2064614;

    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, 1, 2, 17001);
    }
    }

    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, 1, 2, 17001);
    }
    }

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

    public override void BattleStoped()
    {
    ts.delay(1);
    ts.ClickOnNPC(50);
    ts.delay(1);
    ts.ClickOnNPC(50);
    ts.delay(1);
    ts.SendEnd();
    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());
    if(DialogId==10183)
    {
    ts.delay(1);
    }
    else
    {
    ts.SendEnd();
    }
    }

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

    public override void warpFinish()
    {
    }

    void TruongGiac(){
    if(songuoi==4){
    ts.ClickOnNPC(50);
    ts.SendEnd();
    }
    }

    public override void RequestPartyAcceptFrom(uint PlayerId)
    {
    if(PlayerId == mem1 || PlayerId == mem2 || PlayerId == mem3 || PlayerId == quansu)
    {
    ts.AcceptParty(PlayerId);
    ts.delay(2000);
    songuoi++;
    ts.delay(1);
    TruongGiac();
    ts.Sena(quansu);
    }
    }

    public override void PartyStop(uint PlayerId)
    {
    if(PlayerId == mem1 || PlayerId == mem2 || PlayerId == mem3 || PlayerId == quansu)
    {
    ts.Disconnect();
    }
    }

    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 < 650) && (y < 525))
    {
    debug("Co nguoi");
    ts.Disconnect();
    }
    }
    public override void PlayerOnline(uint playerid)
    {
    if(playerid>101 && playerid<10000)
    {
    debug("Game Master Online");
    ts.Disconnect();
    }
    }

    public override void FinishAnswer()
    {
    ts.delay(1000);
    TruongGiac();
    }

    public override void InitBot()
    {
    AddDropItemList("viênongmật");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("viên công kích");
    }
     
  3. Solomonlight

    Solomonlight Mario & Luigi

    Tham gia ngày:
    9/12/02
    Bài viết:
    874
    Nơi ở:
    Arni Village!
     
  4. gacon2006

    gacon2006 Youtube Master Race

    Tham gia ngày:
    14/3/06
    Bài viết:
    56
    đây là của chủ pt
    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  

    byte NS_count 0;   
    byte battle_count 0
    byte turna 0
    byte turnb 0;  

    byte pt1 0;  
    byte pt2 0;  
    byte pt3 1;  
    byte pt4 0;  

    double mapid1 12013;  
    double mapid2 12521
    byte warpid1 1
    byte warpid2 5;  

    uint idchupt = 01446811; 

    /***** Chinh sua ID Member o day *****/  
    uint idmem1 = 02257639;  
    uint idmem2 = 01652845;  
    uint idmem3 0;  
    uint idmem4_sena = 01934581;  

    public 
    override void MyAttack() 
    {    
    turna++; 
    if (
    turna == 1
        { 
        
    CharacterInfo MyChar ts.Character;  
        
    //NPCCombatObject Monster = findMonster();     
        
    ts.SendAttack(MyChar.RowMyChar.Col1212003);     
        } 
    if (
    turna ==2
        { 
        
    CharacterInfo MyChar ts.Character;  
        
    //NPCCombatObject Monster = findMonster();     
        
    ts.SendAttack(MyChar.RowMyChar.Col0410000); 
        } 
    if (
    turna >=3
        { 
        
    CharacterInfo MyChar ts.Character;  
        
    //NPCCombatObject Monster = findMonster();     
        
    ts.SendAttack(MyChar.RowMyChar.Col0410000); 
        } 


    public 
    override void MyPartnerAttack() 

    turnb++; 
    if (
    turnb == 1
        { 
        
    CharacterInfo MyWarrior ts.CurrentPartner;  
        
    //NPCCombatObject Monster = findMonster();     
        
    ts.SendAttack(MyWarrior.RowMyWarrior.Col0217001); 
        } 
    if (
    turnb == 2
        { 
        
    CharacterInfo MyWarrior ts.CurrentPartner;  
        
    //NPCCombatObject Monster = findMonster();     
        
    ts.SendAttack(MyWarrior.RowMyWarrior.Col0410000); 
        } 
    if (
    turnb >= 3
        { 
        
    CharacterInfo MyWarrior ts.CurrentPartner;  
        
    //NPCCombatObject Monster = findMonster();     
        
    ts.SendAttack(MyWarrior.RowMyWarrior.Col0410000); 
        } 



    /********************* Battle Started **********************/  
    public override void BattleStarted() 

    battle_count++;
    turnb=0
    turna=0



    /********************* Battle Stopped ***********************/  
    public override void BattleStopped()  
    {  
    AutoEatFood();
    ProcessInventoryAction();  
    CheckDisconnect();  
    ViewState();
    }  


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


    /******************** 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 npcmapidint xint y)  
    {  
    }  


    /************************ On Timer *************************/  
    public override void OnTimer()  
    {  
    }  


    /********************** Warp Finish ************************/  
    public override void warpFinish()  
    {
    if (
    pt1 == && pt2 == && pt3 == && pt4 == 1) {ts.delay(200);Start();}
    }  


    /************************* Start ***************************/  
    public override void Start()  
    {   
    if (
    ts.Character.mapid == mapid1) {   

    ts.Warp(warpid1);  
    } else  
    if (
    ts.Character.mapid == mapid2) {   
    ts.Warp(warpid2);  
    return;  
    }   
    }   

    void ViewState()   
    {   
    debug("******************************************************************************",255) ;    
    debug(" Số trận đánh : " battle_count ,255) ;      
       
    debug("******************************************************************************",255) ;    
    }

    /************************** Stop ***************************/  
    public override void Stop()  
    {  
    }  


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

    /**************** Request Party Accept From ****************/ 
    public override void RequestPartyAcceptFrom(uint playerid

    if (
    playerid == idmem1) {ts.delay(200);ts.AcceptParty(playerid); pt1 1;debug(playerid " Mời Gia Nhập Đội Ngũ");} 
    if (
    playerid == idmem2) {ts.delay(200);ts.AcceptParty(playerid); pt2 1;debug(playerid " Mời Gia Nhập Đội Ngũ");} 
    if (
    playerid == idmem3) {ts.delay(200);ts.AcceptParty(playerid); pt3 1;debug(playerid " Mời Gia Nhập Đội Ngũ");} 
    if (
    playerid == idmem4_sena) {ts.delay(200);ts.AcceptParty(playerid);ts.Sena(playerid); pt4 1;debug(playerid " Mời Gia Nhập Đội Ngũ và được làm QS");} 
    if (
    pt1 == && pt2 == && pt3 == && pt4 == 1) {ts.delay(200);debug("Đủ gùi Bem thui");Start();} 
    }  

    /*********************** Party Stop ************************/ 
    public override void PartyStop(uint playerid
    {
    if (
    playerid == idmem1) {debug(playerid"Rời khởi đội ngũ");ts.Disconnect();} 
    if (
    playerid == idmem2) {debug(playerid"Rời khởi đội ngũ");ts.Disconnect();} 
    if (
    playerid == idmem3) {debug(playerid"Rời khởi đội ngũ");ts.Disconnect();} 
    if (
    playerid == idmem4_sena) {debug(playerid"Rời khởi đội ngũ");ts.Disconnect();} 


    /************************ Init Bot *************************/  
    public override void InitBot()  


    if (
    ts.Character.mapid == mapid2) {ts.Warp(warpid2);}           
    }  
    đây là của mem
    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 

    byte turna 0;
    byte turnb 0

    double mapid1 12013;  
    double mapid2 12521
    byte warpid1 1
    byte warpid2 5;

    byte pt1 0
    byte pt2 0
    byte pt3 0
    byte pt4 0

    uint idchupt = 01446811;

    uint idmem1 = 01459105; 
    uint idmem2 = 01750854; 
    uint idmem3 00000000
    uint idmem4_sena = 01686800; 

    public 
    override void MyAttack()
    {   
    turna++;
    if (
    turna == 1)
        {
        
    CharacterInfo MyChar ts.Character
        
    //NPCCombatObject Monster = findMonster();    
        
    ts.SendAttack(MyChar.RowMyChar.Col0212003);    
        }
    if (
    turna >=2)
        {
        
    CharacterInfo MyChar ts.Character
        
    //NPCCombatObject Monster = findMonster();    
        
    ts.SendAttack(MyChar.RowMyChar.Col0417001);
        }
    }
    public 
    override void MyPartnerAttack()
    {
    turnb++;
    if (
    turnb == 1)
        {
        
    CharacterInfo MyWarrior ts.CurrentPartner
        
    //NPCCombatObject Monster = findMonster();    
        
    ts.SendAttack(MyWarrior.RowMyWarrior.Col0212003);
        }
    if (
    turnb >= 2)
        {
        
    CharacterInfo MyWarrior ts.CurrentPartner
        
    //NPCCombatObject Monster = findMonster();    
        
    ts.SendAttack(MyWarrior.RowMyWarrior.Col0417001);
        }
    }


    /********************* Battle Started **********************/ 
    public override void BattleStarted()
    {
    turnb=0;
    turna=0;
    }


    /********************* Battle Stopped ***********************/ 
    public override void BattleStopped() 

    AutoEatFood(); 
    ProcessInventoryAction(); 
    CheckDisconnect(); 



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



    /******************** 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 npcmapidint xint y




    /************************ On Timer *************************/ 
    public override void OnTimer() 




    /********************** Warp Finish ************************/ 
    public override void warpFinish() 
    {
    ts.delay(200);
    ts.RequestParty(idchupt);



    /************************* Start ***************************/ 
    public override void Start() 
    {   
    }  



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

    }  


    /********************* Fishish Answer **********************/ 
    public override void FinishAnswer() 
    {
    if (
    ts.Character.mapid == mapid2) {ts.Warp(warpid2);}


    public 
    override void PlayerOnline(uint playerid,ushort mapid

    if (
    playerid == idchupt) {ts.delay(200);ts.RequestParty(idchupt);} 
    }


    /**************** Request Party Accept From ****************/ 

    public override void RequestPartyAcceptFrom(uint playerid

    }

    /*********************** Party Stop ************************/ 
    public override void PartyStop(uint playerid
    {
    if (
    playerid == idchupt) {debug(playerid"Rời khởi đội ngũ");}if (ts.Character.mapid == mapid2) {  ts.Warp(warpid2); }  
    if (
    playerid == idmem1) {debug(playerid"Rời khởi đội ngũ");} 
    if (
    playerid == idmem2) {debug(playerid"Rời khởi đội ngũ");} 
    if (
    playerid == idmem3) {debug(playerid"Rời khởi đội ngũ");} 
    if (
    playerid == idmem4_sena) {debug(playerid"Rời khởi đội ngũ");} 


    /************************ Init Bot *************************/ 
    public override void InitBot() 

     
            
    if (
    ts.Character.mapid == mapid2) {  ts.Warp(warpid2); } 
    ts.RequestParty(idchupt);
    }  
    ai chỉnh sửa giúp em vì cái scipt này khi bị diss là mem về kỉ lục
     
  5. quantuong

    quantuong Youtube Master Race

    Tham gia ngày:
    17/3/06
    Bài viết:
    33
    Cho em hỏi sao em vào legna no bao lỗi này là sao anh" 'Legna_TS_Machine.LegnaExternalClass.BattleStoped()': no suitable method found to override"
    Đây là scrip cùa em
    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 = 1;

    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 = 2178881;

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

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


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


    /******************* Receive Question *********************/
    public override void doRecvQuestion()
    {
    NS_count++;
    }


    /******************** Response Answer **********************/
    public override void ResponseAnswer(1)
    {
    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());
    if(DialogId==1) {ts.SelectChoice(2);ts.SendEnd();}
    }


    /********************* NPC Dialog ID ***********************/
    public override void NpcDialog(ushort DialogId)
    {
    debug("Dialog ID = "+DialogId.ToString());
    if(DialogId==10025) {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 == 0 && 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.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 == 12000) {
    ts.Walk(1042,1155);
    ts.delay(1000);
    ts.Warp(16);
    return;
    } else
    if (ts.Character.mapid == 12441) {
    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 zFantasy - 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.SetTimerOnOff(true);
    if (ts.Character.mapid == mapid2) {ts.Warp(warpid2);}
    AddDropItemList("tựđ uốngthuốc");
    ViewState();
    }
     
  6. Angel_18

    Angel_18 Youtube Master Race

    Tham gia ngày:
    6/4/06
    Bài viết:
    33
    Ai cho cai scpit cấm chuột được không zay . Chứ cái scpit cấm chuột ở trang 2 bị lỗi nhiều wa sử không được Thx trước
     
  7. zZrongconnZz

    zZrongconnZz Youtube Master Race

    Tham gia ngày:
    21/3/06
    Bài viết:
    34
    Mã:
    [QUOTE=gacon2006]đây là của chủ pt
    bạn sử dụng sript của chủ pt làm sript của mem kìa coi lại đi, sript của mem khác, sript của chu pt khác
    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
     
  8. boyquayvnne

    boyquayvnne Youtube Master Race

    Tham gia ngày:
    5/3/05
    Bài viết:
    37
    Nơi ở:
    hochiminh city
    Anh Truong oi sao em lay bot gian dung cua anh chay duoc nhung danh id va pass khi dang nhap thi ko the ket noi voi may chu203.113.150.001 xin chi dan cho em.
     
  9. boyquayvnne

    boyquayvnne Youtube Master Race

    Tham gia ngày:
    5/3/05
    Bài viết:
    37
    Nơi ở:
    hochiminh city
    ::( Anh Truong oi sao em lay bot gian dung cua anh chay duoc nhung danh id va pass khi dang nhap thi ko the ket noi voi may chu203.113.150.001 xin chi dan cho em.
     
  10. taoday1234

    taoday1234 Youtube Master Race

    Tham gia ngày:
    20/1/06
    Bài viết:
    39
    Cho mình hỏi nhận Q để đánh em bé này ở đâu thế
     
  11. TheOneTS

    TheOneTS Mr & Ms Pac-Man

    Tham gia ngày:
    27/9/05
    Bài viết:
    161
    Lâu lâu vào xem lại TS tí. Góp vui script tống nhân và giản dung. Ai kô tìm được trước đó thì sài :D

    Tống nhân:
    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;
    
    /***** Chinh sua ID Member o day *****/
    
    uint idmem1 = 2150839;//ID ga 1
    uint idmem2 = 2150801;//ID ga 2
    uint idmem3 = 216606;
    uint idmem4_sena = 1685245;
    
    /*************************************/
    
    /*********************** 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, 2, 12003);
    }
    }
    
    
    /******************* 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, 12003);
    }
    }
    
    
    /********************* Battle Started **********************/
    public override void BattleStarted()
    {
    battle_count++;
    myturn = 0;
    peturn = 0;
    }
    
    
    /********************* Battle Stoped ***********************/
    public override void BattleStoped()
    {    
    AutoEatFood();
    ProcessInventoryAction();
    CheckDisconnect();    
    ViewState();
    BotTC();
    }
    
    void BotTC()
    {
    ts.ClickOnNPC(2);
    ts.ClickOnNPC(2);
    ts.SelectChoice(1);
    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.delay(3000);
    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 d?i ngu");pt1 = 1;}
    if (playerid == idmem2)       {debug(playerid + "  Gia nh?p d?i ngu");pt2 = 1;}
    if (playerid == idmem3)       {debug(playerid + "  Gia nh?p d?i ngu");pt3 = 1;}
    if (playerid == idmem4_sena)  {debug(playerid + "  Gia nh?p d?i ngu");pt4 = 1;
                                   ts.Sena(idmem4_sena);debug(playerid + "  Làm Quân Su");}
    if (pt1 ==1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {ts.SetTimerOnOff(false);ts.delay(1000);debug("Ð?i ngu dã d?y -> 
    
    Start");Start();}
    }
    
    
    /*********************** Party Stop ************************/
    public override void PartyStop(uint playerid)
    {
    if (playerid == idmem1)      {debug(playerid+"  R?i kh?i d?i ng? -> Disconnect !!!");ts.Disconnect();}
    if (playerid == idmem2)      {debug(playerid+"  R?i kh?i d?i ng? -> Disconnect !!!");ts.Disconnect();}
    if (playerid == idmem3)      {debug(playerid+"  R?i kh?i d?i ng? -> Disconnect !!!");ts.Disconnect();}
    if (playerid == idmem4_sena) {debug(playerid+"  R?i kh?i d?i ng? -> Disconnect !!!");ts.Disconnect();}
    }
    
    
    /********************** Warp Finish ************************/
    public override void warpFinish()
    {
    }
    
    
    /************************* Start ***************************/
    public override void Start()
    { 
    BotTC();
    } 
    
    
    /************************** Stop ***************************/
    public override void Stop()
    {
    }
    
    /*********************** View State ************************/
    void ViewState()
    {
    debug("**************************************************  **********************",255) ; 
    debug(" S? tr?n dá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("**************************************************  **********************",255) ; 
    }
    
    
    /********************* Fishish Answer **********************/
    public override void FinishAnswer()
    {
    BotTC();
    }
    
    /************************ Init Bot *************************/
    public override void InitBot()
    {    
    ts.SetTimerOnOff(true);    
    ViewState();
    }  
    Gian Dung:

    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;
    
    /***** Chinh sua ID Member o day *****/
    
    uint idmem1 = 2150839;//ID ga 1
    uint idmem2 = 2150801;//ID ga 2
    uint idmem3 = 216606;
    uint idmem4_sena = 2170637;
    
    /*************************************/
    
    /*********************** 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, 2, 12003);
    }
    }
    
    
    /******************* 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, 12003);
    }
    }
    
    
    /********************* Battle Started **********************/
    public override void BattleStarted()
    {
    battle_count++;
    myturn = 0;
    peturn = 0;
    }
    
    
    /********************* Battle Stoped ***********************/
    public override void BattleStoped()
    {    
    AutoEatFood();
    ProcessInventoryAction();
    CheckDisconnect();    
    ViewState();
    BotTC();
    }
    
    void BotTC()
    {
    ts.ClickOnNPC(1);
    ts.ClickOnNPC(1);
    }
    
    /******************* 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(3000);
    ts.Answer(ans_index);
    }
    
    
    /******************** NPC Dialog Menu **********************/
    public override void NpcDialogMenu(ushort DialogId)
    {
    debug("Dialog Menu ID = "+DialogId.ToString());
     if(DialogId==5) {ts.SelectChoice(1);ts.SendEnd();};
    }
    
    
    /********************* NPC Dialog ID ***********************/
    public override void NpcDialog(ushort DialogId)
    {    
    debug("Dialog ID = "+DialogId.ToString());
     if(DialogId==12385) {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 d?i ngu");pt1 = 1;}
    if (playerid == idmem2)       {debug(playerid + "  Gia nh?p d?i ngu");pt2 = 1;}
    if (playerid == idmem3)       {debug(playerid + "  Gia nh?p d?i ngu");pt3 = 1;}
    if (playerid == idmem4_sena)  {debug(playerid + "  Gia nh?p d?i ngu");pt4 = 1;
                                   ts.Sena(idmem4_sena);debug(playerid + "  Làm Quân Su");}
    if (pt1 ==1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {ts.SetTimerOnOff(false);ts.delay(1000);debug("Ð?i ngu dã d?y -> Start");Start();}
    }
    
    
    /*********************** Party Stop ************************/
    public override void PartyStop(uint playerid)
    {
    if (playerid == idmem1)      {debug(playerid+"  R?i kh?i d?i ng? -> Disconnect !!!");ts.Disconnect();}
    if (playerid == idmem2)      {debug(playerid+"  R?i kh?i d?i ng? -> Disconnect !!!");ts.Disconnect();}
    if (playerid == idmem3)      {debug(playerid+"  R?i kh?i d?i ng? -> Disconnect !!!");ts.Disconnect();}
    if (playerid == idmem4_sena) {debug(playerid+"  R?i kh?i d?i ng? -> Disconnect !!!");ts.Disconnect();}
    }
    
    
    /********************** Warp Finish ************************/
    public override void warpFinish()
    {
    }
    
    
    /************************* Start ***************************/
    public override void Start()
    { 
    ts.ClickOnNPC(1);
    } 
    
    
    /************************** Stop ***************************/
    public override void Stop()
    {
    }
    
    /*********************** View State ************************/
    void ViewState()
    {
    debug("**************************************************  **********************",255) ; 
    debug(" S? tr?n dá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("**************************************************  **********************",255) ; 
    }
    
    
    /********************* Fishish Answer **********************/
    public override void FinishAnswer()
    {
    ts.delay(2000);
    ts.ClickOnNPC(1);
    }
    
    /************************ Init Bot *************************/
    public override void InitBot()
    {    
    ts.SetTimerOnOff(true);    
    ViewState();
    }  
    
    Ai không xài được chịu khó xem quá trình copy về có lỗi gì không nhé ! Đừng chửi dễ mất khách lắm :-*
     
  12. MasterDark

    MasterDark Youtube Master Race

    Tham gia ngày:
    18/3/06
    Bài viết:
    10
    bác Dragon ơi
    cái bảng bot nằm ở đâu thế tui kiếm mãi mà ko thấy nè
    chỉ giúp đi
     
  13. Dragongao

    Dragongao Youtube Master Race

    Tham gia ngày:
    2/1/06
    Bài viết:
    17
    Mấy bác Pro ơi cho em hỏi cái bản down cái legn@ này về đươc ko vậy mấy bác. Làm ơn trả lời nhanh dùm THX rất nhiều
     
  14. zZrongconnZz

    zZrongconnZz Youtube Master Race

    Tham gia ngày:
    21/3/06
    Bài viết:
    34
    Mấy anh ơi có thể hướng dẫn lại cho em cách sennd iteam cho 2 acc khác nhau đc hem, em làm như của bác TuanLinhTTL chi dẫn thì nó báo 1 đống lỗi luôn ko thèm báo 1 hay 2 lỗi nữa, em thank you các bác trước nha, nếu có thể liên hệ với em = yahoo cũng đc: [email protected]
     
  15. xswcde

    xswcde Mr & Ms Pac-Man

    Tham gia ngày:
    25/4/06
    Bài viết:
    168
    Nơi ở:
    Hồ Chí Minh
    lão Dương Văn Trường ơi cho tui xin 5 scrip bot : Giản Dung, Hàn Trung, Đốc Du Ác, Lưu Bích, Tống Dủng
    cái Scrip Bot Đốc Du Ác ở trên sửa hết lổi nhưnh vô bot dc có 2 Trận
    wa trận thứ 3 nó báo

    Dialog ID=10157

    biết được tại sao chết liền
    đưa phật đưa tới tây thiên , tiễn quỷ tiễn tới cửu tuyền
    giúp giùm anh em đi
    send wa email:[email protected]
    tui sẻ gửi ông bản DeepUnfreeze phá băng
    gọi là đền đáp
     
  16. vipvip

    vipvip Youtube Master Race

    Tham gia ngày:
    7/2/06
    Bài viết:
    15
    các bác pro làm ơn xem giúp em ! Bot TG
    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 songuoi = 00;
    byte DisconFai = 00;
    byte myturn = 0;
    byte peturn = 0;
    byte gm=0;
    uint mem1 = 2022626;
    uint mem2 = 615732;
    uint mem3 = 1576259;
    uint quansu = 837290;

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

    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, 1, 2, 10000);
    }
    }

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

    public override void BattleStoped()
    {
    ts.delay(1);
    ts.ClickOnNPC(50);
    ts.delay(1);
    ts.ClickOnNPC(50);
    ts.delay(1);
    ts.SendEnd();
    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());
    if(DialogId==10183)
    {
    ts.delay(1);
    }
    else
    {
    ts.SendEnd();
    }
    }

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

    public override void warpFinish()
    {
    }

    void TruongGiac(){
    if(songuoi==4){
    ts.ClickOnNPC(50);
    ts.SendEnd();
    }
    }

    public override void RequestPartyAcceptFrom(uint PlayerId)
    {
    if(PlayerId == mem1 || PlayerId == mem2 || PlayerId == mem3 || PlayerId == quansu)
    {
    ts.AcceptParty(PlayerId);
    ts.delay(2000);
    songuoi++;
    ts.delay(1);
    TruongGiac();
    ts.Sena(quansu);
    }
    }

    public override void PartyStop(uint PlayerId)
    {
    if(PlayerId == mem1 || PlayerId == mem2 || PlayerId == mem3 || PlayerId == quansu)
    {
    ts.Disconnect();
    }
    }

    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"); xoa 2 cai nay em bot ko duoc
    ts.Disconnect(); xoa 2 cai nay em bot ko duoc
    }
    }
    public override void PlayerOnline(uint playerid)
    {
    if(playerid>101 && playerid<10000)
    {
    debug("Game Master Online");
    ts.Disconnect();
    }
    }

    public override void FinishAnswer()
    {
    ts.delay(100);
    TruongGiac();
    }

    public override void InitBot()
    {
    AddDropItemList("viênongmật");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("viên công kích");
    }



    lam on xm giup em voi
     
  17. vipvip

    vipvip Youtube Master Race

    Tham gia ngày:
    7/2/06
    Bài viết:
    15
    các bác pro làm ơn xem giúp em ! Bot TG
    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 songuoi = 00;
    byte DisconFai = 00;
    byte myturn = 0;
    byte peturn = 0;
    byte gm=0;
    uint mem1 = 2022626;
    uint mem2 = 615732;
    uint mem3 = 1576259;
    uint quansu = 837290;

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

    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, 1, 2, 10000);
    }
    }

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

    public override void BattleStoped()
    {
    ts.delay(1);
    ts.ClickOnNPC(50);
    ts.delay(1);
    ts.ClickOnNPC(50);
    ts.delay(1);
    ts.SendEnd();
    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());
    if(DialogId==10183)
    {
    ts.delay(1);
    }
    else
    {
    ts.SendEnd();
    }
    }

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

    public override void warpFinish()
    {
    }

    void TruongGiac(){
    if(songuoi==4){
    ts.ClickOnNPC(50);
    ts.SendEnd();
    }
    }

    public override void RequestPartyAcceptFrom(uint PlayerId)
    {
    if(PlayerId == mem1 || PlayerId == mem2 || PlayerId == mem3 || PlayerId == quansu)
    {
    ts.AcceptParty(PlayerId);
    ts.delay(2000);
    songuoi++;
    ts.delay(1);
    TruongGiac();
    ts.Sena(quansu);
    }
    }

    public override void PartyStop(uint PlayerId)
    {
    if(PlayerId == mem1 || PlayerId == mem2 || PlayerId == mem3 || PlayerId == quansu)
    {
    ts.Disconnect();
    }
    }

    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"); xoa 2 cai nay em bot ko duoc
    ts.Disconnect(); xoa 2 cai nay em bot ko duoc
    }
    }
    public override void PlayerOnline(uint playerid)
    {
    if(playerid>101 && playerid<10000)
    {
    debug("Game Master Online");
    ts.Disconnect();
    }
    }

    public override void FinishAnswer()
    {
    ts.delay(100);
    TruongGiac();
    }

    public override void InitBot()
    {
    AddDropItemList("viênongmật");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("viên công kích");
    }



    lam on xm giup em voi
     
  18. gacon2006

    gacon2006 Youtube Master Race

    Tham gia ngày:
    14/3/06
    Bài viết:
    56
    script QNB nay` bot ở đâu
    có phải nhận Q gi hem
    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  

    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 = ;  
    uint idmem2 = ;  
    uint idmem3 = ;  
    uint idmem4_sena = ; 

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

    /*********************** My Attack *************************/  
    public override void MyAttack()  
    {     
    myturn++;  
    if (
    myturn == 1)  
    {  
    CharacterInfo MyChar ts.Character;   
    //NPCCombatObject Monster = findMonster();      
    ts.SendAttack(MyChar.RowMyChar.Col1210000);      
    }  
    if (
    myturn >=2)  
    {  
    CharacterInfo MyChar ts.Character;   
    //NPCCombatObject Monster = findMonster();      
    ts.SendAttack(MyChar.RowMyChar.Col1210000);  
    }  
    }  

    /******************* My Partner Attack *********************/ 
    public override void MyPartnerAttack() 

    peturn++; 
    if (
    peturn == 1

    CharacterInfo MyWarrior ts.CurrentPartner;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyWarrior.RowMyWarrior.Col1210000); 

    if (
    peturn >= 2

    CharacterInfo MyWarrior ts.CurrentPartner;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyWarrior.RowMyWarrior.Col0210000); 







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


    /********************* Battle Stoped ***********************/  
    public override void BattleStoped()  
    {      
    AutoEatFood();  
    ProcessInventoryAction();  
    CheckDisconnect();      
    Start(); 
    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());  
    if(
    DialogId==1) {ts.SelectChoice(2);ts.SendEnd();} 
    }  


    /********************* NPC Dialog ID ***********************/  
    public override void NpcDialog(ushort DialogId
    {     
    debug("Dialog ID = "+DialogId.ToString()); 
         if(
    DialogId==23084) {ts.SendEnd();} 
    else if(
    DialogId==23085) {ts.SendEnd();}  
    else if(
    DialogId==23086) {ts.SendEnd();} 
    else if(
    DialogId==23092) {ts.SendEnd();} 
    else if(
    DialogId==23083) {ts.ClickOnNPC(1);} 




    /********************* On NPC Appear ***********************/  
    public override void onNPCAppear(ushort npcmapidint xint 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 ==&& pt2 == && pt3 == && 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()  
    {   
    ts.ClickOnNPC(1); 
    }   


    /************************** Stop ***************************/  
    public override void Stop()  
    {  
    }  

    /*********************** View State ************************/  
    void ViewState()  
    {  
    debug("              -=     View   =-",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("                      Số lần gặp BTQ : "NS_count +"  Số con ma : " ts.Character.ghost ,255) ;  
    debug("              Bot Quan Ngan Binh ™     ",255) ;  
    }  


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


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

    AddDropItemList("viênongmật");  
    AddDropItemList("tựđ uốngthuốc");  
    AddDropItemList("viên công kích");  

    ViewState();  
    }  

    chỉ em với
     
  19. vipvip

    vipvip Youtube Master Race

    Tham gia ngày:
    7/2/06
    Bài viết:
    15
    bót QNB o bên hungno nhận Q o trong thành nhà bên tay trái rồi ra thành đến cái làng ở bên dưới rồi vào nhà cạnh bà gọi hồn ( ko được nhấn vào QNB ko la ko bót được) chúc bạn bót vui vẻ
     
  20. ghostvtt_itc

    ghostvtt_itc Youtube Master Race

    Tham gia ngày:
    3/10/05
    Bài viết:
    29
    Nơi ở:
    Hồ Chí Minh
    Các Pro cho mình hỏi tí nha, nếu được mong Fix lại cho em cái SC này luôn, đánh ở Cự Lộc không biết vì sao cứ đánh khoảng 5' là dis 1 lần, mình fix mãi không được mong các Pro fix hộ mình.
    Thanks Pro
    PHP:
    double DisconnectFlag 0.3;     // Disconnect when current HP is below 30% 

    double hpFractionEat 0.8;    //Eat HP when current HP<= 85% 
    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 02244272
    uint idmem2 = 01628074; 
    uint idmem3 02272432
    uint idmem4_sena 01663412

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

    /*********************** My Attack *************************/ 
    public override void MyAttack() 
    {    
    myturn++; 
    if (
    myturn == 1

    CharacterInfo MyChar ts.Character;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyChar.RowMyChar.Col1217001);     

    if (
    myturn >=2

    CharacterInfo MyChar ts.Character;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyChar.RowMyChar.Col0417001); 




    /******************* My Partner Attack *********************/ 
    public override void MyPartnerAttack() 

    peturn++; 
    if (
    peturn == 1

    CharacterInfo MyWarrior ts.CurrentPartner;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyWarrior.RowMyWarrior.Col1217001); 

    if (
    peturn >= 2

    CharacterInfo MyWarrior ts.CurrentPartner;  
    //NPCCombatObject Monster = findMonster();     
    ts.SendAttack(MyWarrior.RowMyWarrior.Col0417001); 




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



    /********************* On NPC Appear ***********************/ 
    public override void onNPCAppear(ushort npcmapidint xint 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 ==&& pt2 == && pt3 == && pt4 == 1) {ts.SetTimerOnOff(false);ts.delay(100);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(1442,215);   
    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 BabySH - Internet379 –™ =======",255) ; 



    /********************* Fishish Answer **********************/ 
    public override void FinishAnswer() 

    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(100);ts.AcceptParty(playerid);ts.delay(100);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.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");
    AddDropItemList("ThuốcNhấtĐiểm");
    AddDropItemList("Thuốc Tỉnh Não");
    AddDropItemList("Măng khô");
    AddDropItemList("Rượu vàng");
    AddDropItemList("Thuốc Bổ Huyết");
    AddDropItemList("Thuốc Lục Vị");
    ViewState(); 
    }  
     
Trạng thái chủ đề:
Không mở trả lời sau này.

Chia sẻ trang này