Urban Terror Forums: NUKE-Script - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

NUKE-Script Rate Topic: -----

#11 User is offline   HELSEN (old) Icon

  • Joined: 18-January 04
  • Posts: 122
  • LocationGermany

Posted 11 April 2004 - 11:18 PM

Hmm. I could use a wait command.
But this will not answer, why the first nuke didnt start?

Greetings Avatar

#12 User is offline   ghozt (old) Icon

  • Joined: 16-January 04
  • Posts: 862
  • LocationDelaware, USA

Posted 12 April 2004 - 01:41 AM

FSK405N was workin on a random nuke script on our server.. it was server side though.. maybe it could help u out, find him on irc or kickassctf.com

#13 User is offline   Sachem (old) Icon

  • Joined: 08-February 04
  • Posts: 81
  • LocationFrance

Posted 12 April 2004 - 01:48 PM

is there a way to nuke by client ID rather than by name? I never heard of one.

#14 User is offline   HELSEN (old) Icon

  • Joined: 18-January 04
  • Posts: 122
  • LocationGermany

Posted 12 April 2004 - 05:30 PM

I always nuke bei clientID, because names-nuking is a pain in the a**
And it work nice for me

Greetings Avatar

#15 Guest_Annihilator

Posted 12 April 2004 - 05:36 PM

As far as I know, any rcon command that can be use with the clients name, can also be used with the clients number.

bullet_loaderAdvertisement

#16 User is offline   tr!ckn0l0gy (old) Icon

  • Joined: 19-January 04
  • Posts: 1,678
  • Locationreal virtuality

Posted 14 April 2004 - 10:05 AM

:idea: didn't autoaim.cfg want to rewrite the whole thing? hey iLA send your leader to help out here!

#17 User is offline   HELSEN (old) Icon

  • Joined: 18-January 04
  • Posts: 122
  • LocationGermany

Posted 14 April 2004 - 10:24 AM

Ok, I get it running, with wait-commands about 75-100.
But with 17 Slots on my server, the last one will get his ca. 20 seconds after the first one.
= useless :cry:

#18 Guest_FSK05N

Posted 22 April 2004 - 05:05 PM

Well, I remember the things you guys have already come across as I wrote this script last October, I think. It uses urtrcon.pl and bash.

#!/bin/bash
#
# random-nuke.sh
#
# DEPS: urtrcon.pl and players.sh
#
# this pulls the player stats urtrcon.pl, strips
# off the crap (i should just re-write urtrcon
# but this works with little cost so wtf..)
###################################################

IP='YOURSERVERIPADDRESS'
PASS='YOURRCONPASS'


# this gets just the CID from quake and correctly sorts them
# to find the 'high' number for our range..
players.sh |gawk '{print $1}' |grep [0-9.] |sort -g >cids.tmp

# random is taken from /dev/srandom i believe
# range comes from the above CID listing..
RANGE=`tail -q -n1 cids.tmp`

sleep 3 #cause urtrcon or quake is choking on it..

number=$RANDOM
let "number %= $RANGE"

urtrcon.pl -s $IP -P $PASS -c "nuke $number"

rm -f cids.tmp

#fin


#!/bin/bash
#
# players.sh
# Who is on the server...

IP='YOURSERVERIP'
PASS='YOURRCONPASS'

urtrcon.pl -s $IP -P $PASS

#fin

############################

The 2nd script is useful by itself as 'players.sh' in ~/bin so while you are at a *nix console, you can see instantly the map and what players are online.

HTH!

Happy Fraggin!


PS - I think the slow sending of commands is the built-in flood control.

#19 Guest_Annihilator

Posted 22 April 2004 - 08:05 PM

Heh, nice.

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942