minipimp Posted February 17, 2009 Author Share Posted February 17, 2009 :rstar: Does anyone know how to make all the Players bar only appear when getting hit?like when no ones attacking the player, it will look nice :rstar:Ive been searching for the for the longest time, haven't found an answer yet. =( Link to comment Share on other sites More sharing options...
zade_o Posted February 17, 2009 Share Posted February 17, 2009 Umm… only think i can think of is make a global boolean variable and when the player is getting attacked set the variable to true and when it's done getting attacked set it to false.then in bltplayerbar, do an if statement before drawing the bar Link to comment Share on other sites More sharing options...
Drag0n Posted February 17, 2009 Share Posted February 17, 2009 Something like this:```BltPlayerBarAppearIf PlayerBar.Damage = >*maxhp* ThenfrmMirage.Visible = TruePlayerBar.Visible = True``` Link to comment Share on other sites More sharing options...
Tyr Posted February 17, 2009 Share Posted February 17, 2009 @ÃÂragon:> Something like this:> > ```> BltPlayerBarAppear> If PlayerBar.Damage = >*maxhp* Then> frmMirage.Visible = True> PlayerBar.Visible = True> ```lol so you think that a playerbar is an object? :Dthis isn't going to work at all…Sinnix i'm coding it for you tomorrow, as we need it for aura anyway. Link to comment Share on other sites More sharing options...
minipimp Posted February 21, 2009 Author Share Posted February 21, 2009 @Tyr:> lol so you think that a playerbar is an object? :D> this isn't going to work at all…> > Sinnix i'm coding it for you tomorrow, as we need it for aura anyway.Thanks, i would love to have that feature in my project. Link to comment Share on other sites More sharing options...
zidsal Posted February 21, 2009 Share Posted February 21, 2009 This is simple to do in bltplayerbar just add an if statement```If GetTickCount < Player(MyIndex).LastAttack + 5000 Then```by using this if statement it will stop blting the bars after the players last attack + 5 seconds. (If then then attacks again it will blt again e.t.c). Link to comment Share on other sites More sharing options...
Tyr Posted February 21, 2009 Share Posted February 21, 2009 @zidsal:> This is simple to do in bltplayerbar just add an if statement> > ```> If GetTickCount < Player(MyIndex).LastAttack + 5000 Then> ```> by using this if statement it will stop blting the bars after the players last attack + 5 seconds. (If then then attacks again it will blt again e.t.c).its If GetTickCount < Player(MyIndex).AttackTimer + 5000 Then :)it works, only problem is that it stops blt the bar when you stop attacking for 5 secs (if the NPC attacks you or not, makes no diffrence…oh and Sinnix, blt the bar for other players is a bit more dificuilt then expected, but i'll do it someday Link to comment Share on other sites More sharing options...
Drag0n Posted February 23, 2009 Share Posted February 23, 2009 Thanks, I actually thought playerbar was an object. I was sorta sleepy at the time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now