Author Topic: ARSSE Scripts  (Read 8357 times)

0 Members and 1 Guest are viewing this topic.

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
ARSSE Scripts
« on: August 31, 2006, 07:19:10 pm »
I would like to make a topic where admins can post their self-made ARSSE scripts so others can use it etc.
I dont really get the OnData event (it really doesnt work always) and somehow i managed to disable irc commands like !uptime
Has anyone got any cool scripts? maybe /killall or an advanced team-balancer?

I have been trying to make a nice OnData script which only displays specific actions like join/part, chat, kicks and team changes. but it really doesnt seem to work.. or maybe it is because ive got 2 servers running on arsse?

Offline Mistercharles

  • Veteran
  • *****
  • Posts: 1371
  • +
Re: ARSSE Scripts
« Reply #1 on: August 31, 2006, 07:56:59 pm »
I believe OnData looks at everything the server console shows.
shoutout to m'boyz eagles_arrows, echo_trail, wraithlike, sadistatheart, chakapoko maker, jrgp, aznblood, chakra, keron cyst, et al, miss you, let's '#gather some day

Offline Frenchie

  • Camper
  • ***
  • Posts: 358
  • SoldatHQ
Re: ARSSE Scripts
« Reply #2 on: September 01, 2006, 02:02:40 am »
ARSSE has some problems with scripting.

If you want an admin program that can script (like ARSSE) then I really recommend using ESA as it has many more options and has a more powerful scripting system.
Soldat Lobby Avec Players -New Release! - Updated AGAIN!


Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: ARSSE Scripts
« Reply #3 on: September 01, 2006, 04:30:26 am »
ahh thanks man, ESA is great :)
Just what ive been looking for

Offline frito

  • Major(1)
  • Posts: 7
Re: ARSSE Scripts
« Reply #4 on: September 02, 2006, 03:29:29 pm »
if $DATA = /killall
/kill 1
/kill 2
/kill 3
/kill 4
/kill 5
/kill 6
/kill 7
/kill 8
/kill 9
/kill 10
/kill 11
/kill 12
/kill 13
/kill 14
/kill 15
/kill 16
/kill 17
/kill 18
/kill 19
/kill 20
/kill 21
/kill 22
/kill 23
/kill 24
/kill 25
/kill 26
/kill 27
/kill 28
/kill 29
/kill 30
/kill 31
/kill 32
endif


would be the /killall you're looking for. i've had a lot of fun with it :]

Offline Mistercharles

  • Veteran
  • *****
  • Posts: 1371
  • +
Re: ARSSE Scripts
« Reply #5 on: September 02, 2006, 04:56:00 pm »
^Lame.

if $DATA = /killall
/kill *
endif
shoutout to m'boyz eagles_arrows, echo_trail, wraithlike, sadistatheart, chakapoko maker, jrgp, aznblood, chakra, keron cyst, et al, miss you, let's '#gather some day

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: ARSSE Scripts
« Reply #6 on: September 02, 2006, 06:22:39 pm »
I'm moving this to Fan Apps, since it is about ARSSE, and each person's individual script is like a mini fan app.  If you want to post your script(s) that you've made, post it/them here.


Offline Mistercharles

  • Veteran
  • *****
  • Posts: 1371
  • +
Re: ARSSE Scripts
« Reply #8 on: September 04, 2006, 10:28:12 am »
Damn you wildcards that only work with ARSSE.

Switchteamifier (prevents disconnects):
if $MESSAGE = !team1
/setteam1 $PLAYERNUM
endif

if $MESSAGE = !team2
/setteam2 $PLAYERNUM
endif
shoutout to m'boyz eagles_arrows, echo_trail, wraithlike, sadistatheart, chakapoko maker, jrgp, aznblood, chakra, keron cyst, et al, miss you, let's '#gather some day

Offline frito

  • Major(1)
  • Posts: 7
Re: ARSSE Scripts
« Reply #9 on: September 04, 2006, 01:03:14 pm »
if $PLAYER_IP <> YOUR IP HERE
/kill $PLAYER_NUM
endif

if $PLAYER_IP = IDIOT'S IP HERE
/setteam5 $PLAYER_NUM
/say SHH NOOB.
endif


Both are fun when you put it on the OnPlayerSpeak event.

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: ARSSE Scripts
« Reply #10 on: September 11, 2006, 10:36:58 am »
^great addition man

anyway now ESA is out which of course has a lot more options script-wise. the only thing that is missing in ESA is IRC support which ARSSE does have. Only i can't figure out exactly why it does certain things..
I want to be able to see some stuff from the server in IRC, like map/players/timeleft. this is what i have now: (OnIRCMessage ofc)

if $MESSAGE = !players
  IRCMsg $SERVER_NAME - A: $ALPHA_PLAYERS B: $BRAVO_PLAYERS
endif

the output is:
16:13 <BombSki^> !players
16:13 <ServerTalk> !playersQuloa - A: 5 B: 5
(Quloa is the name of the server)

i wonder why it includes !players in the output.. But hey at least it works. On to the next problem..
I have 2 servers in ARSSE, and when i do !players it just grabs the playercount of the currently active (in arsse) server. How could i make it say the playercount in both of the servers?
The output would be:
Quote
DJLorenzo - A: 3 - B:4
Quloa - A: 4 - B: 4

If that is not possible, is there a way i could make the trigger server specific? like !playersQuloa or !playersDJ ?
I havent tried this script with maps and timeleft, but i guess it works the same.
ideas anyone?

Date Posted: September 11, 2006, 10:29:48 AM
i just read the ARSSE manual about IRC. It says it already supports IRC commands like !player [num] and !help.
These commands didnt work, so i decided to reinstall arsse to see if i messed something up. Now ive got a clean arsse running but these commands still dont work.. any idea?

Offline KentheGreat

  • Soldier
  • **
  • Posts: 102
    • a Kennie blog
Re: ARSSE Scripts
« Reply #11 on: September 11, 2006, 02:44:16 pm »
the only thing that is missing in ESA is...

a way to make the scripts easier to make :D

Offline frito

  • Major(1)
  • Posts: 7
Re: ARSSE Scripts
« Reply #12 on: September 11, 2006, 05:19:36 pm »
I looked at some ESA scripting examples and I was way lost.. maybe someday I'll have the patience to learn.


ARSSE scripts are much easier to work with, personally. SolTV is way cool, I wish ARSSE had it ;] I haven't played around with IRC.. but maybe running two instances of ARSSE with different script files should give trigger specific results. I don't know how the IRC crap works but its worth a try.

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: ARSSE Scripts
« Reply #13 on: September 12, 2006, 11:27:35 am »
yes i was thinking about running 2 arsses too, but its not the best way. especially if the feature i need is, according to the manual, already coded in the program.

Offline KeFear

  • Soldier
  • **
  • Posts: 181
  • ARSSE Creator
Re: ARSSE Scripts
« Reply #14 on: September 13, 2006, 11:02:39 am »
Well, the IRC support is now - sadly - messed up in ARSSE. Actually i messed up the whole code last time i wanted to add server-specific scripts support. So i must work on it, and fix these, but the worst is that i don't have time for almost anything because of my work :S

So sorry ppl, you have to wait, or use ESA instead.

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: ARSSE Scripts
« Reply #15 on: September 13, 2006, 01:17:34 pm »
hehe ok :) i also found this weird bug when i was posting some ascii art.. check this:

20:04 <BombSki^>  {o,o}
20:04 <BombSki^>  |)__)
20:04 <BombSki^>  -"-"-
20:04 <BombSki^> O RLY?
20:04 <ServerTalk> "-""-""-" on Quloa - A: 5 B: 5
20:04 <BombSki^>  ___
20:04 <BombSki^> {o.o}
20:04 <BombSki^> |)_(|
20:04 <BombSki^> -"-"-
20:04 <BombSki^> YA RLY
20:04 <BombSki^>   ___
20:04 <BombSki^>  {o,o}
20:04 <BombSki^>  (__(|
20:04 <BombSki^>  -"-"-
20:04 <BombSki^> NO WAI!
20:04 <ServerTalk> "-""-""-" on Quloa - A: 5 B: 5

we found out what the trigger was.. its
Code: [Select]
-" (space is 1st char)

it was very easy to abuse :P

20:14 <Requiem>  -"-"-"-"-"-"-"-"-"-"-"-"-"-"-"-"-"-"-"-"-
20:14 <ServerTalk> "-""-""-""-""-""-""-""-""-""-""-""-""-""-""-""-""-""-""-""-""-" on Quloa - A: 3 B: 2
20:14 <BombSki^>  -"lolznoob
20:14 <ServerTalk> "-""lolznoob" on Quloa - A: 3 B: 2

the script that caused this:
if $MESSAGE = !players
  IRCMsg $SERVER_NAME - A: $ALPHA_PLAYERS B: $BRAVO_PLAYERS
endif

when ESA comes out with IRC support ill start using that i guess :x

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: ARSSE Scripts
« Reply #16 on: October 11, 2006, 09:15:45 am »
OnData.txt
Code: [Select]
if $DATA = Next map:*
IRCMsg 7($SERVER_NAME)$DATA
endif

if $DATA = *scores*
IRCMsg 7($SERVER_NAME)$DATA
endif

 ;) ;) ;)
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: ARSSE Scripts
« Reply #17 on: October 11, 2006, 09:28:34 am »
OnData

if $DATA = No map has been voted
 /say Map vote failed.
endif

if $DATA = * gets a ping warning
HIDE
endif

if $DATA = Error: Could not load map*
/say Maperror detected. Restarting previous map.
/restart
endif

if $DATA = /irc *
IRCmsg $DATA
endif

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: ARSSE Scripts
« Reply #18 on: October 11, 2006, 09:40:19 am »
hmm nice ;)
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: ARSSE Scripts
« Reply #19 on: October 12, 2006, 04:31:11 am »
Code: [Select]
if $DATA = /stfu
/say         __    ___                             __   
/say .-----.|  |_.'  _|.--.--. .-----.-----.-----.|  |--.
/say |__ --||   _|   _||  |  | |     |  _  |  _  ||  _  |
/say |_____||____|__|  |_____| |__|__|_____|_____||_____|
endif

if $DATA = /pwnd
/say  ______ ________ _______ _____ 
/say |   __ \  |  |  |    |  |     \
/say |    __/  |  |  |       |  --  |
/say |___|  |________|__|____|_____/
endif

be creative i'd say ;)
http://www.network-science.de/ascii/

edit: seems the code-tag still has text-formatting which means u cant see it :x if you dont get it u might wanna copy and paste it in notepad or mirc to see.