RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Capture the Flag and Double Domination Games

Status
Not open for further replies.

Amplify

Wanderer
Nebu.

1. THINK, Numteams, what can that mean? Number of teams maybee?
2. Read all the replys in this thread and you will get your anwser.
3. tbh, me > u
;)

Hope that will do it for ya
 

Kamron

Knight
If are you getting errors, it would be best to paste them and explain exactly what you did (or modified) to acheive this. If you did modify something script wise, dont be surprised if people are inclined to blame your alteration ;)
 

danknight21

Wanderer
i didnt change anything im just asking, do other people have it working fine on release 1.0 it only happens when i delete all the stones after adding them
 

nick1234

Wanderer
Not to seem noobish or anything

:rolleyes: yah im not a noob but still i reguire some help now and then i have looked through the post and have came upon noting that answers my question. Here it is: In the middle of a ctf game how can u end the game totally? u know when i use [endgame in restarts in 60sec plz help if u can. :rolleyes:

Thank You,
:D A confused shard owner :D


:confused: :confused: :confused: :confused: :confused: :confused:
 

nick1234

Wanderer
Amplify said:
Nick1234, yes i got the same problem :p

Dosnt rly seem to be a way to stop the ctf :/


there has to be a way to stop it or its a bum script (no offense zippy)

I dont want to delete the game stone either because ill just have to set it up again right after i figured it out SOMEONE PLZ HELP

Any help will be most apreciated :D
 

Amplify

Wanderer
It mainly is a bum script ;P
Alot of recoding is needed for it to be a good and working script...

Feel free to code so that:
flag drops on ground and not in corpse
a way to turn it off...

bcoz i sure as hell cant :<
 

nick1234

Wanderer
Amplify said:
It mainly is a bum script ;P
Alot of recoding is needed for it to be a good and working script...

Feel free to code so that:
flag drops on ground and not in corpse
a way to turn it off...

bcoz i sure as hell cant :<

lol
i cant script that well, i just started and was looking for a little help so naturally i came to my buddies at run uo. Hmm maybe ill try to find a way to make those things happen if i do ill notify u
 

Amplify

Wanderer
nick1234 said:
lol
i cant script that well, i just started and was looking for a little help so naturally i came to my buddies at run uo. Hmm maybe ill try to find a way to make those things happen if i do ill notify u

Im waiting ;)
 
Here's the code I did to end the game with [endgame command

CTFGame.cs Line 296

Code:
		public void EndGame( bool Manual )
		{
			CTFTeam Winner = null;
			int teamSize = this.TeamSize;
			ArrayList list = new ArrayList( teamSize*m_Teams.Count );

			if ( Manual )
			{
				if ( m_GameTimer != null )
					m_GameTimer.Stop();
				m_Open = false;				
				//m_GameTimer = new GameTimer( this );
				//m_GameTimer.Start();
			}

			for (int i=0;i<this.Teams.Count;i++)
			{
				CTFTeam team = (CTFTeam)m_Teams[i];
				if ( Winner == null || team.Points > Winner.Points )
					Winner = team;

				for (int j=0;j<team.Members.Count;j++)
				{
					Mobile m = (Mobile)team.Members[j];

					if ( m.NetState != null )
					{
						team.Members.Remove( m );
						list.Add( m );
					}
				}
			}

			for (int i=0;i<list.Count;i++)
			{
				Mobile m = (Mobile)list[i];
				m.SendGump( new CTFTeamSelector( this, teamSize ) );
				m.Frozen = true;
			}

			if ( !Manual )
			{
				if ( Winner != null )
					this.PlayerMessage( "This round has ended.  The winner is {0} with {1} points!", Winner.Name, Winner.Points );
				else
					this.PlayerMessage( "This round is over." );

				this.PlayerMessage( "The next round will start in 60 seconds.  Please select your team." );
				new StartTimer( this, list ).Start();
			}
			else
			{
				this.PlayerMessage( "This game has ended.  The winner is {0} with {1} points!", Winner.Name, Winner.Points );
			}
		}
 

Shaitanus

Wanderer
Special thx 2 Zippy, very good Scripts....
But i not agree with the player's death at begin of CTF game...
i meen if he die, that his hits and mana would be 100%!
Differently the game turns out unballancet, because one of the teems does not give other to equip and heal....
 
Coords

Im a little confused on setting Corrdinates for the CTF... on this command line

public GameRegion() : base( "", "Game", Map.Felucca )
{
Priority = Region.HighestPriority;
LoadFromXml = false;

this.Coords = new ArrayList( 1 );
this.Coords.Add( new Rectangle2D( 5896, 393, 111, 111 ) );//ctf
this.Coords.Add( new Rectangle2D( 5901, 270, 96, 95 ) );//dd
}
the coords for the CTF has 4 numbers for coordinates... on the [props, it shows only three numbers for X Y Z... how do I fix this? im on RUnUo 1.0. everything runs find execpt for the regions. Help.
 
In response to:

Im a little confused on setting Corrdinates for the CTF... on this command line

public GameRegion() : base( "", "Game", Map.Felucca )
{
Priority = Region.HighestPriority;
LoadFromXml = false;

this.Coords = new ArrayList( 1 );
this.Coords.Add( new Rectangle2D( 5896, 393, 111, 111 ) );//ctf
this.Coords.Add( new Rectangle2D( 5901, 270, 96, 95 ) );//dd
}
the coords for the CTF has 4 numbers for coordinates... on the [props, it shows only three numbers for X Y Z... how do I fix this? im on RUnUo 1.0. everything runs find execpt for the regions. Help.

Page 3 of this thread...


Originally posted by ]Raiden[
The first set of #'s is the location of the game region ie.. 5896, 393
The second set is how long and wide, by the way of tiles. 111 long and 111 wide..

hope that helps..

X is east-west and Y is north-south. Z is elevation.
 

Michael642

Wanderer
Hi. I loaded the scripts and loaded the shard with no errors. I did the [add CTFGame command and when I went to place it it said...

Usage:
CTFGame Int32 numTeams

That's all it did. Can anyone please help me? Thanks!
 
Michael642 said:
Hi. I loaded the scripts and loaded the shard with no errors. I did the [add CTFGame command and when I went to place it it said...

Usage:
CTFGame Int32 numTeams

That's all it did. Can anyone please help me? Thanks!

Same error here as well.. :(
 

jammer

Wanderer
Michael642 said:
Usage:
CTFGame Int32 numTeams

As it says you have to supply number of teams when adding it. Try [add CTFGame 2

Int32 means the numTeams is 32-bit Integer and numTeams is the self-explaining name of the variable
 
Status
Not open for further replies.
Top