Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] About buffer type spell.


Domino_
 Share

Recommended Posts

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 xD
Make 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

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 ;D
Link to comment
Share on other sites

@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 ;D

Or, you could blt the icon above the player?
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...