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.
WPE là 1 dạng packet sniffer nên đc các ct AV xếp vào hàng virus nhưng đó là vì bản thân ct WPE nó như vậy chứ ko phải ai đó cố tình cài thêm trojan vào.
ai vẫn còn nghi ngờ thì tốt nhất nên quên chuyện dùng WPE đi vì down ở đâu cũng nhận đc thông báo đó thôi.
 
Cho hỏi tôi dùng 1 acc login = alogin sau đó cho 1 acc login vào truebot thì khi đánh con login = truebot nó uống máu 1 loáng là hết sạch mấy trăm bình máu rồi dis T_T. Ai hiểu rõ nguyên nhân xin chỉ giùm.
 
MC&MG ơi hỏi cái tui chạy được TB rầu nhưng mà nó chỉ đứng 1 chỗ thôi à chẳng nhúc nhích gì muốn đánh phải sửa scrip nhưng ko bít xài sao sửa thì nhu thế nào tìm ID cụ thể ra sao chẳnng hạn bot giản ung thi vào nhà nó nè rồi dùng cai WPE seach nhưng seach thế nào ko hiểu chỉ cụ thể cái đi pa làm 1 ví dụ cụ thể là hiểu ngay thôi ko cần up full lên chỉ cần các bước để lập đươc
 
ac chan' wa' vo dc roi` nhung no dung im mai~ ko chiu. lam` gi` het ma` con cai phan tao script de vo bot thi cung ko biet ai pro chi dum` tui di moi down ve nen cung ko biet' doc thi cha? hieu? mo^ te^ gi` het' khi dow ve trong phan trubot co may cai script do la` minh vo sua? roi` la` sai dc hay sao vay. ai giup tui dum` di xin hau ta. nick:[email protected]
 
hay la` minh vo phan script sua? lai mot vai thong tin rui` sau do save roi` vo trubot mo? file nhan' Reload script F5 la` sai` dc hay sao vay cac anh
 
Sao tui đã ghi id sv,id,pass
roi login
no bao loi
chuyen nay la sao
ai bit xin chi gium cai
 
lan on di pass Micral
please
lúc trước anh cũng ở luubi mà
 
hay bác nào cho em bản scrip bot đọc du ác với em tập bot thanks nhiều MC mì pm kao cái đóa đê móa
 
ngoài ra phần function MyAttack va function MyPartnerAttack, nên chỉ chính xác vị trí đánh và xài biến đếm turn cho nhẹ script, ko nên xài các function hỗ trợ như SelectF1Target() MonsterAlive() findMonster(). Chỉ trừ khi rơi vào trường hợp ko xử lý được thì mới cần phải nhờ đến nó. Nếu là hoàng cung DT thì turn1 vị trí đánh là (0,2) còn turn2 thì là (0,3). ::)[/QUOTE]

anh MG post lên cho em xem cái đoạn script này vơi' được không anh ^_^.
Cám ơn anh nhiều
 
MGAngel nói:
To KiemCun: script của mem:
Mã:
 Với lại ngoài ra phần function MyAttack va function MyPartnerAttack, nên chỉ chính xác vị trí đánh và xài biến đếm turn cho nhẹ script, ko nên xài các function hỗ trợ như SelectF1Target()  MonsterAlive()  findMonster(). Chỉ trừ khi rơi vào trường hợp ko xử lý được thì mới cần phải nhờ đến nó. Nếu là hoàng cung DT thì turn1 vị trí đánh là (0,2) còn turn2 thì là (0,3).  ::)[/QUOTE]

Anh MG post cho em xem cái đoạn script này được không anh ^_^
Cám ơn anh nhiều.
 
vô dc roài nhung sao ko sài dc vậy. có thể chỉ dẫn kỹ hơn dc ko.
cám ơn nhìu
 
micral cho hỏi làm sao để tìm DialogId vậy.
Tôi sử dụng đọan script bot doc du ac của micral, tìm được cái npcid là 3 rồi
nhưng login vào, chọn command/test click npc va` chọn 3 thi nó mới đánh và chỉ đánh 1 lần rồi ngưng, ko đánh nữa. Muốn đánh tiếp lại phải chọn test click Npc.
Còn cái warpid khi dò bằng WPE thì mình chọn packet nào, byte bao nhieu để xor vậy.
 
À anh Micral cho em xin cái font chữ của True bot
chỗ em ko có font này nên em ko đọc dc
 
huunhon nói:
micral cho hỏi làm sao để tìm DialogId vậy.
Tôi sử dụng đọan script bot doc du ac của micral, tìm được cái npcid là 3 rồi
nhưng login vào, chọn command/test click npc va` chọn 3 thi nó mới đánh và chỉ đánh 1 lần rồi ngưng, ko đánh nữa. Muốn đánh tiếp lại phải chọn test click Npc.
Còn cái warpid khi dò bằng WPE thì mình chọn packet nào, byte bao nhieu để xor vậy.

Mã:
function BattleStoped(){ 
...
...
ts.ClickOnNPC(npcID);
ts.ClickOnNPC(npcID);
}

khi tìm warpid thì vào options của WPE uncheck Recv/RecvFrom tức là chỉ log các packet được Send đi thôi. sau đó start log, đi bộ vào warphole sẽ log đc 2 packet là ts.Walk và ts.Warp
packet thứ 2 là ts.Warp. byte kế cuối là warpid. xor mask = 0xAD.
 
Anh micral cho em xin cái script Bot Trương Giác, Triệu Vân và tào Tháo đi anh, tại em dùng cái script Đốc Du Ác của anh để Edit mãi mà ko được .... hic hic
 
jet send tui cái script bot độc du ác tham khảo được không
 
Hix! các bác giúp em với! em có 2 ID muốn cho no treo may để luyện lv mà ko hiểu sao no ko pt dc với nhau à! Với lại chỉ con nào co hỏa tiễn thi nó bắn còn con nào mà ko co hỏa tiễn thi nó chi đúng im cha chiu danh gì cả à! hix.Bác nào giúp em với code của em đây ne`! xin các bác chỉnh lại dùm em để có thể pt luyện lv cái.

Đây là của chủ pt

Mã:
var state = "";
var pt_count=0;
var max_coumt=1
var ghost_count = 0;
var DisconnectFlag = 0.3;
var isMove = 0;
var isAutoRegenOK = 1;
var x;
var y;
var god_count = 0; 
var die_count = 0; 
var pet_die_count = 0; 
var battle_count = 0; 
var HealingFlag = 0.5; 
var hpFraction = 0.8  
var spFraction = 0.65
var MyMapID = ts.Character.mapid;
function Start(){
// no remove this function
ts.Walk(562,1615)
}
function Stop(){
// no remove this function
ts.Walk(302,1795) 
}
function MyAttack(){ 
m = SelectF1Target() 
sk = SkillID(attack);
ts.SendAttack( 
ts.Character.Row 
, ts.Character.Col 
, m.Row 
, m.Col 
, sk =10000
) 
} 
function MyPartnerAttack(){ 
m = SelectF1Target() 
sk = SkillID(attack);
ts.SendAttack( 
ts.CurrentPartner.Row 
, ts.CurrentPartner.Col 
, m.Row 
, m.Col 
, sk =10000
) 
} 
function AcceptedParty(playerid)
{
if(playerid == getPlayerId("vn466847") )
	{ 
		ts.AcceptParty(playerid)
		pt_count++;
    }
	if(playerid == getPlayerId("vn466847")) 
    { 
       ts.sena(playerid)
    } 
	if (pt_count==max_count)
	{
		Start(); 
	}
}
function PartyStop( playerid )
{ 
	if(playerid == getPlayerId("vn466847") )
	{ 
             pt_count--;
		debug("Dis by " + playerid + " dis",0xFF0000)
		ts.Disconect(); 
	}
}
function BattleStarted(){ 
battle_count++; 
} 
function BattleStoped(){ 
/* Just safty first. for Warrior not leave you call function SaveWarrior() every end battle. */ 
SaveWarrior(); 
CheckDisconnect(); 
AutoEatHPSP()
ViewState() 
//ts.ClickOnNPC(1) 
} 
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 SaveWarrior(){ 
if(ts.CurrentPartner.HP< ((0.20) * ts.CurrentPartner.MAXHP)){ 
//ts.Disconect(); 
debug(" SAVE THE FAI DISCONNECT NOW! : ",0x0000FF); 
} 
} 
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) || (oSlot.itemid == 50001)) { 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 AutoEatHPSP() { 
   var bRet=true; 
   if (ts.Character.HP < (ts.Character.MAXHP * hpFraction)){ 
      doEatHP(0,(ts.Character.MAXHP)-ts.Character.HP) 
   } 
   if (ts.Character.SP < (ts.Character.MAXSP * spFraction)){ 
      doEatSP(0,(ts.Character.MAXSP)-ts.Character.SP) 
   } 
   if (ts.CurrentPartner.HP < (ts.CurrentPartner.MAXHP * hpFraction)){ 
      doEatHP(ts.CurrentPartner.Order,(ts.CurrentPartner  .MAXHP )-ts.CurrentPartner.HP) 
   } 
   if (ts.CurrentPartner.SP < (ts.CurrentPartner.MAXSP * spFraction)){ 
      doEatSP(ts.CurrentPartner.Order,(ts.CurrentPartner  .MAXSP )-ts.CurrentPartner.SP) 
   } 
}
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)){
AddQA(ts.LastQuestion,ts.LastResponseAnswer)
msg = "AddQA(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
WriteLog("QA.js",msg)
}
}
function OnTimer(){
if(isAutoRegenOK==1) {
if (isAutoRegen){
if (ts.Character.HP >= CharFlagHighHP && ts.CurrentPartner.HP >= PartnerFlagHighHP){
debug("Going to Battle field...",0x00FF00);
isAutoRegen = 0;
status=1;
Timer.Enabled = false
MoveCircle( MyMapID )
}
}
}
if(isMove) {
if(x) {
Move(corX1,corY1)
x = 0
}else{
Move(corX2,corY2)
x = 1
}

}
}
function FinishAnswerFuckGod(){
if(ghost_count>=3){
debug("3 FuckGod detected bye!",0x00FF00);
//ts.Disconect();
}
}
function Start(){
// no remove this function
ts.Walk(562,795)
}
function Stop(){
// no remove this function
ts.Walk(242,715)
}
function CheckDisconnect(){
if(ts.Character.HP < 2
|| ts.CurrentPartner.HP < 2
){
//ts.Disconect();
}
}
function OnChat(PlayerName , Msg){
debug(PlayerName + " " + Msg , 0 )
}
function InitBot()
{
}
function onNPCAppear( npcmapid , x , y ){ 
//debug(npcmapid,0) 
if(npcmapid == npcmapid){ 
ts.ClickOnNPC(npcmapid) 
ts.ClickOnNPC(npcmapid) 
} 
} 
InitBot()
ClearLog("Wrong.js")

Còn đây là của con pt nè

Mã:
var state = "";
var pt_count=0;
var max_coumt=1
var ghost_count = 0;
var DisconnectFlag = 0.3;
var isMove = 0;
var isAutoRegenOK = 1;
var x;
var y;
var god_count = 0; 
var die_count = 0; 
var pet_die_count = 0; 
var battle_count = 0; 
var HealingFlag = 0.5; 
var hpFraction = 0.8  
var spFraction = 0.65
var MyMapID = ts.Character.mapid;

function BattleStarted(){ 
battle_count++; 
} 
function BattleStoped(){ 
/* Just safty first. for Warrior not leave you call function SaveWarrior() every end battle. */ 
SaveWarrior(); 
CheckDisconnect(); 
AutoEatHPSP()
ViewState() 
//ts.ClickOnNPC(1) 
} 
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 SaveWarrior(){ 
if(ts.CurrentPartner.HP< ((0.20) * ts.CurrentPartner.MAXHP)){ 
//ts.Disconect(); 
debug(" SAVE THE FAI DISCONNECT NOW! : ",0x0000FF); 
} 
} 
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) || (oSlot.itemid == 50001)) { 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 AutoEatHPSP() { 
   var bRet=true; 
   if (ts.Character.HP < (ts.Character.MAXHP * hpFraction)){ 
      doEatHP(0,(ts.Character.MAXHP)-ts.Character.HP) 
   } 
   if (ts.Character.SP < (ts.Character.MAXSP * spFraction)){ 
      doEatSP(0,(ts.Character.MAXSP)-ts.Character.SP) 
   } 
   if (ts.CurrentPartner.HP < (ts.CurrentPartner.MAXHP * hpFraction)){ 
      doEatHP(ts.CurrentPartner.Order,(ts.CurrentPartner  .MAXHP )-ts.CurrentPartner.HP) 
   } 
   if (ts.CurrentPartner.SP < (ts.CurrentPartner.MAXSP * spFraction)){ 
      doEatSP(ts.CurrentPartner.Order,(ts.CurrentPartner  .MAXSP )-ts.CurrentPartner.SP) 
   } 
}
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)){
AddQA(ts.LastQuestion,ts.LastResponseAnswer)
msg = "AddQA(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
WriteLog("QA.js",msg)
}
}
function OnTimer(){
if(isAutoRegenOK==1) {
if (isAutoRegen){
if (ts.Character.HP >= CharFlagHighHP && ts.CurrentPartner.HP >= PartnerFlagHighHP){
debug("Going to Battle field...",0x00FF00);
isAutoRegen = 0;
status=1;
Timer.Enabled = false
MoveCircle( MyMapID )
}
}
}
if(isMove) {
if(x) {
Move(corX1,corY1)
x = 0
}else{
Move(corX2,corY2)
x = 1
}

}
}
function FinishAnswerFuckGod(){
if(ghost_count>=3){
debug("3 FuckGod detected bye!",0x00FF00);
//ts.Disconect();
}
}
function Start(){
// no remove this function
ts.Walk(562,795)
}
function Stop(){
// no remove this function
ts.Walk(242,715)
}
function CheckDisconnect(){
if(ts.Character.HP < 2
|| ts.CurrentPartner.HP < 2
){
//ts.Disconect();
}
}
function OnChat(PlayerName , Msg){
debug(PlayerName + " " + Msg , 0 )
}
function InitBot()
{
ts.requestParty(getPlayId("vn01523642"))
}
function onNPCAppear( npcmapid , x , y ){ 
//debug(npcmapid,0) 
if(npcmapid == npcmapid){ 
ts.ClickOnNPC(npcmapid) 
ts.ClickOnNPC(npcmapid) 
} 
} 
InitBot()
ClearLog("Wrong.js")
 
Nè bear :
Mã:
function NpcDialogMenu(DialogId){ 
debug("Menu "+DialogId,0x0000FF) 
if (DialogId==1) {
ts.SelectChoice(1); 
ts.SendEnd(); 
} else {
ts.SendEnd();
}
} 

function NpcDialog(DialogId){ 
debug("Dialog "+DialogId,0x0000FF) 
if (DialogId==10152) {
   ts.SendEnd();
} else if (DialogId==10150) {
   ts.SendEnd();
   ts.ClickOnNPC();
}
}
......
function Start(){ 
ts.ClickOnNPC(3) 
ts.ClickOnNPC(3) 
} 

function BattleStoped(){ 
ts.ClickOnNPC(3);
ts.ClickOnNPC(3);
}
 
gửi cái bản full làm mẫu để pt 2 người chỉ dẫn các bước từ khi vô acc chu pt nhé
 
Hic đây nè
Mã:
var state = "";
var ghost_count = 0;
var DisconnectFlag = 0.9; 
var isAutoRegenOK = 0;
var pt_count=0; 
var max_count=4;

var hpFraction = 0.7;  // an hp khi máu < 70%
var spFraction = 0.6;  // an sp khi sp < 60%


function AcceptedParty(playerid)
{
    if(playerid == getPlayerId("AAA") || playerid == getPlayerId("BBB") || playerid == 

getPlayerId("CCC") || playerid == getPlayerId("DDD") || playerid == getPlayerId("EEE"))
	{ 
		ts.AcceptParty(playerid)
		pt_count++;
    }
	if(playerid == getPlayerId("b")) 
    { 
       ts.sena(playerid) //set Sena
    }
	

function MyAttack(){ 
   m = SelectF1Target() 
   sk = 10000; 
   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 
   ) 
}


function OnTimer(){
ts.ClickOnNPC(3)
debug("DialogId "+DialogId,0x0000FF) 
}

function ViewState(){
	debug("************************************",0xFF0000)
	debug("So Tran Danh : " + battle_count    ,0xFF0000)
	debug(" Hp Con De  : " + ts.CurrentPartner.HP    ,0xFF0000)
	debug("So Lan Chet    : " + die_count       ,0xFF0000)
	debug(" So Ma dang Deo   : " + ghost_count,0xFF0000)
	debug(" So Phuc Than da nhan : " + lucky_count,0xFF0000)
	debug(" Do Trung Thanh : " + ts.CurrentPartner.CharName +" : " + 

ts.CurrentPartner.fai,0xFF0000)
	debug("************************************",0xFF0000)
}

function CheckHP(){ 
      if (ts.Character.HP < (ts.Character.MAXHP * hpFraction)){ 
      doEatHP(0,(ts.Character.MAXHP * hpFraction)-ts.Character.HP) 
      } 
      if (ts.Character.SP < (ts.Character.MAXSP * spFraction)){ 
      doEatSP(0,(ts.Character.MAXSP * spFraction)-ts.Character.SP) 
      } 
      if (ts.CurrentPartner.HP < (ts.CurrentPartner.MAXHP * hpFraction)){ 
      doEatHP(ts.CurrentPartner.Order,(ts.CurrentPartner  .MAXHP * 

hpFraction)-ts.CurrentPartner.HP) 
      } 
      if (ts.CurrentPartner.SP < (ts.CurrentPartner.MAXSP * spFraction)){ 
      doEatSP(ts.CurrentPartner.Order,(ts.CurrentPartner  .MAXSP * 

spFraction)-ts.CurrentPartner.SP) 
      } 
       

} 

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 || oSlot.itemid == 50001){ 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 CheckDisconnect(){
	if(ts.Character.HP <= 0){
		die_count++
	}
	if(die_count>3){
		ts.Disconect();
	}
}

function InitBot(){

}

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

function BattleStoped(){ 
ts.ClickOnNPC(3);
ts.ClickOnNPC(3);
}

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 == "Morale pill" ||
itemname == "Honey pill" ||
itemname == "Cleardewwine" ||
itemname == "Strawberry"
)
ts.DropItem(oSlot.slot,oSlot.num); 
}
}

function onEvilGod()
{
	debug("E V I L  G O D."+"["+ghost_count+"]",0x0000FF)
    msg = "Wrong.Add(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
}

function onLuckyGod()
{
	debug("LUCKY G O D.",0xFF0000)
	if(!QA.Exists(ts.LastQuestion))
	{
		ts.delay(6000);
		QA.Add(ts.LastQuestion,ts.LastResponseAnswer)
		msg = 

"QA.Add(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
	}
	ts.delay(5000);
}


function FinishAnswerFuckGod()
{ 
	if(ts.Character.mapid==12301)
	{
		debug("Cont",0xFF0000)
		ts.delay(300);
		ts.Warp(1)
		return
	}
	else if(ts.Character.mapid==12063)
	{
		ts.delay(300);
		ts.Warp(2)
		return
	}
	if(ghost_count>=1)
	{
		debug("Dis by Ghost",0xFF0000)
	    ts.Disconect();
	}
} 



function warpFinish()
{
	if(ts.Character.mapid==12301)
	{
		ts.delay(300);
		ts.Warp(1)
		return
	}
	else if(ts.Character.mapid==12063)
	{
		ts.delay(300);
		ts.Warp(2)
		return
	}
} 

function Start(){ 
ts.ClickOnNPC(3) 
ts.ClickOnNPC(3) 
} 

function Stop(){ 
state = "stop" 
} 
function NpcDialogMenu(DialogId){ 
debug("Menu "+DialogId,0x0000FF) 
if (DialogId==1) {
ts.SelectChoice(1); 
ts.SendEnd(); 
} else {
ts.SendEnd();
}
} 

function NpcDialog(DialogId){ 
debug("Dialog "+DialogId,0x0000FF) 
if (DialogId==10152) {
   ts.SendEnd();
} else if (DialogId==10150) {
   ts.SendEnd();
   ts.ClickOnNPC();
}
}





InitBot()
AAA , BBB, CCC là tên các thành viên mà chủ pt muốn cho vào đó, thích pt full hay 2,3 người gì cũng dc
 
Status
Không mở trả lời sau này.
Back
Top