Author Topic: Teleport Script  (Read 1961 times)

0 Members and 1 Guest are viewing this topic.

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Teleport Script
« on: April 04, 2010, 03:23:39 pm »
Script Name: Teleport
Script Description teleport script squiddy hacktank teammates no spec
Author: Squiddy
Compile Test: Passed
Core Version: 2.6.5
Hosted by: Soldat Central - http://soldatcentral.com/

Full Description:
Teleport Script in which you can teleport only to your teammates.
Although, you lose a random ammount of health, which goes
from 1 to MaxDamage (Set by script user. Currently 21).

Usage:
- Type !Teleport <Target> (Target Should be the ID of one of
your teammates)

Special thanks to:
- HackTank [USA]
- Tio R [BRAZIL]

Thanks you two! You helped a loooot!! :P

If you are going to use it, then credit it to the three of us.

~~ EDIT ~~

UPDATED:
[4/4/2010 ~ 22:34 (Local Time)]

~ Fixed The "Not a valid Integer value" bug, thanks to Tio R! Thanks!



(Size 983 B)
- http://soldatcentral.com/index.php?page=script&f=172 -


** Script hosted by Soldat Central! Please visit the author's script page and Rate this script **
« Last Edit: April 04, 2010, 08:36:50 pm by squiddy »
www.soldatx.com.br - The brazilian Soldat community.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Teleport Script
« Reply #1 on: April 04, 2010, 04:04:56 pm »
It's like 5 lines of code? Also I guess you mean health because losing damage makes no sense to me.

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: Teleport Script
« Reply #2 on: April 04, 2010, 04:06:55 pm »
It's like 5 lines of code? Also I guess you mean health because losing damage makes no sense to me.

Geez, did I actually say Damage ? Lmfao.

:P

It has 27 lines, including Author stuffs.
www.soldatx.com.br - The brazilian Soldat community.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Teleport Script
« Reply #3 on: April 04, 2010, 04:20:45 pm »
If player types !teleport aaa few times, server will crash :D

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: Teleport Script
« Reply #4 on: April 04, 2010, 05:02:18 pm »
If player types !teleport aaa few times, server will crash :D

That's because you have to type a number, instead of a string.
www.soldatx.com.br - The brazilian Soldat community.

Offline Tio R

  • Major(1)
  • Posts: 12
Re: Teleport Script
« Reply #5 on: April 04, 2010, 07:08:03 pm »
If player types !teleport aaa few times, server will crash :D

That's because you have to type a number, instead of a string.
Use "try" for prevent errors and crash.
http://www.delphibasics.co.uk/RTL.asp?Name=Try

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: Teleport Script
« Reply #6 on: April 05, 2010, 05:44:44 am »
Code: [Select]
S := Random(1, MaxDamage);Use this instead since Random(Min, Max); will never reach the actual max value:
Code: [Select]
S := Random(1, MaxDamage + 1);
 :o You've got such a funny way to write scripts  ;D
Btw. who infected you with the scripting virus?

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Teleport Script
« Reply #7 on: April 05, 2010, 07:24:47 am »
@Swompie: It changed. I forget when (probably in the beta server), high value is now max. At least I'm pretty sure. But says its for 2.6.5 so your right, MaxDamage + 1.

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: Teleport Script
« Reply #8 on: April 05, 2010, 02:26:08 pm »
[...]
will never reach the actual max value:
[...]
 :o You've got such a funny way to write scripts  ;D
Btw. who infected you with the scripting virus?

For instance, Random(1,5); Would result in numbers: 1,2,3,4.

About my script writing, thanks, I like to make it in horizontal "U"s :P

Two guys infected me. Mostly, HackTank :P He's the one who particularly helps me the most :P
Secondly, the best scripter in Brazil, Prodigy. Very helpfull too, but Hack's just better :P
www.soldatx.com.br - The brazilian Soldat community.