![]() |
show hitpoints on items - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: show hitpoints on items (/Thread-show-hitpoints-on-items) |
show hitpoints on items - dabritmusic - 02-12-2014 04:24 PM if i were to add a sysmessage to show the hitpoints of an item when clicked how would i show the percentage instead of just the number? i used on=@click message @0487 [Unique: Level 10] message @0481 <name> +25 src.sysmessage @0481 Hitpoints = <hitpoints> i was thinking like <hitpoints/hitpoints> or something. just cant figure it... RE: show hitpoints on items - Alaric - 02-12-2014 05:18 PM Simplemath. Hits/maxhits × 100. Or look at muldiv at sphere wiki. Code: local.x=<eval (hits/maxhits) ×100> RE: show hitpoints on items - dabritmusic - 02-12-2014 05:46 PM (02-12-2014 05:18 PM)Alaric Wrote: Simplemath. Hits/maxhits × 100. Or look at muldiv at sphere wiki. Simple math lol. thanks... works great! RE: show hitpoints on items - Extreme - 02-12-2014 07:09 PM <eval (<hits>*100)/<maxhits>> Sent from my GT-I9505 using Tapatalk RE: show hitpoints on items - Alaric - 02-12-2014 08:46 PM Ye, always forget that. ![]() RE: show hitpoints on items - Avatar - 02-13-2014 04:20 AM Hi guys, i dont want to create new topic as my request is similar with this topic. The point i would like to ask is regarding showing message on player about how much they get and give damage. I actually made this with sendpacket. By default my 6x client does not show damage given and gotten to player. As the case like this, i used sendpacket. The problem is i cant achieve changing color of message sent to top of player. Given damage and gotten have same color and this situation makes confusion. Under @gethit trigger, sendpacket 0bf w11 w022 01 d<uid> <args> I used that packet. If anyone knows how to change color , I would be really happy ![]() RE: show hitpoints on items - Alaric - 02-13-2014 04:37 AM Code: on=@gethit Code: on=@gethit the three zeroes are talkmode,font,lang. You must try to put some numbers there... I dunno, just try it ![]() E: Or the default aos show damage in sphere.ini. It should work for 6, even v7 clients. You can't change colour in the packet. RE: show hitpoints on items - Avatar - 02-14-2014 04:58 AM Bro, i know what you are exactly showing to me. However, what I'm using is sendpacket it shows number like moving from to down. ![]() AOS show damage is what I'm looking for. Thanks. Is it FEATURE_AOS_DAMAGE 08 right ? Or am I wrong. RE: show hitpoints on items - dabritmusic - 02-27-2014 10:29 AM (02-12-2014 07:09 PM)Extreme Wrote: <eval (<hits>*100)/<maxhits>> THIS DOESNT SHOW THE PERCENTAGE OUT OF. OR IS IT JUST STATING OUT OF 100? SO HYPOTHETICALLY IF IT WAS DAMNAGED ITD JUST SAY 84... AND THEY CAN REPAIR BACK TO 100? RE: show hitpoints on items - Awaken - 02-27-2014 09:14 PM I have something in my PC. Try with some like this Code: LOCAL.Percent=<muldiv <Hitpoints.Lo>,100,<Hitpoints.Hi>> |