hix.sao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thíasao ko ai cho em cai' scrip ấy thía
Gời tin nhắn qua nick của tui sẽ hướng dẫn cho. Close topic đc rồi heo ơi. 1 cục chả 2 cục thịt 3 cục nem.
Của chủ Pt 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; // 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 = 574875; /***** Chinh sua ID Member o day *****/ uint idmem1 = 2276997; uint idmem2 = 2062558; uint idmem3 = 02103692; uint idmem4_sena = 02058950; public override void MyAttack() { turna++; if (turna == 1) { CharacterInfo MyChar = ts.Character; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 10000); } if (turna >=2) { CharacterInfo MyChar = ts.Character; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyChar.Row, MyChar.Col, 0, 4, 17001); } } public override void MyPartnerAttack() { turnb++; if (turnb == 1) { CharacterInfo MyWarrior = ts.CurrentPartner; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 1, 17001); } if (turnb >= 2) { CharacterInfo MyWarrior = ts.CurrentPartner; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 17001); } } /********************* Battle Started **********************/ public override void BattleStarted() { turnb=0; turna=0; } public override void PreBattleStopped() { ts.delay(2000); } /********************* 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()); } /********************* 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 == mapid1) { ts.Walk(622,475); ts.Warp(warpid1); } else if (ts.Character.mapid == mapid2) { ts.Warp(warpid2); return; } } /************************** Stop ***************************/ public override void Stop() { } /********************* Fishish Answer **********************/ public override void FinishAnswer() { Start(); } /**************** Request Party Accept From ****************/ public override void RequestPartyAcceptFrom(uint playerid) { if (playerid == idmem1) {ts.delay(1000);ts.AcceptParty(playerid); pt1 = 1;debug(playerid + " Johned team");} if (playerid == idmem2) {ts.delay(1000);ts.AcceptParty(playerid); pt2 = 1;debug(playerid + " Johned team");} if (playerid == idmem3) {ts.delay(1000);ts.AcceptParty(playerid); pt3 = 1;debug(playerid + " Johned team");} if (playerid == idmem4_sena) {ts.delay(500);ts.AcceptParty(playerid);ts.delay(1000);ts.Sena(playerid); pt4 = 1;debug(playerid + " Johned team, Qua^n Su = "+playerid);} if (pt1 == 1 && pt2 == 1 && pt3 == 1 && pt4 == 1) {ts.delay(1500);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("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(); } Của Members: PHP: double DisconnectFlag = 0.3; // Disconnect when current HP is below 30% double hpFractionEat = 0.8; //Eat HP when current HP<= 80% double spFractionEat = 0.8; double hpFraction = 0.95; //Eat until current HP >= 95 % double spFraction = 0.95; byte DisconFai = 00; // Faith of warrior to disconnect byte battle_count = 0; byte NS_count = 0; byte myturn = 0; byte peturn = 0; /***** Chinh sua ID chu Party o day *****/ uint idchupt =574875; /*************************************/ /*********************** My Attack *************************/ public override void MyAttack() { myturn++; if (myturn == 1) { CharacterInfo MyChar = ts.Character; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000); } if (myturn >=2) { CharacterInfo MyChar = ts.Character; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyChar.Row, MyChar.Col, 0, 0, 18001); } } /******************* My Partner Attack *********************/ public override void MyPartnerAttack() { peturn++; if (peturn == 1) { CharacterInfo MyWarrior = ts.CurrentPartner; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 12003); } if (peturn >= 2) { CharacterInfo MyWarrior = ts.CurrentPartner; //NPCCombatObject Monster = findMonster(); ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 4, 17001); } } /********************* Battle Started **********************/ public override void BattleStarted() { battle_count++; myturn = 0; peturn = 0; } /********************* Battle Stoped ***********************/ public override void BattleStopped() { AutoEatFood(); ProcessInventoryAction(); CheckDisconnect(); ViewState(); CheckGhost(); } /********************* Check Ghost ***********************/ void CheckGhost() { if (ts.Character.ghost >= 1 && ts.Character.mapid == 12000) {ts.Disconnect();} } /******************* 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()]); if (NS_count == 3) {ts.Answer(ans_index);ts.SendEnd();ts.SendEnd();ts.SendEnd();ts.SendEnd();ts.SendEnd();ts.SendEnd();ts.SendEnd();ts.SendEnd();ts.SendEnd();ts.delay(1000);ts.Disconnect();} ts.Answer(ans_index); } /******************** NPC Dialog Menu **********************/ public override void NpcDialogMenu(ushort DialogId) { debug("Dialog Menu ID = "+DialogId.ToString()); if (DialogId == 4) {ts.SelectChoice(1);ts.SendEnd();} } /********************* NPC Dialog ID ***********************/ public override void NpcDialog(ushort DialogId) { //debug("Dialog ID = "+DialogId.ToString()); ts.SendEnd(); } /************************ On Timer *************************/ public override void OnTimer() { } /************************* 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); } } /*********************** 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() { if (ts.Character.mapid==12441) {ProcessInventoryAction(); ts.Warp(1);} } /********************* Accepted Party **********************/ public override void AcceptedParty(uint playerid) { if (playerid == idchupt) {debug("Join to " + playerid);} } /********************** Warp Finished **********************/ public override void warpFinish() { if (ts.Character.ghost >= 1 && ts.Character.mapid == 12011) {ts.Walk(462,515);ts.ClickOnNPC(9);} } /************************ Party Stop ***********************/ public override void PartyStop(uint playerid) { if (playerid == idchupt) {debug(idchupt+ " Giải tán đội ngũ ...");} if (ts.Character.mapid==13000) {ProcessInventoryAction(); ts.Warp(1);} } /************************ Init Bot *************************/ public override void InitBot() { ts.SetReconnectTime(3); ts.SetMaxIdleTime(15); if (ts.Character.mapid==13000) {ProcessInventoryAction(); ts.Warp(1);} ts.delay(1000); AddDropItemList("viênongmật"); AddDropItemList("tựđ uốngthuốc"); AddDropItemList("viên công kích"); AddContributeItemList("Dâu đỏ "); AddContributeItemList("Táo nhỏ"); AddDropItemList("Mật Ý Nhân"); AddDropItemList("Nhị Quoa đầu"); AddDropItemList("Bành Bột Mì"); ViewState(); debug("Login Okie"); ProcessInventoryAction(); AutoEatFood(); if (ts.Character.ghost >= 1 && ts.Character.mapid == 12000) {ts.Warp(6);} if (ts.Character.ghost == 0 && ts.Character.x == 462 && ts.Character.y ==515 && ts.Character.mapid == 12011) {ts.Warp(1);} } chúc bot zdui dẽ :hug: