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-nmm6 (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-nmm6 (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-nmm6 (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
fame karma gain help!
Author Message
nuke1985
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2016
Reputation: 0



Post: #1
fame karma gain help!
ell me please how this script can be done so that when you get karma or fame it was written how much it got for example +1265 fame and 247 karma
Code:
[EVENTS e_fame_karma_gain]
ON=@GetHit
TAG.TEMPFAMETAG <SRC.FAME>
TAG.TEMPKARMATAG <SRC.KARMA>
RETURN 0

ON=@Death
ACT.FAME <TAG.TEMPFAMETAG>
IF (<ACT.FAME> < 10000) && (<ACT.FAME> < <FAME>)
ACT.FAME <ACT.FAME>+((<FAME>+-<ACT.FAME>)/20)
f_show_fame_gain
IF <ACT.FAME> > 10000
ACT.FAME 10000
ENDIF
ENDIF
ACT.KARMA <TAG.TEMPKARMATAG>
IF (<ACT.KARMA> > -10000) && (<ACT.KARMA> < 10000)
IF <KARMA> > 0
ACT.KARMA <ACT.KARMA>+-(<KARMA>/20)
f_show_karma_loss
ELSE
ACT.KARMA <ACT.KARMA>+((<ACT.KARMA>+-(<KARMA>))/20)
f_show_karma_gain
ENDIF
IF <ACT.KARMA> > 10000
ACT.KARMA 10000
ELSEIF <ACT.KARMA> < -10000
ACT.KARMA -10000
ENDIF
ENDIF
RETURN 0

[FUNCTION f_show_fame_gain]
IF ((<FAME>+-<ACT.FAME>)/20)>500
ACT.SYSMESSAGE You have gained huge amounts of fame.
ELSEIF ((<FAME>+-<ACT.FAME>)/20)>250
ACT.SYSMESSAGE You have gained a lot of fame.
ELSEIF ((<FAME>+-<ACT.FAME>)/20)>100
ACT.SYSMESSAGE You have gained a moderate amount of fame.
ELSEIF ((<FAME>+-<ACT.FAME>)/20)>50
ACT.SYSMESSAGE You have gained a little fame.
ELSEIF ((<FAME>+-<ACT.FAME>)/20)>0
ACT.SYSMESSAGE You have gained a bit of fame.
ENDIF

[FUNCTION f_show_karma_loss]
IF (<KARMA>/20)>500
ACT.SYSMESSAGE You have lost huge amounts of karma.
ELSEIF (<KARMA>/20)>250
ACT.SYSMESSAGE You have lost a lot of karma.
ELSEIF (<KARMA>/20)>100
ACT.SYSMESSAGE You have lost a moderate amount of karma.
ELSEIF (<KARMA>/20)>50
ACT.SYSMESSAGE You have lost a little of karma.
ELSEIF (<KARMA>/20)>0
ACT.SYSMESSAGE You have lost a bit of karma.
ENDIF

[FUNCTION f_show_karma_gain]
IF ((<ACT.KARMA>+-(<KARMA>))/20)>500
ACT.SYSMESSAGE You have gained huge amounts of karma.
ELSEIF ((<ACT.KARMA>+-(<KARMA>))/20)>250
ACT.SYSMESSAGE You have gained a lot of karma.
ELSEIF ((<ACT.KARMA>+-(<KARMA>))/20)>100
ACT.SYSMESSAGE You have gained a moderate amount of karma.
ELSEIF ((<ACT.KARMA>+-(<KARMA>))/20)>50
ACT.SYSMESSAGE You have gained a little karma.
ELSEIF ((<ACT.KARMA>+-(<KARMA>))/20)>0
ACT.SYSMESSAGE You have gained a bit of karma.
ENDIF
06-14-2018 05:25 AM
Find all posts by this user Like Post Quote this message in a reply
Artyk
Journeyman
*

Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0



Post: #2
RE: fame karma gain help!
07-03-2018 06:42 AM
Find all posts by this user Like Post Quote this message in a reply
nuke1985
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2016
Reputation: 0



Post: #3
RE: fame karma gain help!
Can you please give an example, I can not figure this out
07-19-2018 03:00 AM
Find all posts by this user Like Post Quote this message in a reply
Artyk
Journeyman
*

Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0



Post: #4
RE: fame karma gain help!
ON=@KarmaChange
SYSMESSAGE <ARGN1>
08-07-2018 12:51 AM
Find all posts by this user Like Post Quote this message in a reply
nuke1985
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2016
Reputation: 0



Post: #5
RE: fame karma gain help!
how to block standard messages little gain karma and orhers?
09-05-2018 03:36 AM
Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #6
RE: fame karma gain help!
Enable this from sphere_msgs.scp (with removing // from beginning) and remove text inside quote marks.

Code:
//msg_noto_change_0                "You have %s %s %s."
(This post was last modified: 09-21-2018 12:07 AM by xwerswoodx.)
09-21-2018 12:07 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)