Leon_hear91
Youtube Master Race
- 19/3/06
- 29
- 0
- Banned
- #1
mấy anh pro ô cho hỏi những cái lỗi này là gì vậy
đây là Script
double DisconnectFlag = 0.3; // Disconnect when current HP is below 30%
double hpFractionEat = 0.8; //Eat HP when current HP<= 80%
double spFractionEat = 0.8;
double hpFraction = 0.95; //Eat until current HP >= 95 %
double spFraction = 0.95;
byte DisconFai = 00; // Faith of warrior to disconnect
byte battle_count = 0;
byte NS_count = 0;
byte myturn = 0;
byte peturn = 0;
double mapid2 = 12815;
byte warpid2 = 1;
/***** Chinh sua ID chu Party o day *****/
uint idchupt = 574875;
/*************************************/
/*********************** My Attack *************************/
public override void MyAttack()
{
myturn++;
if (myturn == 1)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000);
}
if (myturn >=2)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 0,14002 );
}
}
/******************* My Partner Attack *********************/
public override void MyPartnerAttack()
{
peturn++;
if (peturn == 1)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 12003);
}
if (peturn >= 2)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 0, 10000);
}
}
/********************* Battle Started **********************/
public override void BattleStarted()
{
battle_count++;
myturn = 0;
peturn = 0;
}
/********************* Battle Stopped ***********************/
public override void BattleStopped()
{
AutoEatFood();
ProcessInventoryAction();
CheckDisconnect();
ViewState();
}
/******************* Receive Question *********************/
public override void doRecvQuestion()
{
NS_count++;
}
/******************** 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.delay(3000);
ts.Answer(ans_index);
}
/************************ On Timer *************************/
public override void OnTimer()
{
ts.RequestParty(idchupt);
}
/************************* Start ***************************/
public override void Start()
{
if (ts.Character.mapid == mapid1) {
ts.Walk(622,475);
ts.Warp(warpid1);
return;
} else
if (ts.Character.mapid == mapid2) {
ts.Warp(warpid2);
return;
}
}
/************************** Stop ***************************/
public override void Stop()
{
}
/*********************** View State ************************/
void ViewState()
{
debug("************************************************** **********************",255) ;
debug(" Số trận đánh : " + battle_count ,255) ;
debug(" HP của "+ts.Character.CharName+" = " + ts.Character.HP +" "+ "/" +" "+ ts.Character.MAXHP,255);
debug(" HP của "+ts.CurrentPartner.CharName +" = " + ts.CurrentPartner.HP + " "+"/" +" "+ ts.CurrentPartner.MAXHP +" "+" FAI = " + ts.CurrentPartner.fai,255);
debug(" Số lần gặp BTQ : "+ NS_count +" Số con ma : " + ts.Character.ghost ,255) ;
debug("======= Script by Jet007 - Copy Right GameVN–™ =======",255) ;
}
/********************* Accepted Party **********************/
public override void AcceptedParty(uint playerid)
{
if (playerid == idchupt) {debug("Join to" + playerid);ts.SetTimerOnOff(false);}
}
/************************ Party Stop ***********************/
public override void PartyStop(uint playerid)
{
if (playerid == idchupt){debug(idchupt+"Rời khỏi đội ngủ -> Disconnect !!!");ts.Disconnect();}
}
/************************ Init Bot *************************/
public override void InitBot()
{
ts.SetTimerOnOff(true);
if (ts.Character.mapid==mapid2) {ts.Warp(warpid2);}
ts.delay(1000);
AddDropItemList("viênongmật");
AddDropItemList("Dâu đỏ");
AddDropItemList("Táo nhỏ");
AddDropItemList("Mật Ý Nhân");
AddDropItemList("tựđ uốngthuốc");
AddDropItemList("viên công kích");
ViewState();
debug("Login Okie");
}
các lỗi là:
1/tập tin:common.cs ;dòng 90 ; cột 46
lỗi:The name 'hpFractionEat' does not exist in the current context
2/tập tin:common.cs ; dòng 91 ; cột 48
lỗi:The name 'hpFraction' does not exist in the current context
3/tập tin: common.cs ; dòng 93 ; cột 48
lỗi:The name 'spFractionEat' does not exist in the current context
4/tập tin : common.cs ; dòng 94 ; cột 50
lỗi:The name 'spFraction' does not exist in the current context
5/tập tin : common.cs ; dòng 96 ; cột 59
lỗi:The name 'hpFractionEat' does not exist in the current context
6/tập tin : common.cs ; dòng 97 ; cột 83
lỗi :The name 'hpFraction' does not exist in the current context
7/tập tin:common.cs ; dòng 99 ; cột 59
lỗi:The name 'spFractionEat' does not exist in the current context
8/tập tin:common.cs ; dòng 100 ; cột 83
lỗi:The name 'spFraction' does not exist in the current context
9/tập tin common.cs ; dòng 119 ; cột 23
lỗi:The name 'DisconnectFlag' does not exist in the current context
10/tập tin: common.cs; dòng 123 cột 28
lỗi:The name 'DisconnectFlag' does not exist in the current context
11/tập tin:common.cs ; dòng 127 ; cột 29
lỗi:The name 'DisconFai' does not exist in the current context
XIN lỗi vì ko biết post bài = hình , em ko có ý câu bài gì đâu , mong các anh sữa giùm em :(
Mã:
double DisconnectFlag = 0.3; // Disconnect when current HP is below 30%
double DisconnectFlag = 0.3; // Disconnect when current HP is below 30%
double hpFractionEat = 0.8; //Eat HP when current HP<= 80%
double spFractionEat = 0.8;
double hpFraction = 0.95; //Eat until current HP >= 95 %
double spFraction = 0.95;
byte DisconFai = 00; // Faith of warrior to disconnect
byte battle_count = 0;
byte NS_count = 0;
byte myturn = 0;
byte peturn = 0;
double mapid2 = 12815;
byte warpid2 = 1;
/***** Chinh sua ID chu Party o day *****/
uint idchupt = 574875;
/*************************************/
/*********************** My Attack *************************/
public override void MyAttack()
{
myturn++;
if (myturn == 1)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 2, 10000);
}
if (myturn >=2)
{
CharacterInfo MyChar = ts.Character;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyChar.Row, MyChar.Col, 0, 0,14002 );
}
}
/******************* My Partner Attack *********************/
public override void MyPartnerAttack()
{
peturn++;
if (peturn == 1)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 2, 12003);
}
if (peturn >= 2)
{
CharacterInfo MyWarrior = ts.CurrentPartner;
//NPCCombatObject Monster = findMonster();
ts.SendAttack(MyWarrior.Row, MyWarrior.Col, 0, 0, 10000);
}
}
/********************* Battle Started **********************/
public override void BattleStarted()
{
battle_count++;
myturn = 0;
peturn = 0;
}
/********************* Battle Stopped ***********************/
public override void BattleStopped()
{
AutoEatFood();
ProcessInventoryAction();
CheckDisconnect();
ViewState();
}
/******************* Receive Question *********************/
public override void doRecvQuestion()
{
NS_count++;
}
/******************** 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.delay(3000);
ts.Answer(ans_index);
}
/************************ On Timer *************************/
public override void OnTimer()
{
ts.RequestParty(idchupt);
}
/************************* Start ***************************/
public override void Start()
{
if (ts.Character.mapid == mapid1) {
ts.Walk(622,475);
ts.Warp(warpid1);
return;
} else
if (ts.Character.mapid == mapid2) {
ts.Warp(warpid2);
return;
}
}
/************************** Stop ***************************/
public override void Stop()
{
}
/*********************** View State ************************/
void ViewState()
{
debug("************************************************** **********************",255) ;
debug(" Số trận đánh : " + battle_count ,255) ;
debug(" HP của "+ts.Character.CharName+" = " + ts.Character.HP +" "+ "/" +" "+ ts.Character.MAXHP,255);
debug(" HP của "+ts.CurrentPartner.CharName +" = " + ts.CurrentPartner.HP + " "+"/" +" "+ ts.CurrentPartner.MAXHP +" "+" FAI = " + ts.CurrentPartner.fai,255);
debug(" Số lần gặp BTQ : "+ NS_count +" Số con ma : " + ts.Character.ghost ,255) ;
debug("======= Script by Jet007 - Copy Right GameVN–™ =======",255) ;
}
/********************* Accepted Party **********************/
public override void AcceptedParty(uint playerid)
{
if (playerid == idchupt) {debug("Join to" + playerid);ts.SetTimerOnOff(false);}
}
/************************ Party Stop ***********************/
public override void PartyStop(uint playerid)
{
if (playerid == idchupt){debug(idchupt+"Rời khỏi đội ngủ -> Disconnect !!!");ts.Disconnect();}
}
/************************ Init Bot *************************/
public override void InitBot()
{
ts.SetTimerOnOff(true);
if (ts.Character.mapid==mapid2) {ts.Warp(warpid2);}
ts.delay(1000);
AddDropItemList("viênongmật");
AddDropItemList("Dâu đỏ");
AddDropItemList("Táo nhỏ");
AddDropItemList("Mật Ý Nhân");
AddDropItemList("tựđ uốngthuốc");
AddDropItemList("viên công kích");
ViewState();
debug("Login Okie");
}
các lỗi là:
1/tập tin:common.cs ;dòng 90 ; cột 46
lỗi:The name 'hpFractionEat' does not exist in the current context
2/tập tin:common.cs ; dòng 91 ; cột 48
lỗi:The name 'hpFraction' does not exist in the current context
3/tập tin: common.cs ; dòng 93 ; cột 48
lỗi:The name 'spFractionEat' does not exist in the current context
4/tập tin : common.cs ; dòng 94 ; cột 50
lỗi:The name 'spFraction' does not exist in the current context
5/tập tin : common.cs ; dòng 96 ; cột 59
lỗi:The name 'hpFractionEat' does not exist in the current context
6/tập tin : common.cs ; dòng 97 ; cột 83
lỗi :The name 'hpFraction' does not exist in the current context
7/tập tin:common.cs ; dòng 99 ; cột 59
lỗi:The name 'spFractionEat' does not exist in the current context
8/tập tin:common.cs ; dòng 100 ; cột 83
lỗi:The name 'spFraction' does not exist in the current context
9/tập tin common.cs ; dòng 119 ; cột 23
lỗi:The name 'DisconnectFlag' does not exist in the current context
10/tập tin: common.cs; dòng 123 cột 28
lỗi:The name 'DisconnectFlag' does not exist in the current context
11/tập tin:common.cs ; dòng 127 ; cột 29
lỗi:The name 'DisconFai' does not exist in the current context
XIN lỗi vì ko biết post bài = hình , em ko có ý câu bài gì đâu , mong các anh sữa giùm em :(
, hiểu cái gì là chết liền