Author Topic: Spawn Guard Script  (Read 2103 times)

0 Members and 1 Guest are viewing this topic.

Anonymous

  • Goblin Pup
  • *
  • Posts: 0
  • Reputation: +0/-0
Spawn Guard Script
« on: November 12, 2002 01:29 am CST »
This script isnt that useful, and you need LVL 3 admin or higher to do so. But it is somewhat entertaining for such a small peice of code.

function Spawnguards(%player, %count)
{
      for(%i = 0; %i < %count; %i++)
           {
                say(0, "#spawn sloth "@ %player @"-Defender"@ %i @" default 0");
      say(0, "#follow "@ %player @"-Defender"@ %i @" "@ %player @"");
           }
}

Thats it. To exec, (assuming you exec it automatically via autoexec.cs) just type Spawnguards(Lucid, 4); and player "Lucid" will have 4 bots following him. Feel free to change it from sloth to whatever it is you want, I picked sloths because they move fast enough to keep up with you. You could charge people for having guards that follow them. They wont really 'guard' you; they will attack whoever isnt on your team (citizen).
« Last Edit: December 31, 1969 06:00 pm CST by Anonymous »

Darwin

  • Centurian Lord
  • ********
  • Posts: 6,466
  • Reputation: +0/-0
    • http://www.mierda54.tripod.com
Re: Spawn Guard Script
« Reply #1 on: November 12, 2002 04:03 am CST »
Can you set it to where it takes like 4 spams to spawn a sloth to them?
« Last Edit: December 31, 1969 06:00 pm CST by Darwin »



Anonymous

  • Goblin Pup
  • *
  • Posts: 0
  • Reputation: +0/-0
Re: Spawn Guard Script
« Reply #2 on: November 12, 2002 09:01 am CST »
unless they are 'occupied' they will follow the player whereever they can.

Additionally you can modify the script to set the team to another one, so that instead of guards your spawning assassins or something.

BTW they spawn at your Xhair and then head off towards the other person. Keep in mind, these are'nt smart bots, their just bots on your team that have been told to follow you, however, if they encounter something on another team, they will attack it.
Quote
Can you set it to where it takes like 4 spams to spawn a sloth to them?

what? one of the functions of the script is you can adjust it. if you really wanna crash your own server feel free to do spawnguards(Lucid,100);
« Last Edit: December 31, 1969 06:00 pm CST by Anonymous »

Darwin

  • Centurian Lord
  • ********
  • Posts: 6,466
  • Reputation: +0/-0
    • http://www.mierda54.tripod.com
Re: Spawn Guard Script
« Reply #3 on: November 12, 2002 03:52 pm CST »
I think I just confused the both of us.  I thought the sloths were supposed to spawn to you to kill you if you spammed  :P...

Hell, I havent even completely read the first post, so if I'm still wrong, sry.
« Last Edit: December 31, 1969 06:00 pm CST by Darwin »



Particle

  • Chief Codemonger
  • Administrator
  • Centurian Lord
  • ********
  • Posts: 5,904
  • Reputation: +20/-4
    • Particle's Custom RPG
Re: Spawn Guard Script
« Reply #4 on: November 12, 2002 04:40 pm CST »
Hey, that's cool.  I think I might just stick that in serverquests.cs
« Last Edit: December 31, 1969 06:00 pm CST by Particle »
As a point of history:  Our last server clear was on September 27, 2004.  That is 4963 days ago (13.6 years) as of today.

If you're visiting after a long hiatus and have forgotten your password, try emailing me via the support form at http://www.pcrpg.org.

If your character is from after the 2004 clear but appears to have been deleted or reset, chances are it was caught in one of the inactive account purges over the years.  Backups were made before such events, so try the support form.