Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: Flippeh on December 16, 2007, 06:22:05 pm

Title: All purpose script collection
Post by: Flippeh on December 16, 2007, 06:22:05 pm
Script Name: adminfun, objects, gsspawn, mt, vote, fun
Script Description: Does various of handy/fun stuff
Original Author(s): Flippeh
Makes use of: xSplit by Keydon
Core Version: 2.6.3
Code: Haha :(. Its all in the attachment :>

Ever wanted to blow up someone? Disable weapons on the fly? Alter spawn points?
Then these scripts will come in handy!
In the attached .zip file, you will find 6 different scripts, that are either fun, usefull or both

adminfun - toys for the bored server admin
Command: /hurt <id> <amount>
Description: Hurts the player by <amount> damage
Aliases: /slap, /punch, /poke

Command: /god [id]
Description: Gives you or any ID godmode. Call it again to revoke the god

Command: /bomb <id>
Description: Starts a 10 second countdown after which the targeted player will blow up

Command: /weap <weapon id> <id> <1|0>
Description: Disables or enables <weapon id> for <id> during runtime. If <weapon id> is 0, every weapon is affected. If <id> is 0, every player is affected.
Example: /weap 7 0 0 (disables the M79 for everyone)
Known Problem: Player will still have every weapon after teamchange, or (re)joining game

objects - "Some statguns, sir?"
Command: /co <object ID>
Description: Spawns an object of type <object ID>
Example: /co 15 (spawns a stationary gun at your position)

Command: /ro <ID>[..<EndOfRange>]
Description: Removes a previously spawned object, or a range of object
Example: /ro 22..50 (removes every object with an ID between 22 and 50 (including 22 and 50). USE WITH CARE! You could remove flags, and some servers don't like that AT ALL!)

Command: /spawn <object ID> <amount> [spacing]
Description: Creates a series of objects of the same type in the direction you are facing.


gsspawn - "spawn me pitpitpitpiptipt!" - Major
Command: /nspawn
Description: Displays information about the spawn that is nearest to your player

Command: /dspawn <ID>
Description: Displays information about the spawn with the ID of <ID>

Command: /mspawn <ID>[,<ID2>,<ID3>, ..., <IDx>] <property> <value>
Description: Changes the spawn of <ID>. Valid properties and their values are are...
Feature: You can use a list of spawn ids: /mspawn 15,26,34 move will move the spawns 15, 26 and 34 to your position (INSERT NO SPACES!)

Command: /sspawn <style>
Description: Searches all spawns, and displays any spawn matching <style>

Command: /fspawn [max]
Description: Searches all spawns, and displays any unused (free to modify) spawns. Only shows [max] spawns, if you specify it


mt (miniteleport) - zoom zoom zoom...
Commands: /up, /left, /right, /down
Argument: <units>
Description: Moves you by <units> units into any direction

Command: /bring <ID>
Description: Moves player with <ID> to your current position

Command: /goto <ID>
Description: Moves yourself to the location of the player matching <ID>


vote - Something for players
Player Command: /votenext
Description: Stats a mapvote for the next map


fun - Fun stuff for players
Player Command: /piss
Description: Tells everyone that there is some food standing around... helplessy..

Player Command: /victory
Description: The soldat launches his primal scream, and every team mate in range does 1.5 times more damage and takes 1.5 times less damage for 30 seconds by default. Time of effect, range, damage output and income can be easily modified in the script



Have some fun!
Bug reports are always welcome! Find me in #soldat.devs !
Title: Re: All purpose script collection
Post by: DorkeyDear on December 16, 2007, 08:59:34 pm
Loaded with goodies, what fun a server owner can have :)
for /weap just have array[1..32] of array[1..14] of boolean that auto SetWeaponActive to a player when OnJoinTeam is called
suggestion: for /weap, doing "t<team#>" instead of "<id>" will set every1 on that team's weapons; any # < 0 or > 4 means all teams? or just "a" or "all" or "e" or "everyone" or "everybody" for every1.
suggestion: /savespot [<X> <Y>](saving ur current location / x,y; and it returning an ID #); /move <spotid>; /moveplayer <id> <spotid>
Title: Re: All purpose script collection
Post by: Boblekonvolutt on December 17, 2007, 06:58:11 am
Cools... I have a similar one, http://do.eamped.com/topic80.html.
Title: Re: All purpose script collection
Post by: Flippeh on December 17, 2007, 11:52:14 am
Loaded with goodies, what fun a server owner can have :)
for /weap just have array[1..32] of array[1..14] of boolean that auto SetWeaponActive to a player when OnJoinTeam is called
suggestion: for /weap, doing "t<team#>" instead of "<id>" will set every1 on that team's weapons; any # < 0 or > 4 means all teams? or just "a" or "all" or "e" or "everyone" or "everybody" for every1.
suggestion: /savespot [<X> <Y>](saving ur current location / x,y; and it returning an ID #); /move <spotid>; /moveplayer <id> <spotid>

:)
Array saving definitly in, next version!
I'll try to add the team based stuffs, when i get to it, thanks for the suggestion :)
For /move etc check out my other script "Admin teleport". This does what you want, and more!

edit: Forgot to add something in the first post:

fun script
Command: -none-
Description: Whenever you kill someone with a knife _STAB_ you gain 5 extra points (6 total), and a red "XXX got Humiliated!" pops up in the console!
Title: Re: All purpose script collection
Post by: miketh2005 on December 20, 2007, 01:38:57 pm
Can you give more info on gss pawn? Especially this part:

Command: /mspawn <ID> <property> <value>
Description: Changes the spawn of <ID>. Valid properties and their values are are...

    * move -no value-: moves the spawn to your players position
    * style styleID: changes the spawn's style
    * active state: activates (1 or on) or deactives (0 or off) the spawn

what styles are there? and can you give more info with what they mean and an example please?
Title: Re: All purpose script collection
Post by: Kavukamari on December 20, 2007, 06:40:10 pm
0=DM team
1=Alpha
2=bravo
3=charlie
4=delta
5=aflag
6=bflag
7=possibly rambo bow
>7=?
Title: Re: All purpose script collection
Post by: KwS Pall on December 21, 2007, 01:59:20 am
and a point match flag?
Title: Re: All purpose script collection
Post by: DorkeyDear on December 21, 2007, 09:31:22 am
and a point match flag?
i believe same as alpha flag when point match is enabled gamemode
Title: Re: All purpose script collection
Post by: Flippeh on December 21, 2007, 01:03:05 pm
There are also some styles for Medpack, Nades, bonus etc etc. But i don't know them :/
Title: Re: All purpose script collection
Post by: miketh2005 on December 21, 2007, 02:31:45 pm
can u give a example of how to move bravo to your current posistion?
Title: Re: All purpose script collection
Post by: Flippeh on December 24, 2007, 07:08:47 am
Sure


If you want to create a completly new spawn, do this:

First use /fspawn 1 to find a free spawn, remember that ID
Now do /mspawn <the id> move to move it to your position
/mspawn <the id> style 2 - make it a bravo spawn
/mspawn <the id> active on - activate it

Else...

Do /sspawn 2 to list all bravo spawns (lets say there are 4 spawns with the IDs 22, 23, 24 and 25, and you want to move 22 and 24)
Use /mspawn 22,24 move (yes, NO space between the numbers and the comma! Thats important!

Now the spawns are moved.

Forgot to add the list editing in the main post, got to edit that

Date Posted: 22 December 2007, 17:16:27
Bump for update!

adminfun update
Added command: /penta <ID> [size]
Alias: /sacr
Description: Sacrifices a player (See screenshot) - Don't use it more than 4 times within 10 seconds or so - it will kill your server! Thanks alot to ramirez for greatly helping me on this one.

(http://www.abload.de/img/raarrrdu9.png)
Title: Re: All purpose script collection
Post by: xmRipper on December 26, 2007, 09:13:26 am
Bump for update!

adminfun update
Added command: /penta <ID> [size]
Alias: /sacr
Description: Sacrifices a player (See screenshot) - Don't use it more than 4 times within 10 seconds or so - it will kill your server! Thanks alot to ramirez for greatly helping me on this one.

(http://www.abload.de/img/raarrrdu9.png)

Woow. That looks beatful.
Title: Re: All purpose script collection
Post by: Mr on December 26, 2007, 09:26:03 am
yes, very nice :)
Title: Re: All purpose script collection
Post by: Szewczuq on December 30, 2007, 12:45:18 pm
How to use: /puch and /poke? when i write: /punch 1 8 <- it's nothing :(
Code: [Select]
adminfun - toys for the bored server admin
Command: /hurt <id> <amount>
Description: Hurts the player by <amount> damage
Aliases: /slap, /punch, /poke
Title: Re: All purpose script collection
Post by: Bonecrusher on March 03, 2008, 04:12:10 am
Quote
Command: /bring <ID>
Description: Moves player with <ID> to your current position

doesnt work for me
Title: Re: All purpose script collection
Post by: Jonny-Central on March 04, 2008, 11:38:08 am
Crazy
Title: Re: All purpose script collection
Post by: Bonecrusher on March 05, 2008, 04:16:37 am
Code: [Select]
// Command /flame (big|small|off)
  // Create (non damaging) flames on you, every second.
  // MAY CAUSE SERVER FLOOD OR CRASH! ENABLE AT YOUR OWN RISK!
       
  {If RegExpMatch('^/flame (big|small|off)$', Text) Then Begin
    If Players[ID].Flame Then         //
      Players[ID].Flame := False;     //
                                       // If flames already set, disable them
    If Players[ID].BigFlame Then      //
      Players[ID].BigFlame := False;  //
   
    If GetPiece(Text, ' ', 1) = 'off' Then exit; // If <off> is chosen, just exit and don't set new flames
   
    If GetPiece(Text, ' ', 1) = 'big' Then Begin // Big?
      Players[ID].BigFlame := True; // Enable big
    End else Begin
      Players[ID].Flame := True; // Enable small
    End;
  End;}

doesnt work too
Title: Re: All purpose script collection
Post by: Flippeh on July 18, 2008, 03:06:35 pm
Code: [Select]
// Command /flame (big|small|off)
  // Create (non damaging) flames on you, every second.
  // MAY CAUSE SERVER FLOOD OR CRASH! ENABLE AT YOUR OWN RISK!
       
  {If RegExpMatch('^/flame (big|small|off)$', Text) Then Begin
    If Players[ID].Flame Then         //
      Players[ID].Flame := False;     //
                                       // If flames already set, disable them
    If Players[ID].BigFlame Then      //
      Players[ID].BigFlame := False;  //
   
    If GetPiece(Text, ' ', 1) = 'off' Then exit; // If <off> is chosen, just exit and don't set new flames
   
    If GetPiece(Text, ' ', 1) = 'big' Then Begin // Big?
      Players[ID].BigFlame := True; // Enable big
    End else Begin
      Players[ID].Flame := True; // Enable small
    End;
  End;}

doesnt work too

Bumpity bump.
That doesn't work, because you need to remove the { and } at the start and the end of that block, because they are block comments and comment that code out!
Title: Re: All purpose script collection
Post by: SneS on September 22, 2016, 01:51:56 am
Quote
/hurt <id> <amount>
/slap, /punch, /poke
/god [id]
/bomb <id>
/weap <weapon id> <id> <1|0>


Best commands don't work  :-\ Someone can fix it?

/god [id], /bomb - most important commands for me.

https://forums.soldat.pl/index.php?topic=14822.msg289937#msg289937 - in this script function /god works very well but /god [ID] unfortunately not.
Title: Re: All purpose script collection
Post by: Slasher on September 24, 2016, 08:32:44 am
Hmmm..
Title: Re: All purpose script collection
Post by: soldat-game on July 27, 2018, 07:14:47 am
Fix bugs for SoNNy dont update to script core 3 but work.