![]() |
Custom Bufficon for potion cooldown? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Custom Bufficon for potion cooldown? (/Thread-Custom-Bufficon-for-potion-cooldown) |
Custom Bufficon for potion cooldown? - falsemirage - 07-31-2020 07:39 AM Hello all, I'm trying to find way to add bufficon to show cooldown when someone uses potions. I know how to add custom bufficon and remove it, however couldn't figure out how to do that when someone drinks a potion. I tried adding a memory under [typedef t_potion] however player still gets hardcoded memory item (i_handr_1) too. Is there a way to do this? Thanks RE: Custom Bufficon for potion cooldown? - Jhobean - 08-02-2020 06:46 AM Try this: IF <SRC.ISPLAYER> src.ADDBUFF 1039,1028825,1062028,15,Saignement endif RE: Custom Bufficon for potion cooldown? - falsemirage - 08-02-2020 07:57 AM Sphere doesn't understand Saignement argument. I took that out, and buff icon stays there when the timer runs out :/ RE: Custom Bufficon for potion cooldown? - Jhobean - 08-02-2020 10:53 AM "Saignement" is the text suppose to be write in the tooltip. What version of core you using? I use this syntax on X RE: Custom Bufficon for potion cooldown? - falsemirage - 08-02-2020 01:31 PM I run 56b-pre release, tried to go on X but i get lots of map error, and i can't put stuff in my backpack, gives me wrong packet send error for some reason. I mean buff icon shows up there no issues there. But it stays there until i enter removebuff etc.etc. What i'm trying to do is, get the buff icon there when i drink a potion, and remove it when timer disappears. RE: Custom Bufficon for potion cooldown? - golfin - 08-02-2020 04:06 PM Oh, the 56b is a very old version and buggy. If you can't use the X version, I recommend the 56d version. Don't test something ancient when you can have new ones. You can then modify the 56b scripts you need for the new versions. But both things (56d and X) are good. |