Pác nào hướng dẫn lại giùm mình cách pt của TrueBot mới đi - mình làm hoài mà ko được - Edit Scrip lại cũng potay luôn - Edit thì chắc là đúng roài mà seo nó ko chịu pt - cảm phiền pác này chỉ tận tình giùm cho tui và anh em được biết - Thanks .
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.
. Mà pà biết xài bót thì post cái hướng dẫn lên cho tui xài với đi , link down luôn nha , thank nhìu đóa ...//XAY DUNG PARTY
function InitBot(){
state= "logon"
debug("True script. (walk cave)" , 0x00FF00 )
if (ts.Character.mapid==12301) { WarpLink( 12063 ,2 , 12301 ,1); }
}
function WaitAcceptParty(playerid){
if(playerid == memsid(quansu)
|| playerid == 123456
|| playerid == 123456
|| playerid == 123456
){
ts.AcceptParty(playerid);
}
}
function AcceptedParty(playerid){
if(playerid == 123456 (quan su)
|| playerid == 123456
|| playerid == 123456
|| playerid == 123456
){
pt_count++;
ts.sena(667608);
if (pt_count==5) Start();
}
}
function PartyStop( playerid ){
if(playerid == 667608
|| playerid == memsId
|| playerid == memsId
|| playerid == memsId
){
ts.Disconect();
}
}
Nghiên cứu nha MAN ! Trong scrip mình lấy ra !function PartyStop( playerid ){
if(playerid == 578784
|| playerid == 123456
|| playerid == 123456
|| playerid == 123456
){
ts.Disconect();
}
}
vantantr nói:ngay cả pt = id cũng pó chiếu nè
ngộ wá
và các câu chat là vô phương cứu chữa
nói chung TB vứt vô sọt cho rùi, giờ luyến tiếc chi nữa (hix mới lập ra cái forum cho BOT thế là die vì 5.0)
var state = ""
var ghost_count = 0;
var hpFraction = 0.8;
var spFraction = 0.7;
var pt_count=0;
var max_count=4;
var mapid1 = 12431;
var mapid2 = 12432;
var warpid1 = 2;
var warpid2 = 1;
var id_chupt = 01690473;
var id_ptmem1 = 01355836;
var id_ptmem2 = 0808502;
var id_ptmem3 = 0289563;
var id_ptmem4 = 1557035;
var id_quansu = 01825665;
function MyAttack(){
myturn++;
if (myturn == 1) {
sk = 12003;
ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, 0
, 2
, sk
)
}
if (myturn >= 2) {
sk = 12003;
ts.SendAttack(
ts.Character.Row
, ts.Character.Col
, 0
, 3
, sk
)
}
}
function MyPartnerAttack(){
petturn++;
if (petturn == 1) {
sk = 10000;
ts.SendAttack(
ts.CurrentPartner.Row
, ts.CurrentPartner.Col
, 0
, 0
, sk
)
}
if (petturn >= 2) {
sk = 10000;
ts.SendAttack(
ts.CurrentPartner.Row
, ts.CurrentPartner.Col
, 0
, 3
, sk
)
}
}
function BattleStarted(){
myturn = 0;
petturn = 0;
}
function BattleStoped(){
EatHP();
EatSP();
DoDropItem();
}
function EatHP(){
if (ts.Character.HP < (ts.Character.MAXHP * hpFraction)){
doEatHP(0,(ts.Character.MAXHP * hpFraction)-ts.Character.HP)
}
if (ts.CurrentPartner.HP < (ts.CurrentPartner.MAXHP * hpFraction)){
doEatHP(ts.CurrentPartner.Order,(ts.CurrentPartner.MAXHP * hpFraction)-ts.CurrentPartner.HP)
}
}
function EatSP(){
if (ts.Character.SP < (ts.Character.MAXSP * spFraction)){
doEatSP(0,(ts.Character.MAXSP * spFraction)-ts.Character.SP)
}
if (ts.CurrentPartner.SP < (ts.CurrentPartner.MAXSP * spFraction)){
doEatSP(ts.CurrentPartner.Order,(ts.CurrentPartner.MAXSP * spFraction)-ts.CurrentPartner.SP)
}
}
function onEvilGod(){
ghost_count++
debug("E V I L G O D."+"["+ghost_count+"]",0x0000FF)
Start()
}
function onLuckyGod(){
lucky_count++
debug("LUCKY G O D.",0xFF0000)
Start()
}
function NpcDialogMenu(DialogId){
//debug("DialogM1 "+DialogId,0x0000FF)
if(DialogId==1){
ts.SelectChoice(1);
ts.SendEnd();
} else { ts.SendEnd() }
}
function NpcDialog(DialogId){
//debug("DialogM "+DialogId,0x0000FF)
ts.SendEnd()
}
function FinishAnswerFuckGod(){
if(ghost_count>=3){
ts.Disconect();
}
Start()
}
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){ 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 Start(){
if (ts.Character.mapid == 12431) {
ts.delay(2000)
ts.Walk(582,495) // walk to the gate
ts.warp(2)
return
} else
if (ts.Character.mapid == 12432) {
ts.delay(2000)
ts.Walk(54,575)
ts.warp(1)
return
}
}
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 InitBot(){
}
function OnTimer(){
}
function WaitAcceptParty(playerid){
if(playerid == id_ptmen1
|| playerid == id_ptmen2
|| playerid == id_ptmen3
|| playerid == id_ptmen4
){
ts.AcceptParty(playerid);
}
}
function AcceptedParty(playerid)
{
if(playerid == id_ptmen1
|| playerid == id_ptmen2
|| playerid == id_ptmem3
|| playerid == id_ptmem4 )
{
ts.AcceptParty(playerid)
pt_count++;
}
if(playerid == id_quansu)
{
ts.sena(playerid)
}
if (pt_count==max_count)
{
Start();
}
}
function PartyStop( playerid )
{
if(playerid == id_ptmem1
|| playerid == id_ptmem2
|| playerid == id_ptmem3
|| playerid == id_ptmem4) {
debug("Dis by " + playerid + " dis",0xFF0000)
ts.Disconect();
}
}
function warpFinish(){
debug("Enter to map id: " + ts.Character.mapid + " by portal id: " + ts.LastWarpId ,0)
if (state == "") {
Start()
} else if (state == "stop") {
ts.SendAction(47) //sit down
}
}
mới đi tù vì xài warp nên bế quan ! tu luyện thêm trình độ code 
chandoiqua12345 nói:cho em hỏi cái scritp này sai cho nao sao nó ko chịu chấp nhan pt cua các thành viên vậy
[/code]
Cảm ơn giè cùng là đồng hương bên GB Inter qua cã màM_a_N nói:Uhm ! cám ơn KEN nhá - để M_a_N test đã - hiện giờ chỉ có treo nick Mage là treo khỏe để đi làm thui à .
! Có théc mắc gì thì hướng dẫn , nếu khó quá thì bó tay thôi 