What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

rest and needrest function ? ? ?

decerte

New Member
Joined
Mar 4, 2011
Messages
40
public override bool NeedRest
{
get
{
if (Me.HealthPercent <= 99 )
{
return true;
}
else
return false;
if (Me.ManaPercent <= 50)
{
return true;
}
else
return false;
}
}

public override void Rest()
{
if (Me.HealthPercent <= 99 )
{
Styx.Logic.Common.Rest.Feed();
}
}

im trying to test my CC , but with my func rest and needrest ( in quote ) , sometime it rest after combat , but sometime it just stand and wait hp recover ( dont use food in bag )

plz anyone could explain for me ? or help me fix it plz , i want it rest after all combat ?
 
I guess we have to see the context where the methods beeing called, beside the fact that the conditions will be very expensive of buying food and water it looks okay imo
 
Back
Top