The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Bufficon for potion cooldown?
Author Message
falsemirage
Apprentice
*

Posts: 13
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2013
Reputation: 0



Post: #1
Custom Bufficon for potion cooldown?
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
07-31-2020 07:39 AM
Find all posts by this user Like Post Quote this message in a reply
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 9 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #2
RE: Custom Bufficon for potion cooldown?
Try this:
IF <SRC.ISPLAYER>
src.ADDBUFF 1039,1028825,1062028,15,Saignement
endif

https://www.uocryptonite.com/
08-02-2020 06:46 AM
Find all posts by this user Like Post Quote this message in a reply
falsemirage
Apprentice
*

Posts: 13
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2013
Reputation: 0



Post: #3
RE: Custom Bufficon for potion cooldown?
Sphere doesn't understand Saignement argument.

I took that out, and buff icon stays there when the timer runs out :/
08-02-2020 07:57 AM
Find all posts by this user Like Post Quote this message in a reply
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 9 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #4
RE: Custom Bufficon for potion cooldown?
"Saignement" is the text suppose to be write in the tooltip.

What version of core you using? I use this syntax on X

https://www.uocryptonite.com/
08-02-2020 10:53 AM
Find all posts by this user Like Post Quote this message in a reply
falsemirage
Apprentice
*

Posts: 13
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2013
Reputation: 0



Post: #5
RE: Custom Bufficon for potion cooldown?
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.
08-02-2020 01:31 PM
Find all posts by this user Like Post Quote this message in a reply
golfin
Banned

Posts: 213
Likes Given: 2
Likes Received: 32 in 28 posts
Joined: Nov 2017

Eranova

Post: #6
RE: Custom Bufficon for potion cooldown?
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.
08-02-2020 04:06 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)