Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fame karma gain help!
Author Message
nuke1985
Apprentice
*

Posts: 6
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
Post Reply 


Forum Jump:


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

This forum uses Lukasz Tkacz MyBB addons.