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. vuchidung

    vuchidung Youtube Master Race

    Tham gia ngày:
    8/7/05
    Bài viết:
    33
    may bac cho em sc cua chu pt va mem cua gate 1 thanh tuyết đi.
    may ban sc kia toan hong ca chan wa
     
  2. ReTurnOnce

    ReTurnOnce Youtube Master Race

    Tham gia ngày:
    13/4/06
    Bài viết:
    29
    bac duong van truong oi. lam on coi dum cai sciprt bot cu loc nay voi'. tu nhien danh mot hoi no lai bao loi~. va tat luon sua so? legna. phai bat len thi chay. hau con nao cung bi nhung nhiue nhat la chu pt
    sciprt day
    day la scciprt chu 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 NS_count = 0;
    byte battle_count = 0;
    byte turna = 0;
    byte turnb = 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;

    uint idchupt = 0;

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

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


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


    /********************* Battle Stopped ***********************/
    public override void BattleStoped()
    {
    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 npcmapid, int x, int y)
    {
    }


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


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


    /************************* Start ***************************/
    public override void Start()
    {
    if (ts.Character.mapid == mapid1) {
    ts.Walk(1542, 215);
    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(" Số lần gặp BTQ : "+ NS_count +" Số con ma : " + ts.Character.ghost ,255) ;
    debug("******************************************************************************",255) ;
    }

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


    /********************* 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 + " Mời Gia Nhập Đội Ngũ");}
    if (playerid == idmem2) {ts.delay(500);ts.AcceptParty(playerid); pt2 = 1;debug(playerid + " Mời Gia Nhập Đội Ngũ");}
    if (playerid == idmem3) {ts.delay(500);ts.AcceptParty(playerid); pt3 = 1;debug(playerid + " Mời Gia Nhập Đội Ngũ");}
    if (playerid == idmem4_sena) {ts.delay(500);ts.AcceptParty(playerid);ts.Sena(playerid); pt4 = 1;debug(playerid + " Mời Gia Nhập Đội Ngũ và được làm QS");}
    if (pt1 == 1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {ts.delay(500);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()
    {
    ts.SetReconnectTime(3);
    ts.SetMaxIdleTime(15);
    if (ts.Character.mapid == mapid2) {ts.Warp(warpid2);}
    AddDropItemList("viênongmật");
    AddDropItemList("tựð uốngthuốc");
    AddDropItemList("viên công kích");
    }
    vay day la sciprt cua 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;

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

    uint idmem1 = 0;
    uint idmem2 = 0;
    uint idmem3 = 0;
    uint idmem4_sena = 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, 4, 10000);
    }
    }
    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, 10000);
    }
    }


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


    /********************* Battle Stopped ***********************/
    public override void BattleStoped()
    {
    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()
    {
    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);
    }
    }


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

    public override void PlayerOnline(uint playerid)
    {
    if (playerid == idchupt) {ts.delay(500);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()
    {
    ts.SetReconnectTime(3);
    ts.SetMaxIdleTime(15);
    if (ts.Character.mapid == mapid2) { ts.Warp(warpid2); }
    ts.RequestParty(idchupt);
    }
    con day la sciprt cua dao tau
    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 = 0;

    uint idmem1 = 0;
    uint idmem2 = 0;
    uint idmem3 = 0;
    uint idmem4_sena = 0;


    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, 4, 18001);
    }
    }
    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, 18001);
    }
    }


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


    /********************* Battle Stopped ***********************/
    public override void BattleStoped()
    {
    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()
    {
    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);
    }
    }


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

    public override void PlayerOnline(uint playerid)
    {
    if (playerid == idchupt) {ts.delay(500);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()
    {
    ts.SetReconnectTime(3);
    ts.SetMaxIdleTime(15);
    if (ts.Character.mapid == mapid2) { ts.Warp(warpid2); }
    ts.RequestParty(idchupt);
    }
    mong bac coi dum`
    thx nhieu :D
     
  3. ReTurnOnce

    ReTurnOnce Youtube Master Race

    Tham gia ngày:
    13/4/06
    Bài viết:
    29
    va lam sao de cho no danh nhanh hon dc vay? minh thay team minh danh cham lam'
     
  4. Angel_18

    Angel_18 Youtube Master Race

    Tham gia ngày:
    6/4/06
    Bài viết:
    33
    Anh nhocbaton oi cai scpit Ngan Quan Binh đánh thì rất la 1` tốt nhưng gặp BTQ trả lời xong là nó dis ah` kiểm tra xem nó bi gì nha
     
  5. SpinLove

    SpinLove Mr & Ms Pac-Man

    Tham gia ngày:
    9/4/05
    Bài viết:
    116
    gui anh truong` ! xem ho em cai scrip truong bao voi! sao no ko pt dc ah! kho wa' :( :(

    script cua em na` ! pá' dragon oi! cho vao khung cai script ho em cai nha! em chang biet cho the nao ca?



    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 myturn = 0;
    byte peturn = 0;

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

    double mapid1 = 12570;
    double mapid2 = 12566;
    byte warpid1 = 2;
    byte warpid2 = 2;

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

    uint idmem1 = 2009415; //chủ pt không cần điền Id vì đây là scip cảu chủ pt
    uint idmem2 = 637982;
    uint idmem3 = 619366;
    uint idmem4_sena = 667655;

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

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



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


    /********************* Battle Stoped ***********************/
    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());
    if(DialogId==10318)
    {
    ts.SendEnd();
    }
    if(DialogId==12074)
    {
    ts.SendEnd();
    }
    if(DialogId==12210)
    {
    ts.SendEnd();
    }
    }


    /********************* 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();
    }
    /************************* Start ***************************/
    public override void Start()
    {
    if (ts.Character.mapid == 12570) {
    ts.delay(200);
    ts.Warp(2);
    ts.SendEnd();
    ts.SendEnd();
    ts.SendEnd();
    return;
    } else
    if (ts.Character.mapid == 12566) {
    ts.Warp(2);
    return;
    }
    }



    /************************** 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? con ma : " + ts.Character.ghost ,255) ;

    }


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


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

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

    /*********************** Party Stop ************************/
    public override void PartyStop(uint playerid)
    {
    if (playerid == idmem1) {debug("Dis by "+playerid+" dis");ts.Disconnect();}
    if (playerid == idmem2) {debug("Dis by "+playerid+" dis");ts.Disconnect();}
    if (playerid == idmem3) {debug("Dis by "+playerid+" dis");ts.Disconnect();}
    if (playerid == idmem4_sena) {debug("Dis by "+playerid+" dis");ts.Disconnect();}
    }

    /************************ Init Bot *************************/
    public override void InitBot()
    {
    AddDropItemList("viênongm?t");
    AddDropItemList("t?d u?ngthu?c");
    AddDropItemList("viên công kích");
    Stop();
    }



    xem ho em cai nha
     
  6. nhocbaton

    nhocbaton Youtube Master Race

    Tham gia ngày:
    10/9/05
    Bài viết:
    30




    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 17001); moa
    vay co khac gi def dau ma hoi sao no ko danh sua thanh 10000 chuc ban vui ve
     
  7. #lucky#

    #lucky# Youtube Master Race

    Tham gia ngày:
    2/2/06
    Bài viết:
    57
    mấy anh ơi cho thằng em mới vào này hỏi cái
    cho em xin cái ID NPC được ko hoặc chỉ em trang nào có cũng được
     
  8. Chutchutchut

    Chutchutchut Mr & Ms Pac-Man

    Tham gia ngày:
    29/10/05
    Bài viết:
    193
    bạn chỉnh ID skill đúng rồi nhưng liệu tọa độ có đúng không
    nếu xài băng tường thi tọa độ phải là ( 2, x ) hoặc ( 3, x ) tức là hàng trên quân mình thì là ( 2 ,x ) còn hàng dưới là ( 3, x ). Như con chủ pt sẽ có tọa độ là ( 3 , 2 )
     
  9. trantuanthan

    trantuanthan Youtube Master Race

    Tham gia ngày:
    2/8/05
    Bài viết:
    14
    Nơi ở:
    Hồ Chí Minh
    sao moi. nguoi` noi' wa' troi` cac' bot script ma` ko huong' dan~ dơnload ve` xai` cung~ nhu ko ah`
     
  10. victoryvn3

    victoryvn3 Fire in the hole! Lão Làng GVN

    Tham gia ngày:
    24/7/04
    Bài viết:
    2,870
    Nơi ở:
    Nhà má vợ
    trời ơi hu hu hu :((
    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh


    Mình xin có 1 cái scrip tự bán Item thôi mà kô ai giúp àh
     
  11. vietdohai

    vietdohai Mr & Ms Pac-Man

    Tham gia ngày:
    29/6/05
    Bài viết:
    155
    Xem hộ mình sai chỗ nào với. Bản bot Triệu Vân này mình log vào nó chỉ đứng nói chuyện mà không chịu đánh.

    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 = 83548;
    uint idmem2 = 93980;
    uint idmem3 = 111469;
    uint idmem4_sena = 137893;

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

    /*********************** 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, 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, 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();
    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 **********************/
    public override void NpcDialogMenu(ushort DialogId)
    {
    debug("Dialog Menu ID = "+DialogId.ToString());
    }


    /********************* NPC Dialog ID ***********************/
    public override void NpcDialog(ushort DialogId)
    {
    debug("Dialog ID = "+DialogId.ToString());
    if(DialogId==15429) {ts.SendEnd();}
    else if(DialogId==15661) {ts.ClickOnNPC(4);}
    else if(DialogId==15657) {ts.ClickOnNPC(4);}
    }


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


    /************************** 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) {ts.delay(1500);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();
    }
     
  12. Crowley

    Crowley Mr & Ms Pac-Man

    Tham gia ngày:
    1/2/05
    Bài viết:
    251
    Nơi ở:
    Biết Chết Li
    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 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 = 670354;
    uint idmem2 = 1690406;
    uint idmem3 = 0;
    uint idmem4_sena = 444200;
    
    /*************************************/
    
    /*********************** My Attack *************************/
    public override void MyAttack()
    {   
    myturn++;
    if (myturn == 1)
    {
    CharacterInfo MyChar = ts.Character; 
    //NPCCombatObject Monster = findMonster();	
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000);	
    }
    if (myturn >=2)
    {
    CharacterInfo MyChar = ts.Character; 
    //NPCCombatObject Monster = findMonster();	
    ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 10000);
    }
    }
    
    
    /******************* My Partner Attack *********************/
    public override void MyPartnerAttack()
    {
    peturn++;
    if (peturn == 1)
    {
    CharacterInfo MyWarrior = ts.CurrentPartner; 
    //NPCCombatObject Monster = findMonster();	
    ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 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.SendAction(58);
    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 **********************/
    public override void NpcDialogMenu(ushort DialogId)
    {
    debug("Dialog Menu ID = "+DialogId.ToString());
    }
    
    
    /********************* NPC Dialog ID ***********************/
    public override void NpcDialog(ushort DialogId)
    {	
    debug("Dialog ID = "+DialogId.ToString());
         if(DialogId==15429) {ts.SendEnd();}
    else if(DialogId==15661) {ts.ClickOnNPC(4);} 
    else if(DialogId==15657) {ts.ClickOnNPC(4);}
    }
    
    
    /********************* 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 == 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.SetTimerOnOff(false);ts.delay(500);ts.Disconnect();}
    if (playerid == idmem2)      {debug(playerid+"  Rời khỏi đội ngủ -> Disconnect !!!");ts.SetTimerOnOff(false);ts.delay(500);ts.Disconnect();}
    if (playerid == idmem3)      {debug(playerid+"  Rời khỏi đội ngủ -> Disconnect !!!");ts.SetTimerOnOff(false);ts.delay(500);ts.Disconnect();}
    if (playerid == idmem4_sena) {debug(playerid+"  Rời khỏi đội ngủ -> Disconnect !!!");ts.SetTimerOnOff(false);ts.delay(500);ts.Disconnect();}
    }
    
    
    /********************** Warp Finish ************************/
    public override void warpFinish()
    {
    }
    
    
    /************************* Start ***************************/
    public override void Start()
    { 
    ts.ClickOnNPC(4);
    } 
    
    
    /************************** 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(500);ts.Sena(playerid); pt4 = 1;debug(playerid + " Johned team, Quân Sư = "+playerid);}
    //if (pt1 == 1 && pt2 == 1 && pt3 == 0 && pt4 == 1) {ts.delay(1500);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");
    AddContributeItemList("Mật Ý Nhân ");
    AutoEatFood();
    ts.SendAction(58);
    ViewState();
    }
    bạn thử chạy = cái này xem có ổn không :)
     
  13. BiBôBiBa

    BiBôBiBa Guest

    Tham gia ngày:
    Bài viết:
    0
    Có bác nào cho xin ca'i Script sell (bán Shop) tí . 30 Char 30 Char 30 Char 30 Char 30 Char 30 Char .
     
  14. ac4demy_07

    ac4demy_07 Mr & Ms Pac-Man

    Tham gia ngày:
    23/12/05
    Bài viết:
    222
    tìm lại ở mấy trang đầu đi bạn, mình nhớ ko nhầm thì ở trang 4 hay 5 gì đó co cái link chỉ vụ auto send với auto sell mà. đừng có cái gì cũng hỏi thế chứ.
    Have fun!
     
  15. huyenthieugia81

    huyenthieugia81 Youtube Master Race

    Tham gia ngày:
    24/7/05
    Bài viết:
    55
    Gửi BiBôBiBa, bạn cần cái bán shop à. Mình chỉ có cái ở bán ở Diệp thành thôi, con tạp hóa á. Bạn sài thử xem nhé
    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;
    double TimeSale 0

    byte DisconFai 00;        //    Faith of warrior to disconnect 

    byte battle_count 0

    byte myturn 0
    byte peturn 0


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

    uint idchupt 75740

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

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

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

    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.Col0210000); 

    if (
    peturn >= 2

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




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

    battle_count++; 
    myturn 0
    peturn 0



    /********************* Battle Stoped ***********************/ 
    public override void BattleStoped() 
    {     
    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); 



    /************************ On Timer *************************/ 
    public override void OnTimer() 
    {
       
    TimeSale++; 
        if (
    TimeSale 200 == 0
        { 
               
    FindItemSale (4602750);
            
    FindItemSale (2616850); 
        
    FindItemSale (4601650); 
        
    FindItemSale (4602750); 
        
    FindItemSale (2608250);
        
    FindItemSale (4800550);
        
    FindItemSale (4601350);
        }


    public 
    override void NpcDialog(ushort DialogId
    {     
        
    debug("Dialog ID = "DialogId.ToString()); 
        
    ts.SendEnd(); 
    }

    public 
    override void NpcDialogMenu(ushort DialogId)  
    {  
        
    debug("Dialog Menu ID = "DialogId.ToString());
        
    ts.SelectChoice(2); 
        
    ts.SendEnd(); 
    }

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

    debug("Request Party .........."); 
    ts.RequestParty(idchupt); 



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

    /********************** Player Online **********************/ 
    public override void PlayerOnline(uint playerid
    {  
    if (
    playerid == idchupt) {debug(idchupt "  Is Now Online, RequestParty ......");ts.delay(500);ts.RequestParty(idchupt);} 


    /*********************** Party Stop ************************/
    public override void PartyStop(uint playerid)
    {
    if (
    playerid == idchupt) {debug("Dis by "+playerid+" dis");ts.Disconnect();}
    }

    /************************ Init Bot *************************/ 
    public override void InitBot() 
    {         
        
    ts.SetTimerOnOff(true); 
        
    ts.ClickOnNPC(2);
    AddDropItemList("Măng khô");
    AddDropItemList("Thuốc Bổ Huyết ");
    AddDropItemList("tựđ uốngthuốc"); 
    AddDropItemList("viên công kích"); 
    AddDropItemList("ThuốcNhấtĐiểm");  
    AutoEatFood();
    Stop(); 
    {
    debug("Login Okie, Request Party .......");ts.delay(500);ts.RequestParty(idchupt);} 

    Đây là cái bán đồ của mình, bạn sài thử nhé
     
  16. LordRevenge

    LordRevenge Youtube Master Race

    Tham gia ngày:
    5/7/05
    Bài viết:
    38
    Muốn xài những skill buff thì phải set tọa độ nữa.
    Ví dụ như bạn muốn buff ""Băng Tường"" cho chủ PT thì phải viết như vầy:

    Mã:
    public override void MyAttack()  
    {  
    if (myturn == 1)  
    {  
    CharacterInfo MyChar = ts.Character;  
    ts.SendAttack(MyChar.Row, MyChar.Col, 3, 2, 11002);  
    }  
    
    Không biết có sai không nhỉ :devil:
     
  17. nhocbaton

    nhocbaton Youtube Master Race

    Tham gia ngày:
    10/9/05
    Bài viết:
    30
    cho minh xin cai mem cua truong luong
    minh cam on nhieu
     
  18. hoangphat1

    hoangphat1 Youtube Master Race

    Tham gia ngày:
    13/8/05
    Bài viết:
    27
    cac' anh cho em hoi? sao em copy sc tren topic nay` ve` roi` cop lai vao` sc cua? minh`
    khi chay leng no' lai bao' lo^i~ la` )expected
    mong cac' pro giup' do~
     
  19. AnThuaPhong

    AnThuaPhong Youtube Master Race

    Tham gia ngày:
    29/11/05
    Bài viết:
    14
    đây..em làm giống bác TuấnLinhTTL...em muốn gửi cho chủ pt sp..nên đã biến đổi cái idsendtaphoa thành id của chủ pt...
    PHP:
    void FindItemSend(uint playerid,uint Iid,byte num)

        for(
    byte i=0;i25;i++)
        { 
            
    Slot oSlot = (Slot)ts.MyItems[i]; 
            if( 
    oSlot.itemid == )
            {
                continue;
            }
            if(
    oSlot.itemid == Iid && oSlot.num == num)
            {
                
    Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];
                
    ts.SendItemTo(playerid,oSlot.slot,num);
                
    debug("Send " oItem " to " playerid " amount " num 0xC08008); 
            }
        }
    }
    <-----cái này em giữ nguyên

    double TimeSend = 0;
    uint idsendtaphoa = xxxx; id con bán tiệm tạp hóa của bạn <----id con tạp hóa thành id con chủ pt

    PHP:
    TimeSend++;
        if (
    TimeSend 120 == 0)
        {
            
    FindItemSend(idsendtaphoa2616950);//Mang Kho
            
    FindItemSend(idsendtaphoa2616850);//Ruou Vang
            
    FindItemSend(idtiemthuoc27035,50);//Nhat diem
            
    FindItemSend(idtiemthuoc27066,50);// bo huyet
            
    FindItemSend(idtiemthuoc27005,50);// Tinh nao
            
    FindItemSend(idtiemthuoc27032,50);//Luc vi
            
    FindItemSend(idsendtaphoa4603350);//ong mat
            
    FindItemSend(idsendtaphoa4604150);//Tu dong uong thuoc
            
    FindItemSend(idsendtaphoa4601350);//Vien Cong Kich
        
    }
    <---------mấy cái FindItemSend thì em đổi cái ID của item là ID của Sp...
    =(( kết cục thảm hại....nó chả chịu gửi cho em lấy 1 lọ sp
     
  20. Jino

    Jino Youtube Master Race

    Tham gia ngày:
    18/3/06
    Bài viết:
    49
    co ai co cai script bot truong giac ko vay cho minh xin nha
    minh cam on nhieu thay ng` ta bot hoai` dung ke ben coi ghin` wa ma chan~ lam dc gi` :((
    ai giup minh nha!
     
Trạng thái chủ đề:
Không mở trả lời sau này.

Chia sẻ trang này