Page 1 of 1

Team Name Change & Team Choose Code

Posted: Sun Jun 24, 2007 11:31 pm
by Rikku
We should have a command to change a team name like

Examples

*changeteamname team 1,The Universal Monkeys
*changeteamname team 2,Navy
*changeteamname team 3,Army

Like that also
i would like a code to make you choose a team for the first time you get on
Example:

Code: Select all

Event( "PlayerLogin", 0 )
{
*setteam %player% team 1
or
*setteam %player% team 2
}
if that is not possible here is another

{
*setteam %player% team 1 chance 50%
*setteam %player% team 2 chance 50%
}
The first one in the code is the one i want is because i want people to chooose there team on login. If anything i said was posssible already please telll me and if there not yet made please consider them please!!!

Posted: Mon Jun 25, 2007 12:53 am
by Mit

Code: Select all

Event( "PlayerLogin", 0 ) 
{ 
$random = Rand(2)
*setteam %PLAYER% $random
} 
.. will work on the 0.51.3 servers.

In english, the script is saying :
When a player logs in..
set the variable "$random" to a Random number between ( 1 and 2 )
do the command *setteam <PLAYERNAME> $random
i.e. if 'bob' logs in, the command is either
*setteam Bob 1
or
*setteam Bob 2

Posted: Mon Jun 25, 2007 8:22 pm
by Rikku
I put that code in my events folder in the worlds data folder and i updated the version to the newest one 0.51.3 and it stilll doesnt work what did i do wrong!

Posted: Mon Jun 25, 2007 8:35 pm
by morbydvisns
servergamescript.mts goes in the server data folder

and type *reloadscript to load it into the server

Posted: Mon Jun 25, 2007 9:33 pm
by Rikku
thank you

Posted: Tue Jul 10, 2007 10:17 pm
by Rikku

Code: Select all

Event ( "PlayerLogin" )
{ 
*say 0 Welcome To Superior %player%! 
*say 0 Where you can find jobs to earn money, fight other players, and advance! 
}
Is There Anything Wrong With This Script! Its Saved As ServerGameScript.mts
It Wont Work Though If its Right! Also the server is running on 0.51.3!!!!! PLease Help If you Can!!

Posted: Thu Jul 12, 2007 12:11 am
by morbydvisns
here's proper:

Code: Select all

Event ( "PlayerLogin", 0  )
{ 
*say Welcome To Superior %player%! 
*say Where you can find jobs to earn money, fight other players, and advance! 
}