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 hpFraction = 0.8;
var spFraction = 0.7;
var battle_round;
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 BattleStarted(){
battle_count++;
battle_round=0;
}
function BattleStoped(){
ViewState()
ts.ClickOnNPC(1)
}
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 NpcDialogMenu(DialogId){
debug("DialogM "+DialogId,0x0000FF)
if(DialogId==5){
ts.SelectChoice(1);
ts.SendEnd();
}
}
function NpcDialog(DialogId){
debug("DialogN "+DialogId,0x0000FF)
if(DialogId==5){
ts.SelectChoice(1);
ts.SendEnd();
}
if(DialogId==15657){
ts.ClickOnNPC(1)
ts.delay(1000)
ts.ClickOnNPC(1)
}else{
ts.SendEnd();
}
//ts.SendEnd();
}
function onEvilGod(){
ghost_count++
debug("E V I L G O D."+"["+ghost_count+"]",0x0000FF)
ts.ClickOnNPC(3)
}
function onLuckyGod(){
debug("LUCKY G O D.",0xFF0000)
ts.ClickOnNPC(1)
}
function OnTimer(){
}
function FinishAnswerFuckGod(){
if(ghost_count>=3){
ts.Disconect();
}
ts.delay(1000)
ts.ClickOnNPC(1)
}
function Start(){
ts.ClickOnNPC(1)
}
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(playerid == getPlayerId("botter")
|| playerid == getPlayerId("carmanlee")
|| playerid == getPlayerId("Carmen")
|| playerid == getPlayerId("CarmanLee")
){
ts.AcceptParty(playerid)
if(getPlayerName(playerid) == "Carmen"){
ts.sena ( playerid )
}
}
}
function PartyStop( playerid ){
if(playerid == getPlayerId("Hunter2001")){
ts.Disconect();
}
}
function InitParty(){
SetPartyFriend("Carmen")
SetSena("Carmen")
}
function InitBot(){
SetPartyFriend("Cafe")
SetPartyFriend("DisneyM")
SetPartyFriend("friend name")
SetPartyFriend("friend name")
SetSena("DisneyM")
//Sit()
//Start()
//ts.ClickOnNPC(1)
//alert("Test")
//ts.RequestParty(100783)
}
InitBot()