ZzKwOnBoAzZ
Mr & Ms Pac-Man
- 6/9/05
- 150
- 0
em cũng hỏi về auto party ở bản 2.1 cai 2.4 em xai hun wen nên quay về xài 2.1 nhưng nó ko áp dụng cai auto party kia hay sao ý cả trường hợp nữa la nó rất hay dis dù em ko đánh ở HCDT
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.
var state = ""
var ghost_count = 0;
var god_count = 0;
var die_count = 0;
var pet_die_count = 0;
var battle_count = 0;
var pt_count=0
var DisconnectFlag = 0.3;
var HealingFlag = 0.5;
var hpFraction = 0.8;
var spFraction = 0.7;
var MyMapID = 15802;
CheckDisconnect();
var battle_round;
var myParty = new Array(111111,222222,333333,444444,555555); //ca'c id trong pt
pt_leader = myParty[0]; //id chu pt
pt_sena = myParty[1]; //id quan su
function MyAttack(){
debug("attack 1",0xFF0000)
m = SelectF1Target();
// hoac:
// m = findMonster(); (nhu tdck thuo`ng)
debug("attack 2",0xFF0000)
battle_round++;
sk = 12003; //skill
debug("attack 3",0xFF0000)
ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, m.Row
, m.Col
, sk
);
debug("attack 4",0xFF0000)
}
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(){
ViewState();
}
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(){
if(ts.Character.mapid==12301)
{
debug("Cont",0xFF0000)
ts.delay(3000);
ts.walk(422,555);
// ts.walk(542,315);
ts.Warp(1)
return
}
else if(ts.Character.mapid==12063)
{
ts.delay(3000);
ts.walk(582,315);
//ts.walk(214,555);
ts.Warp(2)
return
}
if(ghost_count>1)
{
debug("Dis by Ghost",0xFF0000)
ts.Disconect();
}
}
function Start(){
if(ts.Character.mapid==12301)
{
ts.delay(3000);
ts.walk(214,555);
ts.Warp(1)
return
}
else if(ts.Character.mapid==12063)
{
ts.delay(3000);
ts.walk(582,315);
ts.Warp(2)
return
}
// ts.walk(422,1035);
}
function Stop(){
ts.delay(3000);
ts.walk(214,555);
ts.Warp(1)
return
// ts.walk(281,1155);
}
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 CheckDisconnect()
{
if(ts.Character.HP < 20|| ts.CurrentPartner.HP < 20 )
{
debug("Dis by lost HP",0xFF0000)
ts.Disconect();
}
/* if(ts.Character.SP < 12|| ts.CurrentPartner.SP < 15 )
{
debug("Dis by lost SP",0xFF0000)
ts.Disconect();
}*/
}
function NpcDialogMenu(DialogId)
{
if(DialogId==1)
{
ts.delay(500);
ts.SelectChoice(1);
ts.SendEnd();
}
}
function NpcDialog(DialogId)
{
if(DialogId==14305)
{
ts.SendEnd();
}
if(DialogId==10021)
{
ts.SendEnd();
}
}
function warpFinish(){
if(ts.Character.mapid==12301)
{
ts.delay(3000);
// ts.walk(582,315);
ts.walk(214,555);
ts.Warp(1)
return
}
else if(ts.Character.mapid==12063)
{
ts.delay(3000);
ts.walk(542,315);
// ts.walk(214,555);
ts.Warp(2)
return
}
}
InitBot()
debug(ts.Character.Ghost,0x0000FF)
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 MyMapID = 15802;
CheckDisconnect();
var battle_round;
var myParty = new Array(1111111,252222,3333,44444,55555); //ca'c id trong pt
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 = 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(){
ViewState();
}
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 Start(){
}
function Stop(){
}
function OnPrivateMsg(PlayerName , Msg){
debug(PlayerName + ": " + Msg,0);
}
function InitBot() {
debug("my bot" , 0x00FF00 );
ts.RequestParty(pt_leader);
Timer.Enabled=true;
}
function OnTimer(){
if (ts.CurrentParty==0) ts.RequestParty(pt_leader);
}
function RequestPartyAcceptFrom(PlayerId ){
}
function PartyStop( playerid ){
for (var i=0; i<myParty.length;i++) {
if (playerid ==myParty[i]) { ts.Disconect(); }
}
}
function CheckDisconnect()
{
if(ts.Character.HP < 20|| ts.CurrentPartner.HP < 20 )
{
debug("Dis by lost HP",0xFF0000)
ts.Disconect();
}
/* if(ts.Character.SP < 12|| ts.CurrentPartner.SP < 15 )
{
debug("Dis by lost SP",0xFF0000)
ts.Disconect();
}*/
}
InitBot()
debug(ts.Character.Ghost,0x0000FF)
var state = ""
var ghost_count = 0;
var god_count = 0;
var die_count = 0;
var pet_die_count = 0;
var battle_count = 0;
var pt_count=0
var DisconnectFlag = 0.3;
var HealingFlag = 0.5;
var hpFraction = 0.8;
var spFraction = 0.7;
var MyMapID = 15802;
CheckDisconnect();
var battle_round;
var myParty = new Array(111111,222222,333333,444444,555555); //ca'c id trong pt
pt_leader = myParty[0]; //id chu pt
pt_sena = myParty[1]; //id quan su
function MyAttack(){
debug("attack 1",0xFF0000)
m = SelectF1Target();
// hoac:
// m = findMonster(); (nhu tdck thuo`ng)
debug("attack 2",0xFF0000)
battle_round++;
sk = 12003; //skill
debug("attack 3",0xFF0000)
ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, m.Row
, m.Col
, sk
);
debug("attack 4",0xFF0000)
}
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(){
ViewState();
}
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(){
if(ts.Character.mapid==12301)
{
debug("Cont",0xFF0000)
ts.delay(3000);
ts.walk(422,555);
// ts.walk(542,315);
ts.Warp(1)
return
}
else if(ts.Character.mapid==12063)
{
ts.delay(3000);
ts.walk(582,315);
//ts.walk(214,555);
ts.Warp(2)
return
}
if(ghost_count>1)
{
debug("Dis by Ghost",0xFF0000)
ts.Disconect();
}
}
function Start(){
if(ts.Character.mapid==12301)
{
ts.delay(3000);
ts.walk(214,555);
ts.Warp(1)
return
}
else if(ts.Character.mapid==12063)
{
ts.delay(3000);
ts.walk(582,315);
ts.Warp(2)
return
}
// ts.walk(422,1035);
}
function Stop(){
ts.delay(3000);
ts.walk(214,555);
ts.Warp(1)
return
// ts.walk(281,1155);
}
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 CheckDisconnect()
{
if(ts.Character.HP < 20|| ts.CurrentPartner.HP < 20 )
{
debug("Dis by lost HP",0xFF0000)
ts.Disconect();
}
/* if(ts.Character.SP < 12|| ts.CurrentPartner.SP < 15 )
{
debug("Dis by lost SP",0xFF0000)
ts.Disconect();
}*/
}
function NpcDialogMenu(DialogId)
{
if(DialogId==1)
{
ts.delay(500);
ts.SelectChoice(1);
ts.SendEnd();
}
}
function NpcDialog(DialogId)
{
if(DialogId==14305)
{
ts.SendEnd();
}
if(DialogId==10021)
{
ts.SendEnd();
}
}
function warpFinish(){
if(ts.Character.mapid==12301)
{
ts.delay(3000);
// ts.walk(582,315);
ts.walk(214,555);
ts.Warp(1)
return
}
else if(ts.Character.mapid==12063)
{
ts.delay(3000);
ts.walk(542,315);
// ts.walk(214,555);
ts.Warp(2)
return
}
}
InitBot()
debug(ts.Character.Ghost,0x0000FF)
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 MyMapID = 15802;
CheckDisconnect();
var battle_round;
var myParty = new Array(1111111,252222,3333,44444,55555); //ca'c id trong pt
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 = 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(){
ViewState();
}
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 Start(){
}
function Stop(){
}
function OnPrivateMsg(PlayerName , Msg){
debug(PlayerName + ": " + Msg,0);
}
function InitBot() {
debug("my bot" , 0x00FF00 );
ts.RequestParty(pt_leader);
Timer.Enabled=true;
}
function OnTimer(){
if (ts.CurrentParty==0) ts.RequestParty(pt_leader);
}
function RequestPartyAcceptFrom(PlayerId ){
}
function PartyStop( playerid ){
for (var i=0; i<myParty.length;i++) {
if (playerid ==myParty[i]) { ts.Disconect(); }
}
}
function CheckDisconnect()
{
if(ts.Character.HP < 20|| ts.CurrentPartner.HP < 20 )
{
debug("Dis by lost HP",0xFF0000)
ts.Disconect();
}
/* if(ts.Character.SP < 12|| ts.CurrentPartner.SP < 15 )
{
debug("Dis by lost SP",0xFF0000)
ts.Disconect();
}*/
}
InitBot()
debug(ts.Character.Ghost,0x0000FF)
Muốn vào tù sớm hả bạn,để 1 pet đánh VB là đẹp rồi,đánh NL trước dễ vào tù lắmFlaton
tôi có thể sửa cho skript của mình khi turn 2 thì cả team đánh vào nhan lương dù cho vệ binh còn sống được kô,nếu làm được như vậy thì cả team đều có thể luyện được đệ cùng lúc,nếu ai biết cách có thể chỉ cho tôi nhé,thanks