Em muốn post lại cái scrip full của chủ pt và mem ở LuLong2 cho chicken:D

Thảo luận trong 'TS Online' bắt đầu bởi hunterkillua, 6/5/06.

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

    hunterkillua Youtube Master Race

    Tham gia ngày:
    19/11/05
    Bài viết:
    2
    Đây là của chủ pt(xin nói trước là em chỉ pót lại những cái mà mấy anh pro đã pót.Do mấy gà cùng sever đề nghị.)


    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 = 30; // 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 = 12421;
    double mapid2 = 12815;
    byte warpid1 = 2;
    byte warpid2 = 1;

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

    uint idmem1 = 2272246;
    uint idmem2 = 852026;
    uint idmem3 = 2280616;
    uint idmem4_sena = 1160529;

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

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

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


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


    /********************* Battle Stopped ***********************/
    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 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(622,475);
    ts.Warp(warpid1);
    } else
    if (ts.Character.mapid == mapid2) {
    ts.Warp(warpid2);
    return;
    }
    }


    /************************** Stop ***************************/
    public override void Stop()
    {
    for(byte i=0;i<25;i++){
    Slot oSlot = (Slot)ts.MyItems;
    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);
    }
    }


    /*********************** 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("======= Edit by nhocbaton =======",255) ;
    }


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


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

    //public override void RequestPartyAcceptFrom(uint playerid)
    //{
    //if (playerid == idmem1) {ts.delay(500);ts.AcceptParty(playerid); pt1 = 1;debug(playerid + " Johned team");}
    //if (playerid == idmem2) {ts.delay(500);ts.AcceptParty(playerid); pt2 = 1;debug(playerid + " Johned team");}
    //if (playerid == idmem3) {ts.delay(500);ts.AcceptParty(playerid); pt3 = 1;debug(playerid + " Johned team");}
    //if (playerid == idmem4_sena) {ts.delay(500);ts.AcceptParty(playerid);ts.delay(5 00);ts.Sena(playerid); pt4 = 1;debug(playerid + " Johned team, Quân Sư = "+playerid);}
    //if (pt1 == 1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {debug("Party Full -> Start ");Start();}
    //}


    /************************ Init Bot *************************/
    public override void InitBot()
    {
    ts.SetReconnectTime(2);
    ts.SetMaxIdleTime(10);
    ts.SetTimerOnOff(true);
    if (ts.Character.mapid == mapid2) {ts.Warp(warpid2);}
    AddDropItemList("viênongmật");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("viên công kích");
    ViewState();
    }
     
  2. Bức Xúc

    Bức Xúc Youtube Master Race

    Tham gia ngày:
    13/3/06
    Bài viết:
    13
    uhm
    Cái Scrip này đúng đấy.Bác nào có nhu cầu thì cứ copy về mà dùng.
     
  3. Bức Xúc

    Bức Xúc Youtube Master Race

    Tham gia ngày:
    13/3/06
    Bài viết:
    13
    Thực ra scrip này đã có sẵn trong scrip full.Nhưng em mún post lại cho các bác cùng coi.
    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 = 12421;
    double mapid2 = 12815;
    byte warpid1 = 2;
    byte warpid2 = 1;

    byte pt1 = 0;
    byte pt2 = 0;
    byte pt3 = 0;
    byte pt4 = 0;

    uint idchupt = 101430;

    public override void MyAttack()
    {
    turna++;
    if (turna == 1)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 1, 17001);
    }
    if (turna >=2)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 17001);
    }
    }
    /*public override void MyPartnerAttack()
    {
    turnb++;
    if (turnb == 1)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 12003);
    }
    if (turnb >= 2)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 17001);
    }
    }*/


    /********************* 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 npcmapid, int x, int y)
    {
    }


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


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


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



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


    /********************* Fishish Answer **********************/
    public override void PlayerOnline(uint uid,ushort mapid)
    {
    if (uid == idchupt)
    {
    debug(idchupt + " Is Now Online, RequestParty ......");
    //if (ts.Character.mapid == 23000) {ts.Warp(1);}
    ts.RequestParty(idchupt);
    }
    }

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

    public override void RequestPartyAcceptFrom(uint playerid)
    {
    }

    /*********************** Party Stop ************************/
    public override void PartyStop(uint playerid)
    {
    if (playerid == 101430) {debug(playerid+ "Rời khởi đội ngũ");}if (ts.Character.mapid == mapid2) { ts.Warp(warpid2); }
    if (playerid == 2272246) {debug(playerid+ "Rời khởi đội ngũ");}
    if (playerid == 852026) {debug(playerid+ "Rời khởi đội ngũ");}
    if (playerid == 2280616) {debug(playerid+ "Rời khởi đội ngũ");}
    if (playerid == 1160529) {debug(playerid+ "Rời khởi đội ngũ");}
    }

    /************************ Init Bot *************************/
    public override void InitBot()
    {
    ts.SetReconnectTime(3);
    ts.SetMaxIdleTime(15);
    if (ts.Character.mapid == mapid2) { ts.Warp(warpid2); }
    ts.RequestParty(idchupt);
    Stop();
    }
    em chỉ post lại của mấy anh đã dùng trước thui
     
  4. anhchangvotinh_1

    anhchangvotinh_1 Youtube Master Race

    Tham gia ngày:
    10/3/06
    Bài viết:
    6
    bot q thai thi tu la cai nay nhung em ko hieu may cho
    /********************* NPC Dialog ID ***********************/
    public override void NpcDialog(ushort DialogId)
    {
    debug("Dialog ID = "+DialogId.ToString());
    if(DialogId==10885) {ts.SendEnd();} cai id nay cua ai
    else if(DialogId==10886) {ts.SendEnd();} cai id nay cua ai
    else if(DialogId==10887) {ts.SendEnd();} cai id nay cua ai
    else if(DialogId==10883) {ts.ClickOnNPC(1);} cai id nay cua ai tai sao phai click npc 1
    }
    --------------------------------------------------------
    lam on tra loi nhanh dum em
     
  5. Jukanius

    Jukanius Đào Viên Tiểu Họa Gia Lão Làng GVN

    Tham gia ngày:
    22/1/05
    Bài viết:
    4,500
    Nơi ở:
    Hà Nội
    //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();}

    sửa lại chỗ id sena , lùi số 5 00 = 500
    //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ư
     
  6. Gillian_ly

    Gillian_ly Donkey Kong

    Tham gia ngày:
    21/2/05
    Bài viết:
    356
    Nơi ở:
    Trác Quận
    em cũng xin đóng góp cái script cự lôc đang dùng ^^
    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 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 2103692
    uint idmem2 2281190
    uint idmem3 2062558
    uint idmem4_sena 2058950

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

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

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

    if (
    myturn >=2

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




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

    peturn++; 
    if (
    peturn == 1

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

    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(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(1542,180);   
    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(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("viênongmật"); 
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("Rựu Vàng");
    AddDropItemList("Thuốc Lục Vị");
    AddDropItemList("Thuốc Nhất Điểm");
    AddDropItemList("viên công kích"); 
    ViewState(); 
    }  
    Members:
    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;


    /***** Chinh sua ID chu Party o day *****/

    uint idchupt 574875;

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

    /*********************** My Attack *************************/
    public override void MyAttack()
    {   
    myturn++;
    if (
    myturn == 1)
    {
    CharacterInfo MyChar ts.Character
    //NPCCombatObject Monster = findMonster();    
    ts.SendAttack(MyChar.RowMyChar.Col0210000);    
    }
    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.Col0212003);
    }
    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.delay(3000);
    ts.Answer(ans_index);
    }


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


    /************************* Start ***************************/
    public override void Start()
    {
    debug("Request Party ..........");
    ts.RequestParty(idchupt);
    }


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


    /********************* Accepted Party **********************/
    public override void AcceptedParty(uint playerid)
    {
    if (
    playerid == idchupt) {debug("Join to  " playerid);}
    }


    /************************ Party Stop ***********************/
    public override void PartyStop(uint playerid)
    {
    if (
    playerid == idchupt) {debug(idchupt"  Giải tán đội ngũ ...");}
    }


    /************************ Init Bot *************************/
    public override void InitBot()
    {
    if (
    ts.Character.mapid==12521) {ts.Warp(5);}    
    ts.delay(1000);    
    AddDropItemList("viênongmật");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("viên công kích");
    AddDropItemList("ThuốcNhấtĐiểm");
    ViewState();
    debug("Login Okie");
    }  
     
Trạng thái chủ đề:
Không mở trả lời sau này.

Chia sẻ trang này