I've been asking for assistance quite a bit lately, forgive me xD
Okay, let's start off with, I know there currently isn't any packets that support the display of party member's SP bar(blue). So I decided to settle with copying the clif->hpdisplay and making SP versions, to just update the HP with SP status information.
This is all done by performing a check of a player's variable and if yes update with SP if no, update with HP. So far it works.... but backwards @.@;
What I want it to do is, if a player turns @showsp on. Then the HP bars of his/her party members will be updated with SP information. Then when a party member who has @showsp off, will only see HP bars with HP information. That means, even the HP of the player using @showsp on.
But, what I managed to do was this:
1. Player A uses @showsp on.
2. Player B uses @showsp off.
3. Player A uses a skill.
4. Player B see's his HP bar drop. Pressing Alt+Z will also display the same information. (This is the problem. Player B should only see the HP information).
5. Player B uses a skill.
6. Player A doesn't see a change in the bar because Player B isn't showing SP. (Again this is a problem. Player A should see an update because he is requesting to see SP information).
I don't know where I went wrong with this patch, but i'll post what changes I made.
( Don't mind the buybacklist clif added in there. It is completely irrelevant to this, and also doesn't interfere with it =P )
I've been asking for assistance quite a bit lately, forgive me xD
Okay, let's start off with, I know there currently isn't any packets that support the display of party member's SP bar(blue). So I decided to settle with copying the clif->hpdisplay and making SP versions, to just update the HP with SP status information.
This is all done by performing a check of a player's variable and if yes update with SP if no, update with HP. So far it works.... but backwards @.@;
What I want it to do is, if a player turns @showsp on. Then the HP bars of his/her party members will be updated with SP information. Then when a party member who has @showsp off, will only see HP bars with HP information. That means, even the HP of the player using @showsp on.
But, what I managed to do was this:
1. Player A uses @showsp on.
2. Player B uses @showsp off.
3. Player A uses a skill.
4. Player B see's his HP bar drop. Pressing Alt+Z will also display the same information. (This is the problem. Player B should only see the HP information).
5. Player B uses a skill.
6. Player A doesn't see a change in the bar because Player B isn't showing SP. (Again this is a problem. Player A should see an update because he is requesting to see SP information).
I don't know where I went wrong with this patch, but i'll post what changes I made.
( Don't mind the buybacklist clif added in there. It is completely irrelevant to this, and also doesn't interfere with it =P )
showsp.patch
Share this post
Link to post
Share on other sites