Only Scrip TrueBot + Legn@

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

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

    zzPhiHoZZ Youtube Master Race

    Tham gia ngày:
    1/5/06
    Bài viết:
    17
    Nơi ở:
    hcm
    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 die_count = 0;
    byte pet_die_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 = 0;
    uint idmem2 = 0;
    uint idmem3 = 0;
    uint idmem4_sena = 0;

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

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


    /******************* 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, 18001);
    }
    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 Stoped ***********************/
    public override void BattleStopped()
    {
    AutoEatFood();
    ProcessInventoryAction();
    CheckDisconnect();
    ViewState();
    Start();
    }


    /******************* 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(2000);
    ts.Answer(ans_index);
    }


    /******************** NPC Dialog Menu **********************/
    debug("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.ClickOnNPC(1);
    ts.ClickOnNPC(1);
    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);}
    }


    /********************* 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 ***************************/
    public override void Start()
    {
    ts.ClickOnNPC(1);
    }


    /************************** 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(5000);
    Start();
    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(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);
    AddDropItemList("viênongmật");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("viên công kích");
    AutoEatFood();
    ViewState();
    }


    /PHP
    sao em bót giãn dung ko được vậy anh đội em có 1 ngươi` ah` anh chỉnh dùm em với
     
  2. thantinhye

    thantinhye Mr & Ms Pac-Man

    Tham gia ngày:
    26/10/04
    Bài viết:
    213
    Nơi ở:
    FarIsland
    Mip oi
    giup tui voi tui dang tim`hieu chinh?lam`sao de no'dung'yen theo cai'toa.do ma`minh`chi?dinh.danh hoai`luon
    giong'nhu o cau`TC ma`danh ben ngon.nui bat'son tac
    gio`tui bot CuLoc nhung tui muon'no'dung'yen o tren ko xuong'chinh?lam`sao ha?Mip tui tim`hoai`ko ra
    Mong Mip giup , day la`script cua tui

    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 = 839307;
    uint idmem2 = 1780203;
    uint idmem3 = 2293974;
    uint idmem4_sena = 830692;

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

    /*********************** My Attack *************************/
    public override void MyAttack()
    {
    myturn++;
    if (myturn == 1)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 1, 17001);
    }
    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, 1, 2, 12003);
    }
    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(1462,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 ProAcMa - Server HuaChu–™ =======",255) ;
    }


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


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

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


    /************************ Init Bot *************************/
    public override void InitBot()
    {
    ts.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");
    AddContributeItemList("Thuốc Lục Vị");
    AddContributeItemList("Thuốc Bổ Huyết");
    AddContributeItemList("ThuốcNhấtĐiểm");
    AddContributeItemList("Măng khô");
    AddDropItemList("viênongmật");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("viên công kích");
    ViewState();
    }
     
  3. thantinhye

    thantinhye Mr & Ms Pac-Man

    Tham gia ngày:
    26/10/04
    Bài viết:
    213
    Nơi ở:
    FarIsland
    Mip oi
    giup tui voi tui dang tim`hieu chinh?lam`sao de no'dung'yen theo cai'toa.do ma`minh`chi?dinh.danh hoai`luon
    giong'nhu o cau`TC ma`danh ben ngon.nui bat'son tac
    gio`tui bot CuLoc nhung tui muon'no'dung'yen o tren ko xuong'chinh?lam`sao ha?Mip tui tim`hoai`ko ra
    Mong Mip giup , day la`script cua tui

    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 = 839307;
    uint idmem2 = 1780203;
    uint idmem3 = 2293974;
    uint idmem4_sena = 830692;

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

    /*********************** My Attack *************************/
    public override void MyAttack()
    {
    myturn++;
    if (myturn == 1)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 1, 17001);
    }
    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, 1, 2, 12003);
    }
    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(1462,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 ProAcMa - Server HuaChu–™ =======",255) ;
    }


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


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

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


    /************************ Init Bot *************************/
    public override void InitBot()
    {
    ts.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");
    AddContributeItemList("Thuốc Lục Vị");
    AddContributeItemList("Thuốc Bổ Huyết");
    AddContributeItemList("ThuốcNhấtĐiểm");
    AddContributeItemList("Măng khô");
    AddDropItemList("viênongmật");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("viên công kích");
    ViewState();
    }
    day la`toa. do tui can`de?no'dung'yen danh hoai`luon
    ts.Walk(1677,225) mong Mip giup tui
    cam on rat nhieu` ::(
     
  4. DuongVănTruong

    DuongVănTruong Guest

    Tham gia ngày:
    Bài viết:
    0
    Nơi ở:
    Thiên Đường
    Bot Cự Lộc đứng yên đc chắc tui gọt đầu đi tu mất :))

    Thân!

    save MP save MP save MP save MP save MP save MP save MP save MP save MP save MP save MP
     
  5. tutrungbuu

    tutrungbuu Youtube Master Race

    Tham gia ngày:
    20/1/05
    Bài viết:
    6
    cac bac oi chi dum toi cai'
    toi lay' ve` roi`cung copy roi`ma`no' cung ko chay no' cu' bao'loi~ nhu vay ko a`
    the dynamic link library mscoree.dll could not be found in the specified path
    C:\legna;.;C:\WINN\Syatem32;C:\WINNT\system;C:\WINNT;C:\WINNT\system32;C:\WINNT;C\WINNTSytem\wbem.
    no' bao' nhu vay la` sao toi cung hieu xin' cac' bac' chi toi` hay chi~ giup toi luon di chot'
    toi xin cac' giup' dum` toi di ma`
    lam on nha cac' bac' oi
     
  6. tutrungbuu

    tutrungbuu Youtube Master Race

    Tham gia ngày:
    20/1/05
    Bài viết:
    6
    cac anh oi chi dan cho em 1 ti' di cac anh
    chi cho em thi` chi~ cho chot' viet' dum` em cai'script thi` cho em luon lik de em
    dwon ve de sai chu em ko biet' gi` ve` lgen sao ma` viet' sao ma`bun de sai` day
    may' anh lam`on giup' dum luon nha
     
  7. TrinhTuLan

    TrinhTuLan Youtube Master Race

    Tham gia ngày:
    19/11/05
    Bài viết:
    66
    Cái script legna cũ khi chuyển qua xài bản mới thì nó báo lỗi, phải chỉnh sửa cái gì để đánh đc vậy các bạn
     
  8. vn01501640

    vn01501640 Youtube Master Race

    Tham gia ngày:
    7/5/06
    Bài viết:
    26
    xin ca bac coi dum` em sao no danh 1p dis 1lan .luc dau duoc 370+ .nhung ki bi ma thi no con co 150+ .xin cac bac lan sao cho no kho an ma vay[/QUOTE]
     
  9. vn01501640

    vn01501640 Youtube Master Race

    Tham gia ngày:
    7/5/06
    Bài viết:
    26
    day la mem
     
  10. TheOneTS

    TheOneTS Mr & Ms Pac-Man

    Tham gia ngày:
    27/9/05
    Bài viết:
    161
    undefined
    Ku Trường này chắc dễ phải gọt đầu đi tu quá !
    Bot cự lộc vẫn đứng yên được đó :;)

    Thử sài cái này nhé (sài xong nhớ gọt tóc chụp ảnh lên forum nha :hug: )
    Nghỉ TS lên phá phách tí chơi :))
    Lưu ý: Ai mà sài cái này nhớ chạy chủ pt vào sát gate kô vào trại ráng chịu đó :D
    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 = 92625;
    
    /*************************************/
    
    /*********************** 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, 10000);
    }
    }
    
    
    /******************* My Partner Attack *********************/
    public override void MyPartnerAttack()
    {
    peturn++;
    if (peturn == 1)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner; 
    //NPCCombatObject Monster = findMonster();    
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 12003);
    }
    if (peturn >= 2)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner; 
    //NPCCombatObject Monster = findMonster();    
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 1, 2, 12003);
    }
    }
    
    
    /********************* Battle Started **********************/
    public override void BattleStarted()
    {
    battle_count++;
    myturn = 0;
    peturn = 0;
    }
    
    
    /********************* Battle Stoped ***********************/
    public override void BattleStoped()
    {    
    AutoEatFood();
    ProcessInventoryAction();
    CheckDisconnect();    
    ViewState();
    BotCL();
    }
    
    void BotCL()
    {
    ts.ClickOnNPC(1);
    ts.Warp(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());
    }
    
    
    /********************* 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()
    { 
    if (ts.Character.mapid == 12013) {  
    ts.Warp(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);
    BotCL();
    }
    
    /************************ Init Bot *************************/
    public override void InitBot()
    {    
    ts.SetTimerOnOff(true);    
    ViewState();
    }  
     
  11. PhThanhTai

    PhThanhTai Mr & Ms Pac-Man

    Tham gia ngày:
    26/6/06
    Bài viết:
    122
    Nơi ở:
    TP.HCM
    script TruongGiac không bị DialogID nè bạn
    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

    uint sotrandanh 0

    byte songuoi 00

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

    uint mem1 1780203
    uint mem2 551315
    uint mem3 2226395
    uint quansu 830692

    uint time 0

    uint mapid1 12012
    uint mapid2 12011
    byte warpid1 1
    byte warpid2 11

    byte dem 0

    bool bagoihon false

    public 
    override void MyAttack()  
    {  
    CharacterInfo MyChar ts.Character;  
    ts.SendAttack(MyChar.RowMyChar.Col0117001);  
    }  
    public 
    override void MyPartnerAttack()  
    {  
    CharacterInfo MyWarrior ts.CurrentPartner;  
    ts.SendAttack(MyWarrior.RowMyWarrior.Col0210000);  
    }  

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

    public 
    override void BattleStopped() 
    {  
    AutoEatFood(); 
    ProcessInventoryAction(); 
    sotrandanh++; 
    debug("So Tran Danh : " sotrandanh); 
    if(
    ts.Character.ghost != 0

    debug("An con ma kia di giai thoi",0xFF0000); 
    ts.Disconnect(); 


    ts.ClickOnNPC(50); 
    ts.ClickOnNPC(50); 




    public 
    override void doRecvQuestion() 

    time 0
    ts.SetTimerOnOff(false); 
    if(
    bagoihon == true

    dem++; 



    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); 
    if(
    dem == 3

    dem 0
    bagoihon false
    ts.SendEnd(); 



    public 
    override void FinishAnswer() 


    Start(); 



    public 
    override void NpcDialogMenu(ushort DialogId

    debug("Dialog Menu ID="+DialogId.ToString()); 
    if(
    DialogId==4

    ts.SelectChoice(1); 

    ts.SendEnd(); 


    public 
    override void NpcDialog(ushort DialogId
    {  
    debug("Dialog ID="+DialogId.ToString()); 
    if(
    DialogId==10183

    ts.SetTimerOnOff(true);  
    time 0


    else  

    if(
    DialogId==10140 || DialogId==12215 || DialogId==12119

    ts.SetTimerOnOff(true);  
    time 0;  
    ts.SendEnd(); 
    }  
    else 

    if(
    DialogId == 10750
    {  
    ts.SendEnd(); 

    ts.SendEnd(); 

    ts.Disconnect(); 

    else 

    ts.SendEnd(); 





    public 
    override void onNPCAppear(ushort npcmapidint xint y
    {  


    public 
    override void OnTimer() 

    if(
    pt1 ==&& pt2 == && pt3 == && pt4 == 1

    time++; 
    if(
    time 3

    Start(); 
    time 0
    ts.SetTimerOnOff(false); 


    else 

    if (
    pt1 == 0) {ts.AcceptParty(mem1);} 
    if (
    pt2 == 0) {ts.AcceptParty(mem2);} 
    if (
    pt3 == 0) {ts.AcceptParty(mem3);} 
    if (
    pt4 == 0) {ts.AcceptParty(quansu);} 



    public 
    override void warpFinish() 
    {  
    if(
    ts.Character.ghost == 0


    ts.Walk(342,255); 

    CheckMem(); 

    else 

    TuDongGiaiMa(); 



    void CheckMem(){ 
    if(
    songuoi==4){ 
    ts.ClickOnNPC(50); 


    else 

    debug("So thanh vien chua du ko the danh dc",0xFF0000); 



    public 
    override void RequestPartyAcceptFrom(uint PlayerId



    public 
    override void PartyStop(uint PlayerId

    if(
    PlayerId == mem1 || PlayerId == mem2 || PlayerId == mem3 || PlayerId == quansu
    {  
    debug(PlayerId " da roi khoi party"); 
    time 0
    ts.SetTimerOnOff(false); 
    ts.Disconnect(); 



    public 
    override void AcceptedParty(uint playerid

    if (
    playerid == mem1

    debug(playerid " gia nhap doi ngu"); 
    songuoi++; 
    pt1 1

    if (
    playerid == mem2

    debug(playerid " gia nhap doi ngu"); 
    songuoi++; 
    pt2 1

    if (
    playerid == mem3)  

    debug(playerid " gia nhap doi ngu"); 
    songuoi++; 
    pt3 1

    if (
    playerid == quansu)  

    debug(playerid " gia nhap doi ngu"); 
    songuoi++; 
    pt4 1
    ts.Sena(quansu); 
    debug(playerid " lam quan su"); 

    if (
    pt1 == && pt2 == && pt3 == && pt4 == 1)  

    ts.SetTimerOnOff(false); 

    debug("Doi ngu da day",0xFF0000); 
    Start(); 



    public 
    override void Start() 

    CheckMem(); 


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

    public 
    override void onPlayerWalk(uint uidushort xushort y

    }  

    public 
    override void PlayerOnline(uint uid,ushort mapid
    {  
    if(
    uid>101 && uid<10000)  
    {  
    debug("Game Master Online");  
    ts.Disconnect(); 


    public 
    override void InitBot() 
    {  
    ts.SetReconnectTime(1); 
    if(
    ts.Character.ghost != 0

    TuDongGiaiMa(); 

    else 

    ts.SetTimerOnOff(true); 
    if(
    ts.Character.mapid == mapid2

    ts.Warp(warpid2); 


    }  

    void TuDongGiaiMa() 

    if(
    ts.Character.ghost != 0

    if (
    ts.Character.mapid == mapid1)  
    {  
    ts.Warp(warpid1); 
    }  
    else 

    if (
    ts.Character.mapid == mapid2
    {  
    ts.Walk(382,355); 

    bagoihon true
    ts.ClickOnNPC(9); 



    }  
     
  12. bogiathemthit

    bogiathemthit Mr & Ms Pac-Man

    Tham gia ngày:
    13/11/05
    Bài viết:
    101
    Nơi ở:
    Tiên Giới
    oh good quá bạn ơi, mấy cái script kia ko xài đc, cái bạn mới post thì ok rồi, nhưng chưa test nữa, bạn gửi cho mình script Mems luôn đc ko :D.
    THX 8-x
     
  13. VietNamAngel

    VietNamAngel Youtube Master Race

    Tham gia ngày:
    1/7/06
    Bài viết:
    2
    ô ! ko hiêu? tai sao load về xong phan legn@ đóa thì lại ko xài dc ! vi`sa o vay. ??
     
  14. bogiathemthit

    bogiathemthit Mr & Ms Pac-Man

    Tham gia ngày:
    13/11/05
    Bài viết:
    101
    Nơi ở:
    Tiên Giới
    sao lại ko đc, bạn nói rõ xem !
     
  15. anhtuanvu

    anhtuanvu Youtube Master Race

    Tham gia ngày:
    14/8/05
    Bài viết:
    7
    cac anh oi em ko sao cho nick ga lever 1 nhay cung duoc cac anh chi bao dum em voi *(agi nick ga ko the bang agi chu pt)
     
  16. bogiathemthit

    bogiathemthit Mr & Ms Pac-Man

    Tham gia ngày:
    13/11/05
    Bài viết:
    101
    Nơi ở:
    Tiên Giới
    agi ko bằng nhau + pt lvl thấp sao đánh đc .
     
  17. bogiathemthit

    bogiathemthit Mr & Ms Pac-Man

    Tham gia ngày:
    13/11/05
    Bài viết:
    101
    Nơi ở:
    Tiên Giới
    Bạn ThanhTai sẵng cho mình script MEM Đánh TG auto pt sau khi dis luôn nha. Mấy cái script ngoài kia copy về toàn bị lỗi :s
     
  18. bogiathemthit

    bogiathemthit Mr & Ms Pac-Man

    Tham gia ngày:
    13/11/05
    Bài viết:
    101
    Nơi ở:
    Tiên Giới
    30 char 30 char 30 char 30 char 30 char thx
     
Trạng thái chủ đề:
Không mở trả lời sau này.

Chia sẻ trang này