Truebot & linh tinh[Cấm chat nhảm]

  • Thread starter Thread starter micral
  • Ngày gửi Ngày gửi

Có nên lập 1 subbox bot discussion không ?


  • Total voters
    61
  • Poll closed .
Status
Không mở trả lời sau này.
huhuhu
Các bác giúp em với, em loay hoay cả buổi mới logg vô được bằng cái TB, thế mà nó lại không chịu bắn hỏa tiễn cho em nhờ mà cứ đứng trơ mắt ếch lên nhìn thằng Văn Xẩu. Hix hix, bác nào bít chỉ dùm cho em sớm nha. Thank mấy bác nhìu nhìu...
 
VALove nói:
Mã:
function culoc(){ 
if (ts.Character.mapid == 12013)
ts.delay(1000)
ts.Walk(1522,175)
ts.warp(2)
return 
// delay call ts.Warp for 1000 milliseconds 
} else 
if (ts.Character.mapid == 12521) {  
ts.delay(1000)// delay 1 seconds 
ts.Walk(62,1635) 
ts.warp(5) 
return

MC xem giùm sao mà cứ nhấn F3 cái là nó biến sang map #


}
}

sai warpid rùi 1 chứ ko phải 2
 
huhuhu
Các bác giúp em với, em loay hoay cả buổi mới logg vô được bằng cái TB, thế mà nó lại không chịu bắn hỏa tiễn cho em nhờ mà cứ đứng trơ mắt ếch lên nhìn thằng Văn Xẩu. Hix hix, bác nào bít chỉ dùm cho em sớm nha. Thank mấy bác nhìu nhìu...
Không post cái code lên thì làm sao mà các bác Pro xem để mà sửa được .
 
Bác Micral ơi , xem giúp em cái script không biết sai chỗ nào mà party xong, set QS xong ,con Leader cứ đứng như cục đá chẳng nhúc nhích gì cả ?Đánh HCDT đang đứng trước cổng .

Code chủ pt
Mã:
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.6; 
var spFraction = 0.4; 
var MyMapID = 15802;

var mapid1 = 12301;
var mapid2 = 12063;
var warpid1 = 1;
var warpid2 = 2;

var warp_pos_x_min = 502;
var warp_pos_x_max = 622;
var warp_pos_y = 335;

var warp_pos_x_B = 202;
var warp_pos_y_B = 555;

var battle_round;

var myParty = new Array(858817,708276,1663327,133094,697735); //ca'c id trong pt
pt_leader = myParty[1]; //id chu pt
pt_sena = myParty[0]; //id quan su

function MyAttack(){ 

m = SelectF1Target(); 
// hoac:
// m = findMonster(); (nhu tdck thuo`ng)

battle_round++;

sk = 12003; //skill

ts.SendAttack( 
ts.Character.Row 
, ts.Character.Col 
, m.Row 
, m.Col 
, sk 
);

} 


function MyPartnerAttack(){ 
m = SelectF1Target(); 
sk = 12003; 

ts.SendAttack( 
ts.CurrentPartner.Row 
, ts.CurrentPartner.Col 
, m.Row 
, m.Col 
, sk 
) 
} 

function BattleStarted(){ 
battle_count++; 
battle_round=0;
} 

function BattleStoped(){ 
EatHP();
EatSP();
ViewState();
} 

function EatHP(){ 
if (ts.Character.HP < (ts.Character.MAXHP * hpFraction)){ 
doEatHP(0,(ts.Character.MAXHP * hpFraction)-ts.Character.HP) 
} 
if (ts.CurrentPartner.HP < (ts.CurrentPartner.MAXHP * hpFraction)){ 
doEatHP(ts.CurrentPartner.Order,(ts.CurrentPartner.MAXHP * hpFraction)-ts.CurrentPartner.HP) 
} 
} 

function EatSP(){ 
if (ts.Character.SP < (ts.Character.MAXSP * spFraction)){ 
doEatSP(0,(ts.Character.MAXSP * spFraction)-ts.Character.SP) 
} 
if (ts.CurrentPartner.SP < (ts.CurrentPartner.MAXSP * spFraction)){ 
doEatSP(ts.CurrentPartner.Order,(ts.CurrentPartner.MAXSP * spFraction)-ts.CurrentPartner.SP) 
} 
} 

function ViewState(){ 
debug("************************************",0xFF0000) 
debug(" Battle Count : " + battle_count ,0xFF0000) 
debug(" Dead Count : " + die_count ,0xFF0000) 
debug(" Pet KO Count : " + pet_die_count, 0xFF0000) 
debug(" Lucky Count : " + god_count, 0xFF0000) 
debug(" Ghost Count : " + ts.Character.Ghost ,0xFF0000) 
debug(" Warrior's FAI : " + ts.CurrentPartner.CharName +" : " + ts.CurrentPartner.fai,0xFF0000) 
debug("************************************",0xFF0000) 
} 

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

function onNPCAppear( npcmapid , x , y ){ 
//debug(npcmapid,0) 
if(npcmapid == npcmapid){ 
ts.ClickOnNPC(npcmapid) 
ts.ClickOnNPC(npcmapid) 
} 
} 

function FinishAnswerFuckGod(){ 
cdelay(3)
god_count++; 
if(ghost_count>=3){ 
debug("3 ghost, disconnect now",0x00aaaa) 
frm.mnuEnableReconnect.Checked = false;
ts.Disconect(); 
} 
} 

function doEatHP(order,difHp){ 
for(var i = 1;i<= 25 ;i++){ 
var oSlot = ts.MyItems.Item(i) 
var oItem = ITEMS.Item(oSlot.itemid) 
if (oSlot.itemid == 0){ continue; } 
if(oItem.isHPItem()){ 
if (oItem.itemvalue > difHp){ continue; } 
var eatHpAmt = (difHp - (difHp % oItem.itemvalue)) / oItem.itemvalue 
if (eatHpAmt> 0){ 
if (eatHpAmt > oSlot.num){eatHpAmt = oSlot.num; } 
ts.EatItem(i,eatHpAmt,order) 
debug( "?"+oItem.itemname+" HP "+oItem.itemvalue+"at slot "+i+" decrease "+eatHpAmt+"?" ,0xC08008 ) 
difHp = difHp - eatHpAmt * oItem.itemvalue 
} 
} 
} 
} 

function doEatSP(order,difSp){ 
for(var i = 1;i<= 25 ;i++){ 
var oSlot = ts.MyItems.Item(i) 
var oItem = ITEMS.Item(oSlot.itemid) 
if (oSlot.itemid == 0){ continue; } 

if(oItem.isSPItem()){ 
   if (oItem.itemvalue > difSp){ continue; } 
   var eatSpAmt = (difSp - (difSp % oItem.itemvalue)) / oItem.itemvalue 
   if (eatSpAmt> 0){ 
      if (eatSpAmt > oSlot.num){eatSpAmt = oSlot.num; } 
      ts.EatItem(i,eatSpAmt,order); 
      debug( "?"+oItem.itemname+" SP "+oItem.itemvalue+"at slot "+i+" decrease "+eatSpAmt+"?" ,0xC08008 ); 
      difSp = difSp - eatSpAmt * oItem.itemvalue ;
   } 
}

} 
} 

function Start(){ 
debug("Moving to battlefield...",0);
state="autowarp";

var x = get_random(warp_pos_x_min,warp_pos_x_max)
ts.Walk(x,warp_pos_y);
WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);
} 

function Stop(){ 

} 

function CheckDisconnect(){ 
   if(ts.Character.HP < (DisconnectFlag * ts.Character.MAXHP)
   || ts.CurrentPartner.HP <(DisconnectFlag * ts.CurrentPartner.MAXHP)
   ){
      frm.mnuEnableReconnect.Checked = false;
      ts.Disconect();
   }
} 

function OnPrivateMsg(PlayerName , Msg){
debug(PlayerName + ": " + Msg,0);
} 


function InitBot() { 
   debug("my bot" , 0x00FF00 );
   EatHP();
   EatSP();

   Timer.Enabled=true;   
} 

function OnTimer(){
if (ts.CurrentParty==0) ts.RequestParty(pt_leader);
} 

function WaitAcceptParty(playerid){ 
for (var i=0; i<myParty.length;i++) {
   if (playerid ==myParty[i]) { ts.AcceptParty(playerid); }
}
} 

function AcceptedParty(playerid){ 
//pname = getPlayerName(playerid) 

   if(playerid == pt_sena)  
   { 
      ts.sena(playerid) //set strategist 
   } 

pt_count++;
if (pt_count==4) { //full pt 5 nguoi
      Start();
}

} 

function RequestPartyAcceptFrom(PlayerId ){ 
} 

function PartyStop( playerid ){ 
for (var i=0; i<myParty.length;i++) {
   if (playerid ==myParty[i]) { ts.Disconect(); }
}
}
 
function onPlayerWalk( uid , x , y ){ 
//debug("uid = " + uid + " x = " + x + " y = " + y,0);
} 

function warpFinish(){
if(state=="autowarp"){
   if(ts.Character.mapid == mapid1){
      ts.Walk(warp_pos_x_B,warp_pos_y_B);
      ts.Delay(2000);
      WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);
   }else if(ts.Character.mapid==mapid2){
      var x = get_random(warp_pos_x_min,warp_pos_x_max)
      ts.Walk(x,warp_pos_y);
      ts.Delay(2000);
      WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);
   } 
}
debug("Enter to map id: " + ts.Character.mapid + " by portal id: " + ts.LastWarpId ,0)
} 

InitBot() 
debug(ts.Character.Ghost,0x0000FF)
 
có thể giúp mình fuction tự động đánh khi party đủ 5 người ko các cậu,mạng chỗ mình hay dis quá,nên thỉnh thoảng dis do lỗi của mạng mà ko có thời gian trông 24/24 :P
 
Mã:
var state = ""
var ghost_count = 0;
var DisconnectFlag = 0.3;

function MyAttack(){
	m = findMonster()
	n = MonsterAlive()
	sk = SkillID("Attack");
	ts.SendAttack( 
		  ts.Character.Row 
		, ts.Character.Col
		, m.Row
		, m.Col
		, sk
	)
}
function MyPartnerAttack(){
	m = findMonster()
	sk = SkillID("Attack");
	ts.SendAttack( 
		  ts.CurrentPartner.Row
		, ts.CurrentPartner.Col
		, m.Row
		, m.Col
		, sk
	)
}
function BattleStarted(){
}
function BattleStoped(){
	//CheckDisconnect();
}
function onEvilGod(){
    ghost_count++
	debug("E V I L  G O D."+"["+ghost_count+"]",0x0000FF)

}
function onLuckyGod(){
	debug("LUCKY G O D.",0xFF0000)
}
function OnTimer(){
}
function FinishAnswerFuckGod(){ 
	if(ghost_count>=3){
	   ts.Disconect();
	}
} 


function Start(){ 
// no remove this function
} 
function Stop(){ 
// no remove this function
} 
function CheckDisconnect(){
	if(ts.Character.HP < (DisconnectFlag * ts.Character.MAXHP) 
	|| ts.CurrentPartner.HP <(DisconnectFlag * ts.CurrentPartner.MAXHP) 
	){
		ts.Disconect();
	}
}

function AcceptedParty(playerid){ 
if(getPlayerName(playerid) == "VALove" ){ 
ts.AcceptParty(playerid) 
if(getPlayerName(playerid) == "VALove"){ 
ts.sena ( playerid ) 
} 
} 
} 

function InitParty(){ 
SetPartyFriend("VALove") 
SetSena("VALove") 
} 

function PlayerOnline( playerid ){ 
ts.RequestParty(VN00072290) 
} 
			break;
		}
	}
}

function InitBot(){
	SetPartyFriend("Cafe")
	SetPartyFriend("DisneyM")
	SetPartyFriend("friend name")
	SetPartyFriend("friend name")

	SetSena("DisneyM")
//Sit()
//Start()
//ts.ClickOnNPC(1)

}

InitBot()

Các bác sửa giúp em sao cho nó chịu đánh (hỏa tiễn) là ổn, em ko cần phải chạy ra vào HC, vậy là em mãn nguyện lắm rùi!!! thank
 
Mã:
function DoContribute() {
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 == "Roborant pill" 
    || itemname == "Honey pill"
    || itemname == "PainKiller") && oSlot.num ==50){ 
      ts.Contribute(oSlot.slot,oSlot.num); 
             }
} 
}

Scrip Contribute tui viết vậy có đúng ko ?
cái này lấy scrip của auto send rồi sửa lại thành contribute :D
 
sao tôi truebot nó vô game mà ko hiện tên cũng như lv nhân vật . roài vô trận đứng yên là sao vậy
 
sao tôi truebot nó vô game mà ko hiện tên cũng như lv nhân vật . roài vô trận đứng yên là sao vậy
đó là bạn chưa login vào có 2 trường hợp
1/ bạn chưa update file filter mới nên ko log vào được
2/ là bạn ko bật WPE để chạy filter nếu ko sẽ ko log truebot được
==> Giải pháp có thể tìm lại mấy bài khác để lấy file filter phù hợp :D
 
lucky_luc nói:
Mã:
var state = ""
var ghost_count = 0;
var DisconnectFlag = 0.3;

function MyAttack(){
	m = findMonster()
	n = MonsterAlive()
	sk = SkillID("Attack");
	ts.SendAttack( 
		  ts.Character.Row 
		, ts.Character.Col
		, m.Row
		, m.Col
		, sk
	)
}
function MyPartnerAttack(){
	m = findMonster()
	sk = SkillID("Attack");
	ts.SendAttack( 
		  ts.CurrentPartner.Row
		, ts.CurrentPartner.Col
		, m.Row
		, m.Col
		, sk
	)
}
function BattleStarted(){
}
function BattleStoped(){
	//CheckDisconnect();
}
function onEvilGod(){
    ghost_count++
	debug("E V I L  G O D."+"["+ghost_count+"]",0x0000FF)

}
function onLuckyGod(){
	debug("LUCKY G O D.",0xFF0000)
}
function OnTimer(){
}
function FinishAnswerFuckGod(){ 
	if(ghost_count>=3){
	   ts.Disconect();
	}
} 


function Start(){ 
// no remove this function
} 
function Stop(){ 
// no remove this function
} 
function CheckDisconnect(){
	if(ts.Character.HP < (DisconnectFlag * ts.Character.MAXHP) 
	|| ts.CurrentPartner.HP <(DisconnectFlag * ts.CurrentPartner.MAXHP) 
	){
		ts.Disconect();
	}
}

function AcceptedParty(playerid){ 
if(getPlayerName(playerid) == "VALove" ){ 
ts.AcceptParty(playerid) 
if(getPlayerName(playerid) == "VALove"){ 
ts.sena ( playerid ) 
} 
} 
} 

function InitParty(){ 
SetPartyFriend("VALove") 
SetSena("VALove") 
} 

function PlayerOnline( playerid ){ 
ts.RequestParty(VN00072290) 
} 
			break;
		}
	}
}

function InitBot(){
	SetPartyFriend("Cafe")
	SetPartyFriend("DisneyM")
	SetPartyFriend("friend name")
	SetPartyFriend("friend name")

	SetSena("DisneyM")
//Sit()
//Start()
//ts.ClickOnNPC(1)

}

InitBot()

Các bác sửa giúp em sao cho nó chịu đánh (hỏa tiễn) là ổn, em ko cần phải chạy ra vào HC, vậy là em mãn nguyện lắm rùi!!! thank

sửa trong function myattack
sk = skillID("attack"); sửa thành sk = SkillID("Fire arrow") chắc là bắn hỏa tiễn đc
 
alo bác Micral và MGANGEL đâu hết rùi cho tui hỏi 1 cái seo cứ đến 10h ; lúc down sever xong và lúc 4h và 8h thì lai ko dùng được bản truebot 2.2.4 vậy các xem thế nào giúp tui 1 cái chứ đi làm kỉu nài kô an tâm mất Thanks
 
DuongThieuLong nói:
sửa trong function myattack
sk = skillID("attack"); sửa thành sk = SkillID("Fire arrow") chắc là bắn hỏa tiễn đc
Em đã thử sửa thành "Fire Arrow" rùi, nhưng log vào nó vẫn không chịu bắn.
Huhuhu.... Em chỉ chạy TB mấy acc thành viên trong Party thui, còn acc chủ Party thì log bằng aLogin.
 
chán quá chơi ts philipin bot dc rồi nhưng vấn đề là thằng BTQ co' ai co QA cua philippin ko giup em di ko thi cho em doan scrip gap BTQ thi dí cung dc


cam on
 
lucky_luc nói:
Em đã thử sửa thành "Fire Arrow" rùi, nhưng log vào nó vẫn không chịu bắn.
Huhuhu.... Em chỉ chạy TB mấy acc thành viên trong Party thui, còn acc chủ Party thì log bằng aLogin.
sửa là "Fire Arrow" chứ ko phải "Fire arow"
Mã:
function MyPartnerAttack(){
	m = SelectF1Target()
	sk = SkillID("Fire Arrow");
	ts.SendAttack( 
		  ts.CurrentPartner.Row
		, ts.CurrentPartner.Col
		, m.Row
		, m.Col
		, sk
	)
}
 
pác micral xem hộ em cái đoạn code này chút, em test rồi nhưng mà nó chỉ chạy ra tọa độ mình định sẵn và đứng im chứ ko chịu ngồi :D với lại khi playeroffline thì nó ko chịu đánh típ ::( , pác sưa lại giúp em nha :hug:

Mã:
var state="";
var prev_state="";
......
......
function PlayerOnline(playerid) {
  if (playerid>101 && playerid<501) {
     prev_state = state;
     state = "GM";
}
}
function PlayerOffline(playerid) {
  if (playerid>101 && playerid<501) {
     state = prev_state;
     if (state=="autowarp") Start();
}
}
.....
.....
function warpFinish(){ 
debug("Enter to map id: " + ts.Character.mapid + " by portal id: " + ts.LastWarpId ,0) 
if (state == "") { 
Start()  
} else if (state == "stop") { 
ts.SendAction(47) //sit down 
}
if (state=="GM") {
     ts.Walk(462,455);
     ts.Delay(2000);
     ts.Sit(1);
     return;
   }
}
 
Connecting Server.......
Connection error. 10060 - The attempt to connect timed out
Try - reconnect after 10 sec 5:01:46 PM
bó tay . ai xem lại giùm với
 
@HML : Sit() thôi, không cần ts.sit(). Muốn ngồi way mặt random thì : Sit(getrandom(1,4)).
Còn cái PlayerOffline của pác đang là state = "autowarp" muh.
 
Nhan' vao` day de? ban down ve` Chương trình này tự động trả lời câu hỏi của Bắc Tinh Quân mình lên web của nước ngoài thấy hay nên post lên cho các bạn game thủ nghiên cứu rất hay sau đây là cách sử dụng :
Bạn down về giải nén ra nếu bạn chưa có chương trình giải nén thì bạn down ở đâyNhan' vao` day de ban down chuong trinh` giai? nen' Wrar sau khi bạn giải nén ra thì bạn copy 3 file đó vào 1 Folder rồi bạn copy cái Folder đó vào ổ Disk C sau đó nhấn double vào cái chữ Tap có hình con bướm (nó nằm ở trong cái Folder mà bạn mới copy vào trong ổ C đó), nó sẽ hiện ra 1 cái khung có chữ Auto Answer rồi bạn login vào game rồi tiếp tực bạn nhấn vào chữ Auto Answer nếu nó hiện ra báo lổi 1 lần thì OK còn nếu nó hiện ra báo lổi 2 lần là sai thì bạn nên làm lại từ đầu.

Chúc Các Bạn Thành Công
 
var state = ""

var mapid1 = 12013; //inside
var mapid2 = 12521;
var warpid1 = 1;
var warpid2 = 5;

var warp_pos_x_min = 1520;
var warp_pos_x_max = 1542;
var warp_pos_y = 175;

var warp_pos_x_B = 42;
var warp_pos_y_B = 1615;

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 MyMapID = 15802;
var pt_count =0;

var battle_round=0;

var myParty = new Array(75740,919605,342820,75292,362719); //con cai cuoi cung muon pt ai thi danh vao
pt_leader = myParty[0]; //id chu pt
pt_sena = myParty[1]; //id quan su

function MyAttack(){

m = SelectF1Target();
// hoac:
// m = findMonster(); (nhu tdck thuo`ng)

battle_round++;

sk = SkillID("Fire Arrow"); //skill

ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, m.Row
, m.Col
, sk
);

}


function MyPartnerAttack(){
m = SelectF1Target();
sk = SkillID("Attack");

ts.SendAttack(
ts.CurrentPartner.Row
, ts.CurrentPartner.Col
, m.Row
, m.Col
, sk
)
}

function BattleStarted(){

}

function BattleStoped(){
EatHP();
EatSP();
ViewState();
}

function EatHP(){
if (ts.Character.HP < (ts.Character.MAXHP * hpFraction)){
doEatHP(0,(ts.Character.MAXHP * hpFraction)-ts.Character.HP)
}
if (ts.CurrentPartner.HP < (ts.CurrentPartner.MAXHP * hpFraction)){
doEatHP(ts.CurrentPartner.Order,(ts.CurrentPartner.MAXHP * hpFraction)-ts.CurrentPartner.HP)
}
}

function EatSP(){
if (ts.Character.SP < (ts.Character.MAXSP * spFraction)){
doEatSP(0,(ts.Character.MAXSP * spFraction)-ts.Character.SP)
}
if (ts.CurrentPartner.SP < (ts.CurrentPartner.MAXSP * spFraction)){
doEatSP(ts.CurrentPartner.Order,(ts.CurrentPartner.MAXSP * spFraction)-ts.CurrentPartner.SP)
}
}

function ViewState(){
debug("************************************",0xFF0000)
debug(" Battle Count : " + battle_count ,0xFF0000)
debug(" Dead Count : " + die_count ,0xFF0000)
debug(" Pet KO Count : " + pet_die_count, 0xFF0000)
debug(" Lucky Count : " + god_count, 0xFF0000)
debug(" Ghost Count : " + ts.Character.Ghost ,0xFF0000)
debug(" Warrior's FAI : " + ts.CurrentPartner.CharName +" : " + ts.CurrentPartner.fai,0xFF0000)
debug("************************************",0xFF0000)
}

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)
var x = get_random(warp_pos_x_min,warp_pos_x_max)
ts.Walk(x,warp_pos_y);
WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);

}
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)
}
var x = get_random(warp_pos_x_min,warp_pos_x_max)
ts.Walk(x,warp_pos_y);
WarpLink( mapid2 ,warpid2 , mapid1 ,warpid1);

}

function onNPCAppear( npcmapid , x , y ){
//debug(npcmapid,0)
if(npcmapid == npcmapid){
ts.ClickOnNPC(npcmapid)
ts.ClickOnNPC(npcmapid)
}
}




function doEatHP(order,difHp){
for(var i = 1;i<= 25 ;i++){
var oSlot = ts.MyItems.Item(i)
var oItem = ITEMS.Item(oSlot.itemid)
if (oSlot.itemid == 0){ continue; }
if(oItem.isHPItem()){
if (oItem.itemvalue > difHp){ continue; }
var eatHpAmt = (difHp - (difHp % oItem.itemvalue)) / oItem.itemvalue
if (eatHpAmt> 0){
if (eatHpAmt > oSlot.num){eatHpAmt = oSlot.num; }
ts.EatItem(i,eatHpAmt,order)
debug( "?"+oItem.itemname+" HP "+oItem.itemvalue+"at slot "+i+" decrease "+eatHpAmt+"?" ,0xC08008 )
difHp = difHp - eatHpAmt * oItem.itemvalue
}
}
}
}

function doEatSP(order,difSp){
for(var i = 1;i<= 25 ;i++){
var oSlot = ts.MyItems.Item(i)
var oItem = ITEMS.Item(oSlot.itemid)
if (oSlot.itemid == 0){ continue; }

if(oItem.isSPItem()){
if (oItem.itemvalue > difSp){ continue; }
var eatSpAmt = (difSp - (difSp % oItem.itemvalue)) / oItem.itemvalue
if (eatSpAmt> 0){
if (eatSpAmt > oSlot.num){eatSpAmt = oSlot.num; }
ts.EatItem(i,eatSpAmt,order);
debug( "?"+oItem.itemname+" SP "+oItem.itemvalue+"at slot "+i+" decrease "+eatSpAmt+"?" ,0xC08008 );
difSp = difSp - eatSpAmt * oItem.itemvalue ;
}
}

}
}

function culoc(){
if (ts.Character.mapid == 12013) {
ts.delay(3000);
ts.Walk(1520,175); // walk to the gate
ts.warp(1);
return ;
// delay call ts.Warp for 1000 milliseconds
} else
if (ts.Character.mapid == 12521) {
ts.delay(3000);// delay 1 seconds
ts.Walk(42,1615);
ts.warp(5) ;
return ;

}
}


function Start(){
state = "" ;
culoc();
}


function NpcDialogMenu(DialogId){
//debug("DialogM1 "+DialogId,0x0000FF)
if(DialogId==1){
ts.SelectChoice(1);
ts.SendEnd();
} else { ts.SendEnd() }
}

function NpcDialog(DialogId){
//debug("DialogM "+DialogId,0x0000FF)
ts.SendEnd()
}


function Stop(){

}

function CheckDisconnect(){
if(ts.Character.HP < (DisconnectFlag * ts.Character.MAXHP)
|| ts.CurrentPartner.HP <(DisconnectFlag * ts.CurrentPartner.MAXHP)
){
frm.mnuEnableReconnect.Checked = false;
ts.Disconect();
}
}

function OnPrivateMsg(PlayerName , Msg){
debug(PlayerName + ": " + Msg,0);
}


function InitBot() {
debug("my bot" , 0x00FF00 );
EatHP();
EatSP();

Timer.Enabled=true;
}

function OnTimer(){
if (ts.CurrentParty==0) ts.RequestParty(pt_leader);
}

function WaitAcceptParty(playerid){
for (var i=0; i<myParty.length;i++) {
if (playerid ==myParty) { ts.AcceptParty(playerid); }
}
}

function AcceptedParty(playerid){
//pname = getPlayerName(playerid)

for(var i=0;i<myParty.length;i++){
if(playerid == myParty){
ts.AcceptParty(playerid)
if(playerid == pt_sena){
ts.sena(playerid)
}
break;
pt_count++;
if (pt_count==4) {
Start();
}
}
}

}

function RequestPartyAcceptFrom(PlayerId ){
}

function PartyStop( playerid ){
for (var i=0; i<myParty.length;i++) {
if (playerid ==myParty) { ts.Disconect(); }
}
}

function onPlayerWalk( uid , x , y ){
//debug("uid = " + uid + " x = " + x + " y = " + y,0);
}

function warpFinish(){
debug("Enter to map id: " + ts.Character.mapid + " by portal id: " + ts.LastWarpId ,0);
if (state == "") {
culoc();
}
}



InitBot()
debug(ts.Character.Ghost,0x0000FF)


mình thử nhìu lần rui nhưng cứ ra vào 3 lần là dis tìm hoai ko bit nó dis do
function nào ai co thể giúnh mình ko? ::(
 
KSDT oi bạn update cái file filter moi lên đi KSDT ơi mấy cái bảng cũ xài hết được rùi ko thì bác MC update lên đi đễ xài đi nà chán wá à
 
Status
Không mở trả lời sau này.
Back
Top