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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Kill points system
Author Message
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #1
Kill points system
PVP Point System
How can i make this script work?
Seems like it doesnt cound the kills.
I have aded these events to the players
e_kills
e_man
e_SHOW



[events e_kills]
IF (<MEMORYFINDTYPE.08.ISPLAYER>)
MEMORYFINDTYPE.08.LINK.TAG.KS=0<MEMORYFINDTYPE.08.LINK.TAG.KS> +1
MEMORYFINDTYPE.08.LINK.TAG.kills=0<MEMORYFINDTYPE.08.LINK.TAG.kills> +1
MEMORYFINDTYPE.08.LINK.f_ks_announce
MEMORYFINDTYPE.08.REMOVE
f_ks
RETURN 1
ENDIF
IF (<MEMORYFINDTYPE.010.ISPLAYER>)
MEMORYFINDTYPE.010.LINK.TAG.KS=0<MEMORYFINDTYPE.010.LINK.TAG.KS> +1
MEMORYFINDTYPE.010.LINK.TAG.kills=0<MEMORYFINDTYPE.010.LINK.TAG.kills> +1
MEMORYFINDTYPE.010.LINK.f_ks_announce
MEMORYFINDTYPE.010.REMOVE
f_ks
RETURN 1
ENDIF
IF (<MEMORYFINDTYPE.020.ISPLAYER>)
MEMORYFINDTYPE.020.LINK.TAG.KS=0<MEMORYFINDTYPE.020.LINK.TAG.KS> +1
MEMORYFINDTYPE.020.LINK.TAG.kills=0<MEMORYFINDTYPE.020.LINK.TAG.kills> +1
MEMORYFINDTYPE.020.LINK.f_ks_announce
MEMORYFINDTYPE.020.REMOVE
f_ks
RETURN 1
ENDIF
IF (<MEMORYFINDTYPE.080.ISPLAYER>)
MEMORYFINDTYPE.080.LINK.TAG.KS=0<MEMORYFINDTYPE.080.LINK.TAG.KS> +1
MEMORYFINDTYPE.080.LINK.TAG.kills=0<MEMORYFINDTYPE.080.LINK.TAG.kills> +1
MEMORYFINDTYPE.080.LINK.f_ks_announce
MEMORYFINDTYPE.080.REMOVE
f_ks
RETURN 1
ENDIF
IF (<MEMORYFINDTYPE.02000.ISPLAYER>)
MEMORYFINDTYPE.02000.LINK.TAG.KS=0<MEMORYFINDTYPE.02000.LINK.TAG.KS> +1
MEMORYFINDTYPE.02000.LINK.TAG.kills=0<MEMORYFINDTYPE.02000.LINK.TAG.kills> +1
MEMORYFINDTYPE.02000.LINK.f_ks_announce
MEMORYFINDTYPE.02000.REMOVE
f_ks
RETURN 1
ENDIF

src.sysmessage @22 you have now killd <eval 0<src.tag.ks>> without die.
src.sysmessage @22 you have now killd <eval 0>src.tag.kills>>.






//*********************
// Killing Spree System

[FUNCTION f_ks_announce]
IF (<EVAL <TAG.KS>> >= 50)
SERV.B @3 TOTAL RECALL! <NAME> is killing everyone! Someone stop the carnage!
ELSEIF (<EVAL <TAG.KS>> >= 45)
SERV.B @3 RECALL ! <NAME> are murdering everyone! Can someone kill him!
ELSEIF (<EVAL <TAG.KS>> >= 40)
SERV.B @3 <NAME> are wicked sick! Someone have to pawn him!
ELSEIF (<EVAL <TAG.KS>> >= 35)
SERV.B @3 <NAME> is realy mad! OMG! noone can kill him.
ELSEIF (<EVAL <TAG.KS>> >= 25)
SERV.B @3 <NAME> is mad! Now you have to gank him to kill him.
ELSEIF (<EVAL <TAG.KS>> >= 20)
SERV.B @3 <NAME> is godlike! Someone have to kill him if its avable.
ELSEIF (<EVAL <TAG.KS>> >= 15)
SERV.B @3 <NAME> is unstoppeble! Someone kill him please.
ELSEIF (<EVAL <TAG.KS>> >= 10)
SERV.B @3 <NAME> is dominating! kill him!!!
ELSEIF (<EVAL <TAG.KS>> >= 8)
SERV.B @3 <NAME> is on a rampage! he/she is going to be a dominator if no one kill him.
ELSEIF (<EVAL <TAG.KS>> >= 5)
SERV.B @3 <NAME> is on a killing spree! someone kill him.
ENDIF

[FUNCTION f_ks_announce_death]
IF (<EVAL <TAG.KS>> >= 50)
SERV.B @025 <name>Confused TOTAL RECALL! have been stoped by: <src.act.name>, He pawned the head of <name>!
ELSEIF (<EVAL <TAG.KS>> >= 45)
SERV.B @025 <name>Confused RECALL ! are now pawned by: <src.act.name>!
ELSEIF (<EVAL <TAG.KS>> >= 40)
SERV.B @025 <name>Confused wicked sick are now removed by: <src.act.name>!
ELSEIF (<EVAL <TAG.KS>> >= 35)
SERV.B @025 <NAME>Confused realy mad! are stoped by a cheap... JK by: <src.act.name>.
ELSEIF (<EVAL <TAG.KS>> >= 25)
SERV.B @025 <NAME>Confused mad! have been pawned by: <src.act.name>.
ELSEIF (<EVAL <TAG.KS>> >= 20)
SERV.B @025 <NAME>Confused goooood like! have been stoped! By: <src.act.name>.
ELSEIF (<EVAL <TAG.KS>> >= 15)
SERV.B @025 <NAME>Confused unstoppeble! is no more, thx <src.act.name>.
ELSEIF (<EVAL <TAG.KS>> >= 10)
SERV.B @025 <NAME>Confused dominating! are broken, thx <src.act.name>.
ELSEIF (<EVAL <TAG.KS>> >= 8)
SERV.B @025 <NAME>Confused rampage! is gone. Thx <src.act.name>.
ELSEIF (<EVAL <TAG.KS>> >= 5)
SERV.B @025 <NAME>Confused killing spree! have been lost by: <src.act.name>.
ENDIF


// added events on to players


[events e_man]

ON=@DEATH

SRC.TAG.KS=0
VAR.OLD_ACT=<ACT>
VAR.X1=<EVAL <oSTR> /1> +<EVAL <oSTR> /1>
VAR.X=<EVAL {<VAR.X1> <oSTR>}>



[EVENTS e_SHOW]
ON=@CLICK
message @025,3 (Kills: <EVAL <TAG.KS>>)

IF (<EVAL <TAG.KS>> >= 50)
message @25 [TOTAL RECALL]
ELSEIF (<EVAL <TAG.KS>> >= 45)
message @25 [Recall]
ELSEIF (<EVAL <TAG.KS>> >= 40)
message @25 [Wicked Sick]
ELSEIF (<EVAL <TAG.KS>> >= 35)
message @25 [Realy Mad]
ELSEIF (<EVAL <TAG.KS>> >= 25)
message @25 [Mad]
ELSEIF (<EVAL <TAG.KS>> >= 20)
message @25 [Godlike]
ELSEIF (<EVAL <TAG.KS>> >= 15)
message @25 [unstoppeble]
ELSEIF (<EVAL <TAG.KS>> >= 10)
message @25 [Dominating]
ELSEIF (<EVAL <TAG.KS>> >= 8)
message @25 [Rampage]
ELSEIF (<EVAL <TAG.KS>> >= 5)
message @25 [Killing Spree]
Else
return 0
ENDIF

[EOF]
10-21-2014 05:15 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Kill points system - Kapa - 10-21-2014 05:15 PM
RE: Kill points system - UltimaAku - 10-21-2014, 11:00 PM
RE: Kill points system - Kapa - 10-22-2014, 01:24 AM
RE: Kill points system - UltimaAku - 10-22-2014, 05:22 AM

Forum Jump:


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