• [THÔNG BÁO] CẢNH BÁO LỪA ĐẢO MẠO DANH QUẢN TRỊ VIÊN
    Chào các thành viên GameVN,
    Dạo gần đây tình trạng lừa đảo scamming và phishing đang gia tăng. Ban quản trị GameVN xin lưu ý toàn bộ thành viên:
    KHÔNG/ ĐỪNG / CẤM cho bất kỳ ai tự xưng là quản trị viên của server vay tiền.
    Mọi hành vi lân la làm quen, tự tiện nhắn tin trên Discord, Facebook, Zalo hoặc các nền tảng mạng xã hội khác,
    núp bóng dưới danh nghĩa sinh hoạt của quản trị viên, đều có tỉ lệ rất, rất cao là lừa đảo.
    Nếu có tài khoản lạ add friend hoặc nhắn tin xin tiền dưới danh nghĩa admin:
    Block ngay
    Report ngay
    Không chuyển khoản, không cung cấp thông tin cá nhân


    Quản trị viên của forum và Discord server GameVN không có nhu cầu vay tiền thành viên.
    Không có lý do nào để admin chủ động kết bạn rồi xin tiền.
    Mọi thông báo chính thức chỉ được đăng trên kênh thông báo của server và topic chính thức trên forum.
    Tin nhắn riêng từ tài khoản lạ không phải thông báo của ban quản trị.
    Cảm ơn các bạn đã chú ý và cùng giữ cộng đồng an toàn.
    — Ban quản trị GameVN

    Tắt thông báo bằng nút X bên góc phải của bảng thông báo*

vấn đề tiêu cực về script cho gà

Leon_hear91

Youtube Master Race
Tham gia ngày
19/3/06
Bài viết
29
Reaction score
0
mấy anh ơi , cho em cái script của Đốc Du Ác với Hàn Trung Với Giãn ung full đi , mấy cái script kia toàn lỗi hết trơn rồi
loging vào nhấn F3 cho no' tự đánh , đánh xong 1 trận rùi , đứng hóng gió ,ko đánh nữa , nhấn F3 cai nữa thì dis rồi tự động loging , nhấn F3 thêm cái nữa rồi đánh , nhấn F3 cái nữa rồi dis , cứ vậy hoài à , mấy anh giúp giùm em nha , cám ơn nhiều
à sẵn coi giùm em cái comon của thành tuyết có lỗi gì hun mấy anh
PHP:
NPCCombatObject findMonster()
{
	int maxhp = 0;
	string mi = "";
	foreach (NPCCombatObject onpc in ts.oNPCCombat.Values)
    {
     	if (onpc.HP > 0)
        {
        	if (onpc.MAXHP > maxhp)
            {
            	maxhp = onpc.MAXHP;
                mi = onpc.Row.ToString() + onpc.Col.ToString();
             }
         }
	}
	return ts.oNPCCombat[mi] as NPCCombatObject;
}
void doEatSP(ushort order,int difSp){ 
	for(byte i = 0;i< 25 ;i++){ 
		Slot oSlot = (Slot)ts.MyItems[i];				
		if (oSlot.itemid == 0) { continue; } 
		Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];
		
		if(oItem.isSPItem()){ 
			int itemvalue=oItem.getSPValue();
			if (itemvalue > difSp){ continue; } 
			byte eatSpAmt = (byte)((difSp - (difSp % itemvalue)) / itemvalue);
			if (eatSpAmt> 0){ 
				if (eatSpAmt > oSlot.num){ 
					eatSpAmt = oSlot.num; 
				} 
				ts.EatItem((byte)(i+1),eatSpAmt,order) ;
				debug(oItem.itemname+"  SP "+itemvalue+" at slot "+((byte)(i+1)).ToString()+" decrease"+eatSpAmt ,0xC08008 );
				difSp = difSp - eatSpAmt * itemvalue ;
			} 
		} 
	} 
	ts.delay(500);
}
void doEatHP(ushort order,int difHp){ 
	for(byte i = 0;i< 25 ;i++){ 
		Slot oSlot = (Slot)ts.MyItems[i];				
		if (oSlot.itemid == 0) { continue; } 
		Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];
				
		if(oItem.isHPItem()){ 
			int itemvalue=oItem.getHPValue();
			if (itemvalue > difHp){ continue; } 
			byte eatHpAmt = (byte)((difHp - (difHp % itemvalue)) / itemvalue );
			if (eatHpAmt> 0){ 
				if (eatHpAmt > oSlot.num){ 
					eatHpAmt = oSlot.num; 
				} 
				ts.EatItem((byte)(i+1),eatHpAmt,order);
				debug(oItem.itemname + "  HP  " + itemvalue.ToString() + " at slot " + ((byte)(i+1)).ToString() + "  decrease " + eatHpAmt.ToString() ,0xC08008 );
				difHp = difHp - eatHpAmt * itemvalue ;
			} 
		} 
	} 	
	ts.delay(500);
} 

void FindItemContribute(string ItemName){
	Slot s = FindItemInSlot(ItemName);
	if(s != null){
       ts.Contribute(s.slot);
	}
}

void FindItemDrop(string ItemName){
	Slot s = FindItemInSlot(ItemName);
	if(s != null){
		ts.DropItem(s.slot,s.num);
	}
}

Slot FindItemInSlot(string ItemName){
	for(byte i=0;i<25;i++){
		Slot oSlot = (Slot)ts.MyItems[i];
		if( oSlot.itemid == 0){ continue; } 
		Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];
			if(oItem.itemname == ItemName){
				return oSlot;
			}
	}
	return null;
}

void AutoEatFood(){		
	if (ts.Character.HP < (ts.Character.MAXHP * hpFractionEat)){ 
       		doEatHP(0,(int)((ts.Character.MAXHP * hpFraction)-ts.Character.HP));       		
  	} 
  	if (ts.Character.SP < (ts.Character.MAXSP * spFractionEat)){ 	
         		doEatSP(0,(int)((ts.Character.MAXSP * spFraction)-ts.Character.SP));
   	}
    if (ts.CurrentPartner.HP < (ts.CurrentPartner.MAXHP * hpFractionEat)){ 
       		doEatHP((ushort)ts.CurrentPartner.Order,(int)((ts.CurrentPartner.MAXHP * hpFraction)-ts.CurrentPartner.HP));
  	} 
    if (ts.CurrentPartner.SP < (ts.CurrentPartner.MAXSP * spFractionEat)){ 
       		doEatSP((ushort)ts.CurrentPartner.Order,(int)((ts.CurrentPartner.MAXSP * spFraction)-ts.CurrentPartner.SP));
  	}   
}


int get_random(int min,int max)
{
	System.Random rd=new System.Random();
	int ranNum= rd.Next(min,max);
	return ranNum;
}


void Disconnect(string msg) {
	debug(msg,0x0000FF);
	ts.Disconnect(); 
}

void CheckDisconnect(){     
	if(ts.Character.HP< (DisconnectFlag * ts.Character.MAXHP)){   		
		Disconnect("Disconnected : Character HP is low !!");
	}

	if(ts.CurrentPartner.HP< (DisconnectFlag * ts.CurrentPartner.MAXHP)){   		
		Disconnect("Disconnected : Warrior HP is low !!");
	}

	if(ts.CurrentPartner.fai < DisconFai){   
		Disconnect("Disconnected : Warrior faith is below faith flag !!");
	}
}

System.Collections.ArrayList DropItemList  = new System.Collections.ArrayList(); 
System.Collections.ArrayList ContributeItemList  = new System.Collections.ArrayList(); 

void AddDropItemList(string itemname) {	
	if (!DropItemList.Contains(itemname)) {
		DropItemList.Add(itemname);
	}	
}

bool InDropItemList(string itemname) {
	if (DropItemList.Contains(itemname))
		return true;
	else
		return false;
}

void AddContributeItemList(string itemname) {	
	if (!ContributeItemList.Contains(itemname)) {
		ContributeItemList.Add(itemname);
	}	
}

bool InContributeItemList(string itemname) {
	if (ContributeItemList.Contains(itemname))
		return true;
	else
		return false;
}

void ProcessInventoryAction(){
	for(byte i=0;i<25;i++){
		Slot oSlot = (Slot)ts.MyItems[i];
		if( oSlot.itemid == 0){ continue; } 
		Item oItem = (Item)ts.ITEMS[oSlot.itemid.ToString()];
		if (InDropItemList(oItem.itemname)) ts.DropItem(oSlot.slot,oSlot.num);
		if (InContributeItemList(oItem.itemname)) ts.Contribute(oSlot.slot);
	}
}
thanks mấy anh nhiều
 
Giản dung tui đang xài đây
//Bot cua Nam
double DisconnectFlag = 0.2; // Disconnect when current HP is below 30%

double hpFractionEat = 0.5; //Eat HP when current HP<= 80%
double spFractionEat = 0.5;
double hpFraction = 0.95; //Eat until current HP >= 95 %
double spFraction = 0.95;

byte DisconFai = 00; // Faith of warrior to disconnect
byte pt_count = 0;
byte myturn = 0;
byte peturn = 0;

uint tv1 = 02073963; // Redlà QS luôn
uint tv2 = 00179669; // Lugia
uint tv3 = 02254895; // 00367360Lugia3
uint tv4 = 02262137; //02184518Green

uint maxpt = 4; //so thanh vien


public override void MyAttack()
{
myturn++;
if (myturn == 1)
{
CharacterInfo MyChar = ts.Character;
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000);
}
if (myturn >= 2)
{
CharacterInfo MyChar = ts.Character;
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000);
}
}
public override void MyPartnerAttack()
{
peturn++;
if (peturn == 1)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 10000);
}
if (peturn >= 2)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 10000);
}
}

public override void BattleStarted()
{
myturn = 0;
peturn = 0;
}

public override void BattleStoped()
{
ProcessInventoryAction();
AutoEatFood();
ts.ClickOnNPC(1);
}

/******************* Receive Question *********************/
public override void doRecvQuestion()
{

}


/******************** Response Answer **********************/
public override void ResponseAnswer()
{
string tmp=ts.LastQuestion.Replace("=?","");
int ans=ts.Eval(tmp);
byte ans_index=Convert.ToByte(ts.LastAnswers[ans.ToString()]);
ts.Answer(ans_index);
}

public override void onPlayerWalk(uint uid, ushort x, ushort y)
{
if (uid > 1 && uid < 501) {
debug("GM den roi chay thoi",0xFF0000);
ts.Disconnect(false);
}
}


public override void PartyStop(uint playerid)
{
if (playerid == tv1 || playerid == tv2 || playerid == tv3 || playerid == tv4) {debug("Disconnect boi " + playerid,0xFF2200);ts.Disconnect();}
}


public override void Start()
{
ts.ClickOnNPC(1);
}

public override void FinishAnswer()
{
ts.ClickOnNPC(1);
}

public override void NpcDialogMenu(ushort DialogId)
{
debug("Menu ID="+DialogId.ToString());
if (DialogId==5) {ts.SelectChoice(1); ts.SendEnd(); }
else {ts.SendEnd();}
}

public override void NpcDialog(ushort DialogId)
{
debug("Dialog ID="+DialogId.ToString());
if (DialogId==12385) {ts.SendEnd();}
else
if (DialogId==15657) {ts.ClickOnNPC(1);}
else
if (DialogId==15661) {ts.ClickOnNPC(1);}
}

public override void OnTimer()
{
ts.AcceptParty(tv1);
ts.AcceptParty(tv2);
ts.AcceptParty(tv3);
ts.AcceptParty(tv4);
}

public override void AcceptedParty(uint playerid)
{
if(playerid == tv1) {ts.Sena(playerid);}
pt_count++;
if(pt_count==maxpt){
ts.SetTimerOnOff(false);
debug(" So thanh vien la : " + pt_count + " ===> Go Let's Go !" ,0x0000FF);
ts.SetTimerOnOff(false);
Start();}
else{
debug(" So thanh vien la : " + pt_count ,0x0000FF);
}
}

public override void InitBot()
{
ts.SetTimerOnOff(true);
ts.SetReconnectTime(5);
ts.SetMaxIdleTime(60);
debug(" S? con ma : " + ts.Character.ghost ,0xFF0000) ;
}
 
có script đốc du ác full ko anh , cho em cái đốc du ác luôn di :(
 
ai cho minh xin wed tai phan mem bot Truong Giac gium voi !
neu duoc thi xin kem them phan huong dan su dung !
xin cam on ! :D
 
Nói đi nói lại mãi mấy cái này trong các bài trước đều đã nói rất rõ về các Code này .
CHịu khó xem lại là thấy mà
===============================================================
Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá Hết Mp rồi cho em xin tí nào ! Mệt quá
 
Back
Top