Domino_ Posted August 7, 2011 Author Share Posted August 7, 2011 How to make that when i cast str +10 on myself then appears a picture box with spell icon and time left till buffer ends?I dont know more than this xDMake a picture box , make it invisiable than what to do? go to spell editor and if spell buffer str then picture visiable but I need to add timmer?Where in eo 2.0 edit the place where casting starts? The code…If you dont understand me , that's ok xD Link to comment Share on other sites More sharing options...
tsuki Posted August 7, 2011 Share Posted August 7, 2011 I understand you.You want to add an icon of the buffer type and a timmer that counts how seconds are 'till the end of the buff, right?you need to work with both side.at the server you need to create a function that gets the value from the buffdur and send to client and in the client you need to create a code to show the counter and the picbox when you're using a bufftry to add a value at the playerrec like "playerbuffer as long"in the server side create a function to change the playerbuffer to 0 or 1 and put at **Public Sub AddBuff** to change to 1so in the **Public Sub ClearBuffs** put to change to 0and in the client side you add a function with this:```if player(myindex).playerbuffer = 1 thenfrmMain.picbuff.visible = trueelsefrmMain.picbuff.visible = falseend if```remember it's just a theory. maybe I'm wrong, but I think it's a point to start ;D Link to comment Share on other sites More sharing options...
Carim123 Posted August 7, 2011 Share Posted August 7, 2011 @Jimmy:> I understand you.> You want to add an icon of the buffer type and a timmer that counts how seconds are 'till the end of the buff, right?> > you need to work with both side.> at the server you need to create a function that gets the value from the buffdur and send to client and in the client you need to create a code to show the counter and the picbox when you're using a buff> > try to add a value at the playerrec like "playerbuffer as long"> > in the server side create a function to change the playerbuffer to 0 or 1 and put at **Public Sub AddBuff** to change to 1> so in the **Public Sub ClearBuffs** put to change to 0> and in the client side you add a function with this:> > ```> if player(myindex).playerbuffer = 1 then> frmMain.picbuff.visible = true> else> frmMain.picbuff.visible = false> end if> ```> > remember it's just a theory. maybe I'm wrong, but I think it's a point to start ;DOr, you could blt the icon above the player? Link to comment Share on other sites More sharing options...
Sunku Posted August 7, 2011 Share Posted August 7, 2011 now i'm curious how would you blt the icon above the player? Link to comment Share on other sites More sharing options...
tsuki Posted August 7, 2011 Share Posted August 7, 2011 @Tahnner:> now i'm curious how would you blt the icon above the player?I'm curious too. But I've seen it on a project.It's possible, but hardest than put on the gui. Link to comment Share on other sites More sharing options...
shadowdeath Posted August 8, 2011 Share Posted August 8, 2011 Use bltSprite as framework. You will need to modify the code existing, or you could make a new blt. 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