Author Topic: All purpose script collection  (Read 15539 times)

0 Members and 1 Guest are viewing this topic.

Offline Flippeh

  • Major
  • *
  • Posts: 58
  • Fish go moo :>
    • My Homepage
All purpose script collection
« 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...
  • 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
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 !
« Last Edit: December 25, 2007, 02:02:42 pm by Flippeh »

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: All purpose script collection
« Reply #1 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>

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: All purpose script collection
« Reply #2 on: December 17, 2007, 06:58:11 am »
Cools... I have a similar one, http://do.eamped.com/topic80.html.

Offline Flippeh

  • Major
  • *
  • Posts: 58
  • Fish go moo :>
    • My Homepage
Re: All purpose script collection
« Reply #3 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!
« Last Edit: December 18, 2007, 08:58:36 am by Flippeh »

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: All purpose script collection
« Reply #4 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?
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: All purpose script collection
« Reply #5 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=?
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline KwS Pall

  • Major(1)
  • Posts: 49
  • I'm going to write Tibia for Soldat
Re: All purpose script collection
« Reply #6 on: December 21, 2007, 01:59:20 am »
and a point match flag?
I'm going to write Tibia for Soldat

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: All purpose script collection
« Reply #7 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

Offline Flippeh

  • Major
  • *
  • Posts: 58
  • Fish go moo :>
    • My Homepage
Re: All purpose script collection
« Reply #8 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 :/

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: All purpose script collection
« Reply #9 on: December 21, 2007, 02:31:45 pm »
can u give a example of how to move bravo to your current posistion?
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline Flippeh

  • Major
  • *
  • Posts: 58
  • Fish go moo :>
    • My Homepage
Re: All purpose script collection
« Reply #10 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.


Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: All purpose script collection
« Reply #11 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.



Woow. That looks beatful.
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: All purpose script collection
« Reply #12 on: December 26, 2007, 09:26:03 am »
yes, very nice :)

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: All purpose script collection
« Reply #13 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



Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: All purpose script collection
« Reply #14 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

Im chill like that

Offline Jonny-Central

  • Soldier
  • **
  • Posts: 160
Re: All purpose script collection
« Reply #15 on: March 04, 2008, 11:38:08 am »
Crazy

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: All purpose script collection
« Reply #16 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

Im chill like that

Offline Flippeh

  • Major
  • *
  • Posts: 58
  • Fish go moo :>
    • My Homepage
Re: All purpose script collection
« Reply #17 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!

Offline SneS

  • Soldier
  • **
  • Posts: 111
Re: All purpose script collection
« Reply #18 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.
« Last Edit: September 22, 2016, 02:06:40 am by SneS »

Offline Slasher

  • Soldier
  • **
  • Posts: 106
  • Peace
Re: All purpose script collection
« Reply #19 on: September 24, 2016, 08:32:44 am »
Hmmm..
Make love, not war.