ET commands


(BlackEight) #1

Hello
Ive got 2 guestions about the shrubbot commands and i would be really glad if you could help with it.
Thats how the shrubbot command look like
[command]
command = test
exec = playsound sound/test/test.wav; cp !TESTTEST!; !put; qsay testtesttesttesttesttestttesttesttesttesttesttesttesttesttesttest
desc = test
levels = 1 2 3
I want to ask about the exec line. I want to put really long exec which incorporate playsound,qsay,cp,!put and…there is not enough space to put all the tests:( When i type in console !test, in the main chat only half of all tests flashes up:( Damn it. Do you happen to know how to overwrite this or so?

I also would like to ask if there is some possibility to put some spam protection into that command. I mean, you can only type this command once every 3 mintues :confused: Can you help?

Best regards


(stealth6) #2

use multiple say or qsay commands

but I don’t think you can make a spam protection for it


(ailmanki) #3

maybe possible to spam more with a cfg…
make cfg in your modfolder,
cmdtest.cfg
and inside it all the stuff you want it todo… one cmd per line.

exec = exec cmdtest.cfg

spam protection might work this way:
http://www.punksbusted.com/wiki/index.php/PB_SV_Task
supposing level 8 has that cmd not, but 9 has it.

exec = !setlevel [n] 8; exec cmdtest.cfg; pb_sv_task 180 -1 "!setlevel [n] 9";

that might work, might not, in any case it needs pb.

[n] should be replaced by the name and that will surely cause troubles.


(BlackEight) #4

I have the pb off currently, but once its on ill try it.
I tried multplay qsay but it doesnt work. Its like there is limited number of characters you can put into exec line. If i kick playsound,cp,!put out of this line and leave only tests, then all those tests flashes up in the global chat when i write !test in console.

              exec space

|…|

          !test exec space

|playsound;cp;!put;qsaytesttest…|TESTTESTTEST…

I mean that this “TEST…” written in capital letters somehow stick out from this exec line.


(BlackEight) #5

OK, i kinda solved it thanks to ailmanki.
I created the test.cfg file in server nq folder. In this test.cfg i wrote:

///////////////
////test//////
//////////////
chat testtesttesttesttesttesttesttesttesttesttesttesttesttest

No thats how this command looks like in shrubbot:
[command]
command = test
exec = playsound sound/test/test.wav; cp !TESTTEST!; !put; exec test.cfg
desc = test
levels = 1 2 3


(BlackEight) #6

I have one command like that:
[command]
command = kiss
exec = qsay [n] gives [1] a kiss:*
desc = say kiss
levels = 1 2 3

When i type in console !kiss black i receive a message like:
BlackEight:!kiss black
BlackEight gives black a kiss:*

What do i have to do to make this command print my whole nickname? Not only this black that i type in console.


(BlackEight) #7

Hello

I want to create cmd that will shuffle teams by xp:

[command]
command = shufflexp
exec = ?
desc = Shuffle teams by xp
levels = 28

I know that you can do that via /ref but I want to make shrub cmd. Am I supposed to make exec like:

exec = ref shuffleteamsxp

?

I run noquarter 1.2.5.

Regards,
Eight


(stealth6) #8

there is already a !shuffle command in 1.2.5?


(BlackEight) #9

Yes but that just shuffles, not regarding the xp points.


(stealth6) #10

actually xp is the only thing it does regard afaik


(BlackEight) #11

!shuffle shuffles by xp?


(stealth6) #12

yes, that’s why it’s so useless on xp save servers.


(BlackEight) #13

All right, sorry for bothering you :slight_smile: Hym, I have a offtopic question…isn’t that you who made PSL Koth map btw??


(stealth6) #14

yep that’s me :slight_smile:

orb_battle was a much improved version, but had some issues and didn’t feel like fixing them. (too much work hehe)

Funny thing that was one of my most sucessful maps or the most maybe (not sure), but it took the least amount of effort / time and inspiration to make :smiley: Think it took me like a week to make.


(warren the ape) #15

That’s true for NQ 1.2.5 and below. But since NQ 1.2.7 the !shuffle command uses additional variables like kills, deaths, sprees, the amount of damage given/received etc., to produce a more random shuffle result.


(BlackEight) #16

Funny thing that was one of my most sucessful maps or the most maybe (not sure), but it took the least amount of effort / time and inspiration to make Think it took me like a week to make.

A week?! I though map making process lasts months…all the details and stuff. Anyway, very good map indeed :slight_smile:
All right, back to topic…I came up with new cmd:

[command]
command = magic
exec    = playsound sound/vo/magic2/magic2.wav; !pip [1]; wait 70
desc    = Turn somebody into the frog. !magic [NAME]|[SLOT]
levels  = 27 28 

Well all it does is sparks around the player and the playsound yet is that possible to change the appearance of player? I mean, there is !pants that removes the pants from player. Is there a way to make player’s skin green for egzample or add some “antennes” to his head?

Regards,
Eight


(shagileo) #17

[quote=BlackEight;242456]A week?! I though map making process lasts months…all the details and stuff. Anyway, very good map indeed :slight_smile:
[/quote]

Mostly it does, depending on the time that’s at hand for the mapper(s).

[quote=BlackEight;242456]
… is that possible to change the appearance of player? I mean, there is !pants that removes the pants from player. Is there a way to make player’s skin green for egzample or add some “antennes” to his head?

Regards,
Eight[/quote]

That would require some re-texturing and modeling skills.
Changing the color of the skin wouldn’t be all to hard to make (not really experienced with that matter, but normally you could find the skin tga files in the pak0 => edit it via your favorite image editor tool and re-save it in a separate pk3 file).

Antennas is another matter (modeling part) - no idea about that


(Nail) #18

there was a Christmas pack for W:ET we used on the North Pole map, santa hats for allies and antlers for axis, antennas shouldn’t be difficult, it was just a pk3

[edit] everything including green grinch skin and antlers

but I doubt you could make it an admin command, everyone would need the skin.pk3 and it’s not the same function as pants removal which is in the game already, maybe just the antennae, like helmet popping


(BlackEight) #19

So it isn’t rather possible to make such cmd? Pity…that would look nice :confused:


(Nail) #20

really, sounds more like another annoying admin command