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 Buff / Debuff on Buff Bar
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #8
RE: Custom Buff / Debuff on Buff Bar
you can't use a custom text on addbuff, the primary "text" will be the cliloc text, you can only customize the aditional text variable (and only if the cliloc needs an aditional variable)

Example using Invisibility:
-IconID = 1036 (the invisibility icon)
-Cliloc1 = 1075825 (text: "Invisibility")
-Cliloc2 = 1075826 (text: "Makes you hidden for ~var~ seconds") <-- I cant remember exactly the text of this cliloc but its something like this
-Seconds = 60
-Aditional Text = not needed in this case

so the function will be:
SRC.ADDBUFF 1036,1075825,1075826,60,
PS: note that the last args is empty because it's not needed

this will show a cliloc like this
Quote:INVISIBILITY:
Makes you hidden for 60 seconds

if you already have buff defs set on sphere_defs.scp, it will be even easier, all you need to do is use
SRC.ADDBUFF <DEF.bufficon_invisibility>,<DEF.buffcliloc_invisibility_1>,<DEF.buffcliloc_invisibility_2>,60,
and
SRC.REMOVEBUFF <DEF.bufficon_invisibility>
04-13-2014 03:35 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Custom Buff / Debuff on Buff Bar - EOSCPM - 04-08-2014, 11:07 PM
RE: Custom Buff / Debuff on Buff Bar - XuN - 04-08-2014, 11:10 PM
RE: Custom Buff / Debuff on Buff Bar - Coruja - 04-13-2014 03:35 AM

Forum Jump:


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