Wuffin
Gold
- Joined
- Aug 22, 2011
Hello everyone! (Not quite sure about the plugin name...)
So, i recently joined Herocraft again, and i must say, i really love it!
Tough, something came up in my mind the other day. Me and my friend always play in a party, but there is always something missing; Graphical interface!
I figured, it shouldn't be too hard to fix, since most of the plugin is already in place. Me myself, is well aware of that sometimes, even the simplest idea tend to get complex when getting down to the actual coding!
I was thinking it should take about this much space on the screen: (And more prettier ofc)
(And be transparent for a good reason)
Closeup:
---------------------------------------------------------------------------------
I was thinking something like this: (Theoretic coding)
[All players online is already stored]
[All players health, lvl, name and class is already stored]
This is why i think this will work: One's players health is already loaded upon entering the game. It shouldn't be too hard to load the same data to another player, as a second bar. It shouldn't mess up with the players health bars, unless the code more complex than i imagine it from the beginning...
if (
player.Party.Invite(
if(
player2==accept
show.Player2.name
show.Player2.lvl
show.Player2.class
show.Player2.health
show.transparentimage.png
)
)
If I (player) write /party invite Player2 (else nothing)
Check if player online. (else nothing)
If player2 accept (else nothing) Show all important data of player 2, including the important information of where its going to show on the screen.
------------------------------------------------------------------------------------
I unfortunately have no private server to test on, and i think the coding is far too different to try on singleplayer. Therefor i cannot try this myself, to see if it actually works. Neither am i sure if this would in fact cause extreme lag upon the server.
So, i recently joined Herocraft again, and i must say, i really love it!
Tough, something came up in my mind the other day. Me and my friend always play in a party, but there is always something missing; Graphical interface!
I figured, it shouldn't be too hard to fix, since most of the plugin is already in place. Me myself, is well aware of that sometimes, even the simplest idea tend to get complex when getting down to the actual coding!
I was thinking it should take about this much space on the screen: (And more prettier ofc)
(And be transparent for a good reason)
Closeup:
---------------------------------------------------------------------------------
I was thinking something like this: (Theoretic coding)
[All players online is already stored]
[All players health, lvl, name and class is already stored]
This is why i think this will work: One's players health is already loaded upon entering the game. It shouldn't be too hard to load the same data to another player, as a second bar. It shouldn't mess up with the players health bars, unless the code more complex than i imagine it from the beginning...
if (
player.Party.Invite(
if(
player2==accept
show.Player2.name
show.Player2.lvl
show.Player2.class
show.Player2.health
show.transparentimage.png
)
)
If I (player) write /party invite Player2 (else nothing)
Check if player online. (else nothing)
If player2 accept (else nothing) Show all important data of player 2, including the important information of where its going to show on the screen.
------------------------------------------------------------------------------------
I unfortunately have no private server to test on, and i think the coding is far too different to try on singleplayer. Therefor i cannot try this myself, to see if it actually works. Neither am i sure if this would in fact cause extreme lag upon the server.