Simple spree system

Started by KAKAN, May 09, 2016, 05:47 AM

Previous topic - Next topic

KAKAN

Someone PM'ed me to give him a spree system, so I thought to create this and share it with all of yo.
Here's the code:
http://pastebin.com/7TsH8izAI haven't tested it yet, if someone can test it, it would be good for me :)
It can still be improved, but I thought to keep it as simple as I can :D
oh no

Xmair

You should actually test it first since bugs can occur from any place.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

KAKAN

Quote from: Xmair on May 09, 2016, 09:32 AMYou should actually test it first since bugs can occur from any place.
Okay, tested. Added /spree command. Working.
If you still find bugs, report it here.
oh no

Cool

INC does not exists everything putting in right place but error coming onplayerkill

Thijn

Then you probably didn't copy paste it correctly.

KAKAN

Quote from: Hercules on May 09, 2016, 03:40 PMINC does not exists everything putting in right place but error coming onplayerkill
Maybe you forgot the onPlayerJoin?
oh no

KAKAN

Forgot another parameter in onPlayerPart, added it. Report if you find any new bugs.
oh no

Cool

@KAKAN i have found an nice bug for players see if a player kill 3 player and in medium he died and after death he kill more 2 players so he will got spree please fix it

KAKAN

Quote from: Hercules on May 11, 2016, 03:14 PM@KAKAN i have found an nice bug for players see if a player kill 3 player and in medium he died and after death he kill more 2 players so he will got spree please fix it
Was busy with doing some other things, thanks for pointing it out. It was a 1 line fix, so, fixed.
oh no

Cool

Now its working fine thanks you done it in very simple method no spam nice :D

Derwaish.

@KAKAN I found a bug in your script. The victim is on killing spree while killer is not and when victim killed Killer he end his own spree. lol


KAKAN

Quote from: R on Jun 04, 2017, 03:38 AM@KAKAN I found a bug in your script. The victim is on killing spree while killer is not and when victim killed Killer he end his own spree. lol


Quote from: Thijn on May 09, 2016, 04:09 PMThen you probably didn't copy paste it correctly.
oh no

SAzEe21

may be your onPlayerKill function fault, post your onplayerkill here.

Derwaish.

Quote from: Zeeshan.Bhatti on Jun 04, 2017, 06:13 AMmay be your onPlayerKill function fault, post your onplayerkill here.



 spree[ killer.ID ].Inc();
    spree[ player.ID ].End( killer );
Copied from Given link
Quote from: KAKAN on Jun 04, 2017, 06:00 AM
Quote from: R on Jun 04, 2017, 03:38 AM@KAKAN I found a bug in your script. The victim is on killing spree while killer is not and when victim killed Killer he end his own spree. lol


Quote from: Thijn on May 09, 2016, 04:09 PMThen you probably didn't copy paste it correctly.

Hmm. Let me try again in Blank Server.


Xmair

You probably have killer as the person who is killed and the killed person as killer.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD