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
function f_addbuff
Author Message
Cntg
Apprentice
*

Posts: 9
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Apr 2015
Reputation: 0



Post: #1
function f_addbuff
I took scripts for necromancy skill from community pack but i didn't find this function codes ' f_addbuff '. I didn't know How does it work so i didnt't do anything for this. Does anyone have this function codes?
(This post was last modified: 04-14-2015 03:44 AM by Cntg.)
04-14-2015 03:38 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

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

Dimension Shard

Post: #2
RE: function f_addbuff
you can use directly the hardcoded ADDBUFF / REMOVEBUFF functions

sintax:
ADDBUFF iconID, cliloc1 (title), cliloc2 (description), timer (optional / 0 = no timer), args (optional)
REMOVEBUFF iconID
04-14-2015 04:10 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #3
RE: function f_addbuff
Or just https://www.google.es/#q=sphere+communit...+f_addbuff (First result have the function).
04-14-2015 04:33 PM
Find all posts by this user Like Post Quote this message in a reply
Cntg
Apprentice
*

Posts: 9
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Apr 2015
Reputation: 0



Post: #4
RE: function f_addbuff
Ok i changed it in that way but now,i have an error.

What does this function do?

ERROR:(sphere_spells_necromancy.scp,99)Invalid AddBuff argument number 1

ON=@Success
local.delay = <eval ((<spiritspeak> - <act.magicresistance>) / 80) + 8>
tag0.BloodOathCaster = <act.uid>
act.tag0.BloodOath = <uid>
act.events +e_BloodOath
act.timerf <dlocal.delay>,f_BloodOathDispel
AddBuff BloodOathCaster,<dlocal.delay>,<act.uid>
act.AddBuff BloodOathCurse,<dlocal.delay>,<uid>
(This post was last modified: 04-14-2015 10:00 PM by Cntg.)
04-14-2015 09:50 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #5
RE: function f_addbuff
Do you have these defnames? https://code.google.com/p/sphere-communi....scp?r=151

This function does, as it states, adding a buff to the player, you'll see if you have client greater than SA (AFAIR): http://www.uoguide.com/Buff_Bar
04-14-2015 11:27 PM
Find all posts by this user Like Post Quote this message in a reply
Cntg
Apprentice
*

Posts: 9
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Apr 2015
Reputation: 0



Post: #6
RE: function f_addbuff
i hadn't take its. Thanks Smile

I have one more problem. I guess, The latest sphereserver.exe have a poison time problem. when someone affect poison, The poison rune remove quickly. But when i use the old version, I don't have this problem.

Also, i remove all events and checked poison morey.
(This post was last modified: 04-15-2015 12:09 AM by Cntg.)
04-15-2015 12:08 AM
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)