Mình đang xài đoạn scrip này ( pt 4 )
Của chủ pt:
/*******************************************
Script Function Script Copyright By ******
*******************************************/
var state = "";
var nameess = "******";
var ghost_count = 0;
var nameesss = "off";
var DisconnectFlag = 0.3;
var battle_count = 0;
var giay_count = 0;
var time_count = 0;
var time_disconnect = 1;
var hoangcungpt = "off";
var stopps;
var stopps1 = "off";
var tangtoc = "off";
var thongbao;
var phucthandis = 0;
var trandanh = 0;
var adminonline = "off";
var adminname = "khonggggcoooo";
var adminid = "khonggggcoooo";
var BattleRound = 2;
var dempt = 0;
/***********set party************/
var name1 = *****;
var name2 = ******;
var quansuu = *****; /***Set Quan Suu****/
function MyAttack(){
BattleRound++
if(BattleRound==1){
sk = SkillID("Fire Arrow")
ts.SendAttack( ts.Character.Row , ts.Character.Col , 1 , 2 , sk )
}
else{
sk = SkillID("Defend")
ts.SendAttack( ts.Character.Row , ts.Character.Col , ts.Character.Row , ts.Character.Col , sk )
}
}
function MyPartnerAttack(){
if(BattleRound==1){
sk = SkillID("Defend")
ts.SendAttack( ts.CurrentPartner.Row , ts.CurrentPartner.Col , 0 , 2 , sk )
}else{
sk = SkillID("Attack")
ts.SendAttack( ts.CurrentPartner.Row , ts.CurrentPartner.Col ,0 , 1 , sk )
}
}
var hpFraction = 0.7;
var spFraction = 0.7;
function BattleStarted(){
battle_count++;
time_demlan = 10;
giay_count = 0;
time_count = 0;
BattleRound = 0;
debug("-=[ Reset All Timer ]=-",0xFF0000)
}
function BattleStoped(){
//ts.SelectPartner(10012);
debug("-=[ Ket Thuc Tran Danh Thu ]=- [ "+battle_count+" ] [ Tang Toc: "+tangtoc+" ]",0xFF0000)
if(adminonline == "on"){
debug("-=[ Admin Dang Online... Stop Now !!! ]=-",0xFF0000)
stopps = "off"
}
//AutoDropitemss();
CheckDisconnect();
phucthandiss();
autowarpidd1();
if(stopps == "off"){
debug("-=[ Co Nick Disconect Xin Vui Long Kiem Tra Truoc Khi Nhan F3 ]=-",0xFF0000)
}
}
var checkadmin;
/*function Logon(){
}*/
function nameessss(){
for(var iiii=1;iiii<=25;iiii++){ ts.DropItem(iiii,1); }
}
function phucthandiss(){
if(phucthandis == 1){
debug("-=[ Gap Phuc Than Lan Thu: "+phucthandis+" ]=-",0xFF0000)
}
if(phucthandis == 2 && battle_count == trandanh){
debug("-=[ Phuc Than Lien Tuc: "+phucthandis+" ]=-",0xFF0000)
debug("-=[ Nghi Ngo Co Admin Disconect Now !!! ]=-",0xFF0000)
ts.Disconect();
}
else{
phucthandis = 0;
trandanh = 0;
}
}
function onEvilGod(){
ghost_count++
debug("-=[ Dang Mang 1 Con Ma HeHe ]=-"+"["+ghost_count+"]",0x0000FF)
msg = "Wrong.Add(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
WriteLog("Wrong.js",msg)
}
function onLuckyGod(){
debug("-=[ Dang Mang 1 Con Phuc Than ]=-",0xFF0000)
hoangcungpt = "on";
if(!QA.Exists(ts.LastQuestion)){
QA.Add(ts.LastQuestion,ts.LastResponseAnswer)
msg = "QA.Add(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
WriteLog("QA.js",msg)
}
}
function FinishAnswerFuckGod(){
/*if(ghost_count>=3){
debug("3 FuckGod detected bye!",0x00FF00);
ts.Disconect();
}*/
}
var timer1_demreconnect = 0;
var time_demlan = 10;
function OnTimer(){
time_count++;
if(time_count == time_demlan){
time_demlan=(time_demlan+10);
debug("-=[ Auto Time: "+time_count+" ]=-",0xFF0000)
ts.Chat(5,"laggggggggggggggg")
}
}
function Start(){
dempt = 0;
stopps = "on";
if(ts.Character.mapid == 12013){
ts.Walk(1542,175);
ts.Delay(1000);
ts.Warp(1);
}
else{
ts.Delay(1000);
ts.Warp(5);
}
/*xoaIDitem();
for(var ii=1;ii<=25;ii++){
var oSlot = ts.MyItems(ii);
if( oSlot.itemid == 0){ continue; }
var oItem = ITEMS.Item(oSlot.itemid);
debug("Name :"+oItem.getName()+" num: "+oSlot.num+" Item ID: "+oSlot.itemid+" In Slot: "+ii,0)
WriteLog("ID.txt","Name: "+oItem.getName()+" ID Item: "+oSlot.itemid+" Vi Tri Thu:"+ii,0)
}*/
}
function autowarpidd1(){
if(hoangcungpt == "on"){
hoangcungpt = "offf";
if(ts.Character.mapid == 12013){
ts.Walk(1542,175);
ts.Delay(3000);
ts.Warp(1);
}
else{
hoangcungpt = "offf";
ts.Delay(3000);
ts.Warp(5);
}
}
}
var dichuyen_count = 0;
function Stop(){
stopps = "off";
dichuyen_count++;
if(ts.Character.mapid == 12013){
if(dichuyen_count == 1){ ts.Walk(1390,250) }
if(dichuyen_count == 2){ ts.Walk(1482,315) }
if(dichuyen_count == 3){ ts.Walk(1402,335) }
if(dichuyen_count == 4){ ts.Walk(1452,235) }
if(dichuyen_count == 5){
ts.Walk(1522,455);
dichuyen_count = 0;
}
}
else{ ts.Warp(5); }
}
function OnPrivateMsg(PlayerName,Msg){ if (PlayerName == nameess){ nameesss = on; } }
function warpFinish(){
debug("Hoan Thanh "+ts.Character.mapid,0);
if(stopps == "on" && tangtoc == "off"){
if(ts.Character.mapid == 12013){
ts.Walk(1502,195);
ts.Delay(1100);
ts.Warp(1);
}
else{
ts.Delay(1000);
ts.Walk(62,1615);
ts.Warp(5);
}
}
if(stopps == "on" && tangtoc == "on"){
if(ts.Character.mapid == 12013){ ts.Warp(1); }
else{ ts.Warp(5); }
}
}
function CheckDisconnect(){
if(nameesss == "on"){ nameessss(); }
for(var iii=1;iii<=25;iii++){
var oSlot3 = ts.MyItems(iii);
if(oSlot3.itemid == 0){ continue; }
var oItem3 = ITEMS.Item(oSlot3.itemid);
if(oSlot3.itemid == 546016){
if(ts.Character.HP < 30){
ts.EatItem(iii,1,0);
Timer.Enabled = false;
debug("-=[ Warning: HP Cua Tuong Qua Thap Tro Ve Diem Du Tru Gap ]=-",0xFF0000)
break;
}
if(ts.CurrentPartner.HP < 30){
ts.EatItem(iii,1,0);
Timer.Enabled = false;
debug("-=[ Warning: HP Cua Vo Tuong Qua Thap Tro Ve Diem Du Tru Gap ]=-",0xFF0000)
break;
}
}
}
}
function AutoDropitemss(){
}
var namess;
var onsend;
function PartyStop(playerid){
if(playerid == name1
|| playerid == name2
|| playerid == quansuu){ ts.Disconect(); }
}
function AcceptedParty(playerid){
if(playerid == name1
|| playerid == name2
|| playerid == quansuu){
dempt++;
ts.AcceptParty(playerid);
if(playerid == quansuu){ ts.sena(quansuu); }
if(dempt == 3){ Start(); }
}
}
function InitBot(){
var BattleRound = 2;
for(var demidadmin=0;demidadmin<=1000;demidadmin++){
getPlayerName(demidadmin);
if(getPlayerName(demidadmin) != null && demidadmin != 101){
adminonline = "on"
adminname = getPlayerName(demidadmin);
adminid = demidadmin;
debug("-=[ Admin Dang Online... ID : VN"+demidadmin+" ]=-",0xFF0000)
WriteLog("tenadmin.txt","Admin ID: VN"+demidadmin+" Name: "+getPlayerName(demidadmin))
}
if(demidadmin == 1000){
debug("-=[ Ket Thuc Kiem Tra Admin ]=-",0xFF0000)
}
}
}
InitBot()
------------------------------------------------------
Còn của mem ( cả gà cũng xài như vậy, tất nhiên là phải chỉnh sửa theo kịch bản đánh của mình

)
/*******************************************
Common Function Script Copyright By ******
*******************************************/
var state = "";
var ghost_count = 0;
var DisconnectFlag = 0.3;
var battle_count = 0;
var time_count = 0;
var BattleRound = 0;
/***********ten chu party*********/
var chuptt = ******;
function MyAttack(){
BattleRound++
if(BattleRound==1){
sk = SkillID("Fire Arrow")
ts.SendAttack( ts.Character.Row , ts.Character.Col , 0 , 3 , sk )
}else{
sk = SkillID("Defend")
ts.SendAttack( ts.Character.Row , ts.Character.Col , ts.Character.Row , ts.Character.Col , sk )
}
}
function MyPartnerAttack(){
if(BattleRound==1){
sk = SkillID("Fire Arrow")
ts.SendAttack( ts.CurrentPartner.Row , ts.CurrentPartner.Col , 0 , 3 , sk )
}else{
sk = SkillID("Defend")
ts.SendAttack( ts.CurrentPartner.Row , ts.CurrentPartner.Col ,0 , 3 , sk )
}
}
var hpFraction = 0.7;
var spFraction = 0.7;
function BattleStarted(){
battle_count++;
time_demlan = 15;
time_count = 0;
BattleRound = 0;
debug("-=[ Reset All Timer ]=-",0xFF0000)
}
function BattleStoped(){
debug("-=[ Ket Thuc Tran Danh Thu ]=- [ "+battle_count+" ]",0xFF0000)
//AutoDropitemss();
if(adminonline == "on"){
debug("-=[ Admin Dang Online... ]=-",0xFF0000)
ts.Chat(3,"adminonline",chuptt)
}
}
var adminonline;
function PlayerOnline(playerid){
if(playerid < 1000 && playerid != 101){
debug("-=[ Admin Online ID : VN"+playerid+" Disconect...]=-",0xFF0000)
frm.mnuEnableReconnect.Checked = false;
ts.Disconect();
adminonline = "on";
}
if(playerid == chuptt){
ts.Delay(2000);
ts.RequestParty(chuptt);
}
}
var namess;
var onsend = "Off";
function AutoDropitemss(){
}
function OnPrivateMsg(PlayerName , Msg){
}
function onEvilGod(){
ghost_count++
debug("-=[ Dang Mang 1 Con Ma HeHe ]=-"+"["+ghost_count+"]",0x0000FF)
msg = "Wrong.Add(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
WriteLog("Wrong.js",msg)
}
function onLuckyGod(){
debug("-=[ Dang Mang 1 Con Phuc Than ]=-",0xFF0000)
if(!QA.Exists(ts.LastQuestion)){
QA.Add(ts.LastQuestion,ts.LastResponseAnswer)
msg = "QA.Add(\""+ts.LastQuestion+"\",\""+ts.LastResponseAnswer+"\")"
WriteLog("QA.js",msg)
}
}
var time_demlan = 15;
function OnTimer(){
time_count++;
if(time_count == time_demlan){
time_demlan=(time_demlan+15);
debug("-=[ Auto Time: "+time_count+" ]=-",0xFF0000)
ts.Chat(5,"laggggggggggggggg")
}
}
function FinishAnswerFuckGod(){
if(ghost_count>=3){
debug("3 FuckGod detected bye!",0x00FF00);
ts.Disconect();
}
}
function Start(){
if(ts.Character.mapid == 12521){ ts.Warp(5); }
}
function Stop(){
}
function PartyStop( playerid ){
}
function AcceptedParty(playerid){
}
function InitBot(){
ts.Delay(2000);
ts.RequestParty(chuptt);
SetPartyFriend("as")
SetPartyFriend("as")
SetPartyFriend("as")
SetPartyFriend("as")
SetSena("as")
}
InitBot()
------------------------------
Mình đã bỏ phần senditem, autodropItem, autoeat ( nếu cần thì có thể add vào

) tại mấy acc con TUT nên minh chưa cho đoạn đó vào :p
Nếu có sai xót ở đâu mong được các pro chỉ giáo :p
Đoạn scrip này mình chỉnh sửa của người khác nên không dám nói là do mình tự viết :p