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.
KiemCun nói:Đây là đoạn tự pt của chủ pt và khi pt đủ ngưỏi thì sẽ call hàm Start();
Và khi có 1 mem dis thì chủ pt dis luôn.
$KiemSiDaTinh$ nói:bạn quảng cáo để làm gì khi nó sắp thu phí
lại còn nói ko bao giờ die nữa chứ
thu phí = die![]()

var battleround=0;
...
function BattleStarted() {
battleround=0; //reset count
...
}
...
function MyAttack() {
...
battleround++; // tăng count thêm 1 mỗi lần myattack được gọi (sau mỗi turn)
switch case (battleround) {
case 1: ...
case 2: ...
...
}
...
}
phamthanhtung16 nói:alo sau khi login vào truebot đc rồi thì bước kế tiếp phải làm sao
Jetnn007 nói:Thank anh Micral , vậy khi mình muốn Team chỉ cần 4 người thì xóa đoạn :
đi hả anh ??Mã:|| playerid == getPlayerId("mem5")
em dang xai script này nhưng ko hiểu sao cứ dánh vài tran là dis mặc dù ser ko lagg và nhan vật cũng ko hết hp va spvar state = ""
var ghost_count = 0;
var die_count = 0;
var DisconnectFlag = 0.3;
var battle_count = 0;
var HealingFlag = 0.5;
var isAutoRegenOK = 0
/// Chat Background Color
//Chat.obj.backColor = 0xCACACA
//Chat.obj.Font.Size = 10
function MyAttack(){
ts.delay(200);
n = MonsterAlive()
if(n>=3){
m = SelectF1Target();
sk = SkillID("Attack");
ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, m.Row
, m.Col
, sk
)
}else if(n<3){
ts.delay(200);
m = findMonster();
sk = SkillID("Attack");
ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, m.Row
, m.Col
, sk
)
}
}
function MyPartnerAttack(){
ts.delay(200);
n = MonsterAlive();
if(n>=3){
m = SelectF1Target();
sk = SkillID("Fire Arrow");
ts.SendAttack(
ts.CurrentPartner.Row
, ts.CurrentPartner.Col
, m.Row
, m.Col
, sk
)
}else if(n<3){
ts.delay(200);
m = findMonster();
sk = SkillID("Fire Arrow");
ts.SendAttack(
ts.CurrentPartner.Row
, ts.CurrentPartner.Col
, m.Row
, m.Col
, sk
)
}
}
function BattleStoped(){
/* Just safty first. for Warrior not leave you call function SaveWarrior() every end battle. */
SaveWarrior();
CheckDisconnect();
ViewState()
}
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 SaveWarrior(){
if(ts.CurrentPartner.HP< ((0.20) * ts.CurrentPartner.MAXHP)){
ts.Disconect();
debug(" SAVE THE FAI DISCONNECT NOW! : ",0x0000FF);
}
}
function onNPCAppear( npcmapid , x , y ){
ts.ClickOnNPC(npcmapid)
ts.ClickOnNPC(npcmapid)
}
function NpcDialogMenu(DialogId){
debug("Menu "+DialogId,0x0000FF)
if(DialogId==1){
ts.delay(300);
ts.SelectChoice(1)
ts.SendEnd();
}
}
function NpcDialog(DialogId){
debug("Dialog "+DialogId,0x0000FF)
if(DialogId==14305){
ts.SendEnd();
}
if(DialogId==10021){
ts.SendEnd();
}
}
function FinishAnswerFuckGod(){
if(ts.Character.mapid==12301){
ts.delay(300);
ts.Warp(1)
return
}
if(ghost_count>=2){
ts.Disconect()
}
}
function Start(){
ts.delay(300);
ts.Walk(562,315);
ts.delay(300);
ts.Warp(2);
}
function Stop(){
ts.delay(300);
ts.Warp(1)
}
function CheckDisconnect(){
if(ts.Character.HP <= 0){
die_count++
}
if(die_count>3){
ts.Disconect();
}
}
function InitBot(){
ts.AcceptParty(getPlayerId(" "));
ts.AcceptParty(getPlayerId(" "));
ts.AcceptParty(getPlayerId(" "));
ts.sena(getPlayerId(" "))
}
function AcceptedParty(playerid){
}
function PartyStop( playerid ){
if(playerid == getPlayerId(" ")){
ts.Disconect();
}
}
function OnTimer(){
}
function warpFinish(){
}
function BattleStarted(){
}
InitBot()
debug(ts.Character.Ghost,0x0000FF)
Anglebaby nói:Trước tiên mình khuyên bạn trước khi sử dụng truebot thi bạn phải xác định được minh sẽ lam gì thì mới có những script để thực hiện dùm bạn, chứ không phải cứ login vào rồi Lv cứ lên vù vù đâu.Mình nghĩ bước tiếp theo của bạn là học script.