Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Thế còn Gate wa thành tuyết thì sao nhĩ ! Bọn Malay vẫn thường 2 mage 3 gà mà :'>micral nói:lv trung bình cầu giới kiều là 30 -> để đánh được ở đây team bạn cần lv trung bình 70 nghĩa là tổng lv là 700. 700 - 6 (gồm 3 gà lv1 và 3 đệ lv1) là 694. còn lại 2 tướng 2 đệ lv trung bình cần là 694 / 4 = 173. lv 173 mới đánh ở cầu giới kiều đc như vậy, khuyên bác bỏ ý định đó đi. (đó là đệ tử cũng 173)
var state = "stand"
var ghost_count = 0;
var die_count = 0;
var battle_count = 0;
var pt_count = 1;
//********** MAKE PARTY **********//
//*****Tao bang gom cac ID cua nhom*****//
var myParty = new Array(523908,907025,661293,759781,795720); // Các ID trong nhóm Party
pt_leader = 661293; // ID chu Party
pt_sena = 907025; // ID quân su
//*****Hàm chap nhan party cua cac thanh vien*****//
function WaitAcceptParty(playerid){
for (var i=0; i<myParty.length;i++){
if(playerid == myParty[i]){
ts.AcceptParty(playerid);
}
}
}
//*****Hàm set ID pt_sena lam quân su*****//
function AcceptedParty(playerid){
if (playerid == pt_sena){
ts.sena(playerid) // Set quân su
debug("SET QUAN SU",0xFF0000)
}
if(pt_count == 4){
Start() // du nguoi --> danh
}
pt_count++;
}
//*****Hàm DIS khi 1 thanh vien DIS*****
function PartyStop(playerid){
for (var i=0; i<myParty.length;i++) {
if (playerid == myParty[i]){
ts.Disconect();
}
}
}
//********** ATTACK **********//
//*****Hàm attack cua nguoi choi*****//
function MyAttack(){
m = SelectF1Target()
sk = 12003;
ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, m.Row
, m.Col
, sk
)
}
function MyPartnerAttack(){
m = SelectF1Target()
sk = 10000;
ts.SendAttack(
ts.CurrentPartner.Row
, ts.CurrentPartner.Col
, m.Row
, m.Col
, sk
)
}
//********** EAT, DROP ITEM **********//
//*****Hàm tu dong vut cai Item không can*****//
function DoDropItem() {
for(var i=1;i<=25;i++){
var oSlot = ts.MyItems(i);
if(oSlot.itemid == 0){
continue;
}
var oItem = ITEMS.Item(oSlot.itemid);
var itemname = oItem.getName();
if( itemname == "AutoAttackPill" ||
itemname == "AutoTonicPill" ||
itemname == "DaQuWine" ||
itemname == "Cleardewwine" ||
itemname == "PainKiller" ||
itemname == "Red date" ||
itemname == "Morale pill" ||
itemname == "Honey pill" ||
itemname == "HerbalPill" ||
itemname == "Small apple" ||
itemname == "Strawberry") ts.DropItem(oSlot.slot,oSlot.num);
}
}
//**********TRA LOI BTQ**********//
function onEvilGod(){
ghost_count++
debug("E V I L G O D."+"["+ghost_count+"]",0x0000FF)
msg = "Wrong.Add(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
WriteLog("Wrong.js",msg)
WarpLink( 12063 ,2 , 12301 ,1)
}
function onLuckyGod(){
debug("LUCKY G O D.",0xFF0000)
if(!QA.Exists(ts.LastQuestion)){
QA.Add(ts.LastQuestion,ts.LastResponseAnswer)
msg = "QA.Add(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
WriteLog("QA.js",msg)
}
WarpLink( 12063 ,2 , 12301 ,1)
}
//*****Hàm tra loi BTQ xong thì dánh tiep*****//
function FinishAnswerFuckGod(){
if(ghost_count>=3){
ts.Disconect();
}
if(state=="warp"){
ts.delay(3000)
WarpLink( 12063 ,2 , 12301 ,1)
}
}
//************** HOANG CUNG DIEP THANH **************//
// Kiem tra xem nhân vat dang dung o dâu ? Trong hay Ngoai HC //
// (1). Trong: di ra ngoài. //
// (2). Ngoài: di toi, nói chuyên roi dánh. //
// (3). Quay lai buoc (1). //
//************************************************** ****//
//state: gom 2 trang thái: stand & warp
function warpFinish(){
if(state=="warp"){
if(ts.Character.mapid == 12301){ // Trong Hoàng Cung
WarpLink(12063 ,2 , 12301 ,1)
}
else if(ts.Character.mapid==12063){ // Ngoài Hoàng Cung
ts.delay(2000)
ts.Walk(562,315)
WarpLink(12063 ,2 , 12301 ,1)
}
}
}
//********** MAIN **********//
//****Hàm hiên trang thái sau tran dánh*****//
function ViewState(){
debug("************************************",0xFF0000)
debug(" Battle Count : " + battle_count ,0xFF0000)
debug(" Dead Count : " + die_count ,0xFF0000)
debug(" Ghost Count : " + ts.Character.Ghost ,0xFF0000)
debug(" Warrior's FAI : " + ts.CurrentPartner.CharName +" : " + ts.CurrentPartner.fai,0xFF0000)
debug("************************************",0xFF0000)
}
//*****Hàm tra loi NPC*****//
function NpcDialogMenu(DialogId){
ts.SelectChoice(1);
ts.SendEnd();
}
function NpcDialog(DialogId){
ts.SendEnd();
}
//*****Hàm Dis khi HP cua PET het*****//
function SaveWarrior(){
if(ts.CurrentPartner.HP == 1){
ts.Disconect();
debug(" SAVE THE FAI DISCONNECT NOW! : ",0x0000FF);
}
}
//*****Hàm neu chet 3 lan thì Dis*****//
function CheckDisconnect(){
if(ts.Character.HP == 1){
die_count++
}
if(die_count>3){
ts.Disconect();
}
}
//*****Hàm BOT*****//
function InitBot(){
state= "stand"
debug("***** BOT HCDT *****", 0x00FF00)
}
//*****Hàm bat dau tran dánh*****//
function BattleStarted(){
battle_count++;
}
//****Hàm khi tran dánh ket thúc*****//
function BattleStoped(){
SaveWarrior();
DoDropItem();
ViewState();
}
//*****Hàm OnTime*****//
function OnTimer(){
if(ts.Character.mapid == 12301){ // Trong Hoàng Cung
WarpLink(12063 ,2 , 12301 ,1)
}
if(ts.Character.mapid == 12062){ // Out of map
WarpLink(12062 ,2 , 12301 ,1)
}
}
//*****Hàm Start****//
function Start(){
state="warp"
WarpLink(12063, 2, 12301, 1)
}
//*****Hàm Stop*****//
function Stop(){
state="stand"
}
InitBot()
function OnTimer(){
if (ts.CurrentParty==0) ts.RequestParty(ID_leader);
}
var state = ""
var ghost_count = 0;
var god_count = 0;
var die_count = 0;
var pet_die_count = 0;
var battle_count = 0;
var DisconnectFlag = 0.3;
var HealingFlag = 0.5;
var hpFraction = 0.8;
var spFraction = 0.7;
var SetHPMAX1 = (ts.Character.MAXHP=1000);
var SetHPMAX2 = (ts.CurrentPartner.MAXHP = 350);
var SetSPMAX1 = (ts.Character.MAXSP=99);
var SetSPMAX2 = (ts.CurrentPartner.MAXSP = 59);
var mapid1 = 12521;
var mapid2 = 12013;
var warpid1 = 5;
var warpid2 = 1;
var warp_pos_x = 1522;
var warp_pos_y = 195;
var warp_pos_x_B = 62;
var warp_pos_y_B = 1615;
function MyAttack(){
m = findMonster()
var n = MonsterAlive()
if( n >= 1 ){
if (ts.Character.SP > 14 ){
sk = 17001;
}
else{
sk = 10000;
}
}
else{
sk = 10000;
}
ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, m.Row
, m.Col
, sk
)
}
function MyPartnerAttack(){
m = findMonster()
var n = MonsterAlive()
if( n >= 1 ){
if (ts.CurrentPartner.SP > 14 ){
sk = 17001;
}
else{
sk = 10000;
}
}
else{
sk = 10000;
}
ts.SendAttack(
ts.CurrentPartner.Row
, ts.CurrentPartner.Col
, m.Row
, m.Col
, sk
)
}
function BattleStarted(){
battle_count++;
in_battle=1;
roundcount=0;
roundcount_pet=0;
}
function BattleStoped(){
SaveWarrior();
EatHP();
EatSP();
//cdelay(3);
//CheckDisconnect();
ViewState();
in_battle=0;
}
function ViewState(){
debug("************************************",0xFF0000)
debug(" Battle Count : " + battle_count ,0xFF0000)
debug(" Dead Count : " + die_count ,0xFF0000)
debug(" Ghost Count : " + ts.Character.Ghost ,0xFF0000)
debug(" Warrior's FAI : " + ts.CurrentPartner.CharName +" : " + ts.CurrentPartner.fai,0xFF0000)
debug("************************************",0xFF0000)
}
function SaveWarrior(){
if(ts.CurrentPartner.HP< ((0.20) * ts.CurrentPartner.MAXHP)){
ts.Disconect();
debug(" SAVE THE FAI DISCONNECT NOW! : ",0x0000FF);
}
}
function onNPCAppear( npcmapid , x , y ){
//debug(npcmapid,0)
if(npcmapid == npcmapid){
//ts.ClickOnNPC(npcmapid)
//ts.ClickOnNPC(npcmapid)
}
}
function RemoveGhost(){
ErasingGhost = true
ts.ClickOnNPC(21)
}
function NpcDialogMenu(DialogId){
debug("Menu "+DialogId,0x0000FF)
//ts.SelectChoice(1);
//debug("Í͡úººº ÊÙéâÇéÂÂ! "+DialogId,0x0000FF)
//ts.SendEnd();
}
function NpcDialog(DialogId){
debug("Dialog "+DialogId,0x0000FF)
ts.SendEnd();
}
function NpcHiddenDialog(){
debug("NpcHiddenDialog ",0x0000FF)
ts.SendEnd()
}
function onAnswerWrong(q,a){
}
function FinishAnswerFuckGod(){
cdelay(3)
god_count++;
if(ghost_count>=3){
debug("3 ghost, disconnect now",0x00aaaa)
frm.mnuEnableReconnect.Checked = false;
ts.Disconect();
}
if(state=="autowarp"){
cdelay(3);
WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);
}
}
function Start(){
debug("Moving to battlefield...",0);
state="autowarp";
flee=0;
ts.Walk(warp_pos_x,warp_pos_y);
WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);
}
function Stop(){
state="";
}
function CheckDisconnect(){
if(ts.Character.HP < (DisconnectFlag * ts.Character.MAXHP)
|| ts.CurrentPartner.HP <(DisconnectFlag * ts.CurrentPartner.MAXHP)
){
frm.mnuEnableReconnect.Checked = false;
ts.Disconect();
}
}
function InitBot() {
debug("Julu Cave" , 0x00FF00 );
if (ts.Character.mapid==mapid1) WarpLink(mapid1,warpid1,mapid2,warpid2);
if (ts.Character.uid!=pt_leader) Timer.Enabled=true;
}
function OnTimer(){
if (ts.CurrentParty==0) ts.RequestParty(pt_leader);
else if (ts.CurrentParty==pt_leader) { flee=0; Timer.Enabled=false; }
}
function WaitAcceptParty(playerid){
for (var i=0; i<myParty.length;i++) {
if (playerid ==myParty[i]) { ts.AcceptParty(playerid); }
}
}
function AcceptedParty(playerid){
if(playerid ==1073718
|| playerid ==107685
|| playerid == 1020852
|| playerid == 1030024
){
ts.AcceptParty(playerid)
ts.sena(774376)
}
}
function PartyStop( playerid ){
for (var i=0; i<myParty.length;i++) {
if (playerid ==myParty[i]) { ts.Disconect(); }
}
}
function warpFinish(){
if(state=="autowarp" && ts.Character.uid==pt_leader){
if(ts.Character.mapid == mapid1){
ts.Walk(warp_pos_x_B,warp_pos_y_B);
ts.Delay(3000);
WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);
}else if(ts.Character.mapid == mapid2){
ts.Walk(warp_pos_x,warp_pos_y);
ts.Delay(10000);
WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);
}
}
}
InitBot();
debug(ts.Character.Ghost,0x0000FF)
zmeomiZ nói:Hình như TB của bác Micral ko cần WPE hay sao ấy, bác Micral làm ơn cho bít chính xác là nó ko cần phải ko.
Kiếm chút mp nào. Kiếm chút mp nào. Kiếm chút mp nào. Kiếm chút mp nào. Kiếm chút mp nào. Kiếm chút mp nào. Kiếm chút mp nào. Kiếm chút mp nào. Kiếm chút mp nào.
PetitD nói:Micral có thể share cho mình script pt 3 mage 2 gà tại Lô Long khẩu đc ko ^_^
à mà cho chút micral , với tình trạng Gm lượn như hiện nay thì dễ bị tống vào tù lắm, micral có thể chỉ cho mình cách cho 2 con LV 1 auto pt = TB rùi mình xài alogin dẫn đi như bt` đc ko ( tức là 3 mage vẫn đánh = alogin còn 2 gà là TB ) đc hem ? Cảm ơn nhìu ^_^