Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

kspree.lua

- - - - -

  • Please log in to reply
11 replies to this topic

#1
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPip
  • 419 posts
109
On the road to fame
I have a little problem with my kspree.lua :)

As you know, there are defined sprees from 5 to 35 (5, 10, 15... 35) and for each number of kills, the server shows a specific message + plays a sound. The problem is that by default announcements about sprees are endless which means the server doesn't stop announcing about sprees even when the last one (35) is reached. Let me explain this a bit more:

The message for 35 spree is: "<name> is outstanding!!! (35 kills)". And for example, when the player reaches 40 kills, the server again "says" the same message as for 35, but with another number (40 in this case - "<name> is outstanding!!! (40 kills)"). The server keeps repeating this announcement for every 5 kills (40, 45, 50...).

My question is what should I change in the script to stop announcing when the last defined spree is reached?

My kspree.lua:
Spoiler


#2
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPip
  • 3916 posts
262
Will become famous
  • LocationFinland
I don't know, and I didn't test at all, but you could try replacing the
spree = K_Sprees[35]
with return. In function checkKSprees(id)

#3
OFFLINE   =EMP=Avery13

=EMP=Avery13

    Advanced Member

  • Members
  • PipPipPip
  • 202 posts
15
On a distinguished road
  • LocationProvidence, RI
Where do you find the kspree.lua?

#4
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPip
  • 2461 posts
122
On the road to fame
Dragon, once you get it working, can you please submit it here?

http://mygamingtalk....category/8-lua/

So other admins can download from their if needed? Thanks

#5
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPip
  • 419 posts
109
On the road to fame
Download section doesn't want to accept *.lua files.

#6
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPip
  • 2700 posts
188
On the road to fame
  • LocationPoland
Add it as a zip file. I've already told Sol about it. Greets :)

#7
OFFLINE   =EMP=Avery13

=EMP=Avery13

    Advanced Member

  • Members
  • PipPipPip
  • 202 posts
15
On a distinguished road
  • LocationProvidence, RI
Are you still planning on downloading this to the download section Dragon? Would love to have it on my server.

#8
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPip
  • 419 posts
109
On the road to fame

Are you still planning on downloading this to the download section Dragon? Would love to have it on my server.

I don't want to upload it right now because it's still not a final version, but since it works good so far, I will send you the current version through PM tomorrow. There are still few things to tweak and that's why I don't want to upload the lua to the download section at the moment.

#9
OFFLINE   =EMP=Avery13

=EMP=Avery13

    Advanced Member

  • Members
  • PipPipPip
  • 202 posts
15
On a distinguished road
  • LocationProvidence, RI
That is fine and I respect that. I just don't understand lua and me creating one would not be such a good idea... lol

#10
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPip
  • 2700 posts
188
On the road to fame
  • LocationPoland

I don't want to upload it right now because it's still not a final version

You can add it anyway, just describe it that it's a beta version, might not be fully functional and it's not finished yet.
I think that would do.

#11
OFFLINE   Zer0o0

Zer0o0

    Newbie

  • Members
  • Pip
  • 9 posts
1
A step in the right direction
I think youre not using the last version of kspree i have it here and its the revision 239
It works flawless in my server.Attached File  kspree.zip   8.28KB   37 downloads

Edited by Zer0o0, 25 April 2012 - 05:23 PM.


#12
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPip
  • 419 posts
109
On the road to fame

I think youre not using the last version of kspree i have it here and its the revision 239
It works flawless in my server.Attached File  kspree.zip   8.28KB   37 downloads

Thanks for this!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users