[-]
Shout:
Click Refresh to load shouts.

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to check player flags?
02-26-2010, 02:55 PM
Post: #21
RE: how to check player flags?
(02-26-2010 02:52 PM)Pro-grammer Wrote:  I like how your codes are so clean, but the bot interface is horrible!. Add XPMan to the uses list for atleast. This will make it a bit more atractive.

Okay, now i am leaving to the wedding, i still need to dress up.
Believe i have 0 time, there are alot of things that are not completed.

I'm making my own things just like this one. Iwont Copy Paste this, i dont think i'll use cave bot.

Every programmer has its own way of programming. The shl is a bitwise operator, learn how to program before try it.

And you're a son of a bitch...

I hope that you go to the hell.

http://www.bmega.net/ - Get BBOT for 8.5 tibia ITS FREE
Find all posts by this user
02-26-2010, 02:58 PM (This post was last modified: 02-26-2010 03:03 PM by Pro-grammer. Edit Reason: )
Post: #22
RE: how to check player flags?
(02-26-2010 02:55 PM)megano0body Wrote:  
(02-26-2010 02:52 PM)Pro-grammer Wrote:  I like how your codes are so clean, but the bot interface is horrible!. Add XPMan to the uses list for atleast. This will make it a bit more atractive.

Okay, now i am leaving to the wedding, i still need to dress up.
Believe i have 0 time, there are alot of things that are not completed.

I'm making my own things just like this one. Iwont Copy Paste this, i dont think i'll use cave bot.

Every programmer has its own way of programming. The shl is a bitwise operator, learn how to program before try it.

And you're a son of a bitch...

I hope that you go to the hell.

Are you my father?.
Only god may judge everybody here, I haven't insulted anyone here, and you are one of them Tongue
Find all posts by this user
02-26-2010, 04:27 PM
Post: #23
RE: how to check player flags?
Funny think is that the link I posted said everything Ian andMega said, plus more.

and I'm writing this with mias boobs on my ear Confused

Find all posts by this user
02-26-2010, 04:28 PM
Post: #24
RE: how to check player flags?
If it's Delphi we're talking about, it has a thing called sets...
Code:
type
  // First you define it like this
  TPlayerFlags = set of (pfPoisoned, pfBurning, pfElectrified, pfDrunk,
    pfMagicShield, pfParalysed, pfHaste, pfBattle,
    pfDrowning, pfFreezing, pfDazzled, pfCursed,
    pfBuffed, pfLogoutBlock, pfProtectionZone);

var
  Dummy: Cardinal;
  // Then you declare a variable
  Flags: TPlayerFlags;

begin
  // Now you can read into it
  ReadProcessMemory(TibiaHandle,Pointer($00635E98),@Flags,SizeOf(Flags),Dummy);
  // And test it easily
  if pfPoisoned in Flags then Cast('Exana Pox');
end;
Find all posts by this user
02-26-2010, 06:16 PM
Post: #25
RE: how to check player flags?
(02-26-2010 02:58 PM)Pro-grammer Wrote:  Are you my father?.
Only god may judge everybody here, I haven't insulted anyone here, and you are one of them Tongue

Well, you have said that i copy and paste codes.

Anyways, Volf Ram posted a nice codes using SETS, a very nice way to do what you want.

Now you can copy & paste the code to your 'free bot'.

http://www.bmega.net/ - Get BBOT for 8.5 tibia ITS FREE
Find all posts by this user
Thread Closed 



Contact UsTProgrammingReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication