thắc mắc về Leng@??Mong các pro giúp giùm!!

Thảo luận trong 'TS Online' bắt đầu bởi gameboy113, 22/4/06.

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

    gameboy113 Mr & Ms Pac-Man

    Tham gia ngày:
    16/7/05
    Bài viết:
    231
    Nơi ở:
    ..................
    em đã copy đoạn srip bot Lu Long khẩu cửa 2 của "scrip leng@ full" về,nhưng không hiểu sao nó không đánh,login vô xong đứng nhìn không à xin các pro giúp giùm ạ,em xin cảm ơn! :'>

    Xin trả lời nhanh chút nha em đang cần bot gấp!! ::)
     
  2. gameboy113

    gameboy113 Mr & Ms Pac-Man

    Tham gia ngày:
    16/7/05
    Bài viết:
    231
    Nơi ở:
    ..................
    a` em xin lỗi,quên bot đoạn srip lên

    đây là của chủ pt

    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;

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

    double mapid1 = 12421;
    double mapid2 = 12815;
    byte warpid1 = 2;
    byte warpid2 = 1;


    uint idchupt = 01364987;

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

    uint idmem1 = 2228440;
    uint idmem2 = 372169;
    uint idmem3 = 435896;
    uint idmem4_sena = 553967;



    public override void MyAttack()
    {
    turna++;
    if (turna == 1)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 0, 10000); // gà đánh thường, nếu bắn hỏa tiễn thì thay lại là 12003
    }
    if (turna >=2)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 17001); // turn 2 skill chạy trốn
    }
    }
    public override void MyPartnerAttack()
    {
    turnb++;
    if (turnb == 1)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 1, 17001); // bắn hỏa tiễn
    }
    if (turnb >= 2)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 10000); // turn 2 def
    }
    }


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


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


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


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


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


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

    public override void PlayerOnline(uint playerid,ushort mapid)
    {
    ts.RequestParty(idchupt);
    }


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

    public override void RequestPartyAcceptFrom(uint playerid)
    {
    ts.AcceptParty(idchupt);
    }

    /*********************** Party Stop ************************/
    public override void PartyStop(uint playerid)
    {
    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()
    {
    ts.SetReconnectTime(3);
    ts.SetMaxIdleTime(15);
    AddDropItemList("viênongmật");
    AddDropItemList("Dâu đỏ");
    AddDropItemList("Táo nhỏ");
    AddDropItemList("Mật Ý Nhân");
    AddDropItemList("Nhị Quoa đầu");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("Táo nhỏ");
    AddDropItemList("Bành Bột Mì");
    AddDropItemList("viên công kích");
    Stop();
    ts.RequestParty(idchupt);
    }


    Còn đây là của mem:

    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;

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

    uint idchupt = 272770;

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

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




    public override void MyAttack()
    {
    turna++;
    if (turna == 1)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000); // gà đánh thường, nếu bắn hỏa tiễn thì thay lại là 12003
    }
    if (turna >=2)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 14002); // turn 2 skill chạy trốn
    }
    }
    public override void MyPartnerAttack()
    {
    turnb++;
    if (turnb == 1)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 1, 10005); // bắn hỏa tiễn
    }
    if (turnb >= 2)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 17001); // turn 2 def
    }
    }


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


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


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


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


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


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

    public override void PlayerOnline(uint playerid,ushort mapid)
    {
    ts.RequestParty(idchupt);
    }


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

    public override void RequestPartyAcceptFrom(uint playerid)
    {
    ts.AcceptParty(idchupt);
    }

    /*********************** Party Stop ************************/
    public override void PartyStop(uint playerid)
    {
    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()
    {
    ts.SetReconnectTime(3);
    ts.SetMaxIdleTime(15);
    AddDropItemList("viênongmật");
    AddDropItemList("Dâu đỏ");
    AddDropItemList("Táo nhỏ");
    AddDropItemList("Mật Ý Nhân");
    AddDropItemList("Nhị Quoa đầu");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("Táo nhỏ");
    AddDropItemList("Bành Bột Mì");
    AddDropItemList("viên công kích");
    Stop();
    ts.RequestParty(idchupt);
    }


    xin các pro ra tay giúp em :P
     
  3. AngleOfLove

    AngleOfLove Youtube Master Race

    Tham gia ngày:
    31/7/05
    Bài viết:
    34
    Thử cái này xem

    Script chủ pt

    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

    double mapid1 = 12421;
    double mapid2 = 12815;
    byte warpid1 = 2;
    byte warpid2 = 1;

    string state="";

    byte pt_count = 0;
    byte turna = 0;
    byte turnb = 0;

    uint tv1 = 0; //là QS luôn
    uint tv2 = 0;
    uint tv3 = 0;
    uint tv4 = 0;

    uint maxpt = 0; //so thanh vien



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


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

    public override void PreBattleStopped()
    {
    ts.delay(2000);
    }

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


    public override void doRecvQuestion()
    {
    state="BTQ";
    }
    public override void ResponseAnswer()
    {
    int dtime=get_random(1,5);
    debug("Delay "+dtime.ToString()+" before answer.");
    ts.delay(dtime*1000);
    string tmp=ts.LastQuestion.Replace("=?","");
    int ans=ts.Eval(tmp);
    byte ans_index=Convert.ToByte(ts.LastAnswers[ans.ToString()]);
    debug("Answer choice:"+ans_index.ToString());
    ts.Answer(ans_index);
    }

    public override void onPlayerWalk(uint uid, ushort x, ushort y)
    {
    if (uid > 1 && uid < 501) {
    debug("GM den roi chay thoi",0xFF0000);

    ts.Disconnect(false);
    }
    }

    public override void PartyStop(uint playerid)
    {
    if (playerid == tv1 || playerid == tv2 || playerid == tv3 || playerid == tv4) {ts.Disconnect();}
    }



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



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

    public override void AcceptedParty(uint playerid)
    {
    if(playerid == tv1) {ts.Sena(playerid);}
    pt_count++;
    if(pt_count==maxpt){
    debug(" So thanh vien la : " + pt_count ,0x0000FF);
    Start();}
    else{
    debug(" So thanh vien la : " + pt_count ,0x0000FF);
    }
    }



    /********************** Warp Finish ************************/
    public override void warpFinish()
    {
    Start();
    }


    /************************* Start ***************************/
    public override void Start()
    {
    if (pt_count == maxpt)
    {
    if (ts.Character.mapid == mapid1) {
    ts.Walk(622,475);
    ts.Warp(warpid1);
    } else
    if (ts.Character.mapid == mapid2) {
    ts.Warp(warpid2);
    return;
    }
    }
    }

    /********************* Fishish Answer **********************/
    public override void FinishAnswer()
    {
    Start();
    }

    void ViewState()
    {
    debug(" Số con ma : " + ts.Character.ghost ,0xFF0000) ;
    }





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

    ts.SetTimerOnOff(true);
    ts.SetReconnectTime(3);
    ts.SetMaxIdleTime(20);

    if (ts.Character.mapid == mapid2) {ts.Warp(warpid2);}
    AddDropItemList("viênongmật");
    AddDropItemList("Dâu đỏ");
    AddDropItemList("Táo nhỏ");
    AddDropItemList("Mật Ý Nhân");
    AddDropItemList("Nhị Quoa đầu");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("Táo nhỏ");
    AddDropItemList("Bành Bột Mì");
    AddDropItemList("viên công kích");
    ViewState();
    }



    Đây là script mem


    double DisconnectFlag = 0.3; // Disconnect when current HP is below 30%

    double hpFractionEat = 0.8; //Eat HP when current HP<= 80%
    double spFractionEat = 0.3;
    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;
    string state="";
    byte turna = 0;
    byte turnb = 0;



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

    uint idchupt = 0;

    public override void MyAttack()
    {
    turna++;
    if (turna == 1)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 12003);
    }
    if (turna >=2)
    {
    CharacterInfo MyChar = ts.Character;
    //NPCCombatObject Monster = findMonster();
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 1, 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, 1, 17001);
    }
    }


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


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


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




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

    AddDropItemList("viênongmật");
    AddDropItemList("Dâu đỏ");
    AddDropItemList("Táo nhỏ");
    AddDropItemList("Mật Ý Nhân");
    AddDropItemList("Nhị Quoa đầu");
    AddDropItemList("tựđ uốngthuốc");
    AddDropItemList("Táo nhỏ");
    AddDropItemList("Bành Bột Mì");
    AddDropItemList("viên công kích");
    ViewState();

    debug("Login Okie");

    }
     
  4. gameboy113

    gameboy113 Mr & Ms Pac-Man

    Tham gia ngày:
    16/7/05
    Bài viết:
    231
    Nơi ở:
    ..................
    cám ơn bạn nha!! mình chạy được rồi,nhưng con gà bị diss hoài à,nhưng cũng cám ơn bạn nha :p

    Mod khóa cái topic này lại giùm em.hem thui em có sẹo à.Save tí mp
     
  5. Mot lan vi em

    Mot lan vi em Youtube Master Race

    Tham gia ngày:
    11/4/06
    Bài viết:
    13
    Nơi ở:
    An Giang
    bạn ơi viết mấy cái đó vào đâu vậy chỉ mình với mình cũng mới biết chơi thôi
     
Trạng thái chủ đề:
Không mở trả lời sau này.

Chia sẻ trang này