Revolution
Wanderer
can u fix it to be compatible without errors to RC1??? or its already done???
egoryok said:Well i have a problem with CTF game insite of shard. As You said i installed all CS. files deleated line with TimeOfDeath and still when i type [add CTFGame there is no stone appears . Only 1 message appears in left down corner of the screen {where usually staff message appears} that says
Usage:
CTFGame Int32 numTeams
Wut should i do.
Tnx
Amplify said:Okay.. Before you ask the shittiest questions ever (since they never seem to end)
Read all the posts in this thread before asking. And drakegarrn; Sounds like you havent turned on the game tbh. You arent suppose to stand on a tile, your suppose to sign up via a join stone.
scarface6666 said:how do i link the dd or ctf stone to gether need to no plz list the way is thr somthin i have to sya like[linkstones
using System;
using Server;
using Server.Items;
using Server.Mobiles;
namespace Server.Items
{
public class LeaveGameGate : Moongate
{
[Constructable]
public LeaveGameGate() : base( false )
{
}
public LeaveGameGate( Serial ser ) : base( ser )
{
}
public override void UseGate( Mobile m )
{
for(int i=0;i<CTFGame.Registry.Count;i++)
{
CTFTeam t = ((CTFGame)CTFGame.Registry[i]).FindTeam( m );
if ( t != null )
t.Members.Remove( m );
}
Item robe = m.FindItemOnLayer( Layer.OuterTorso );
if ( robe is CTFRobe )
robe.Delete();
m.Delta( MobileDelta.Noto );
Container c = m.Backpack;
if ( c != null ) { c.Delete(); Backpack b = new Backpack(); b.Movable = false; m.AddItem( b ); }
base.UseGate( m );
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
using System;
using Server.Gumps;
using Server.Items;
using Server.Network;
namespace Server.Gumps
{
public class CTFTeamSelector : Gump
{
private CTFGame m_Game;
private int m_TeamSize;
public CTFTeamSelector( CTFGame game ) : this( game, game.TeamSize )
{
}
public CTFTeamSelector( CTFGame game, int teamSize ) : base( 50, 50 )
{
m_Game = game;
m_TeamSize = teamSize;
Closable = false;
Dragable = false;
AddPage( 0 );
AddBackground( 0, 0, 250, 220, 5054 );
AddBackground( 10, 10, 230, 200, 3000 );
AddPage( 1 );
AddLabel( 20, 20, 0, "Select a team:" ); //Select a team: label
for (int i=0;i<m_Game.Teams.Count;i++)
{
CTFTeam team = (CTFTeam)m_Game.Teams[i];
if ( team.ActiveMemberCount < m_TeamSize )
{
AddButton( 20, 60 + i*20, 4005, 4006, i+1, GumpButtonType.Reply, 0 ); //Join Team button
AddLabel( 55, 60 + i*20, 0, "Join Team " + team.Name ); //Join Team label
}
}
}
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;
from.CloseGump( typeof( CTFTeamSelector ) );
CTFTeam team = m_Game.FindTeam( info.ButtonID - 1 );
if ( team != null && team.ActiveMemberCount < m_TeamSize )
{
from.Kill();
from.Location = team.Home;
from.Map = team.Map;
from.Delta( MobileDelta.Noto );
from.Resurrect();
Item robe = from.FindItemOnLayer( Layer.OuterTorso );
if ( robe is Robe )
robe.Delete();
Container c = state.Mobile.Backpack;
if ( c != null ) { c.Delete(); Backpack b = new Backpack(); b.Movable = false; state.Mobile.AddItem( b ); }
m_Game.SwitchTeams( from, team );
from.SendMessage( "You have joined team {0}!", team.Name );
}
else
{
from.SendMessage( "That team may be full, please try again." );
from.SendGump( new CTFTeamSelector( m_Game ) );
}
}
}
public class CTFJoinGump : Gump
{
private CTFGame m_Game;
public CTFJoinGump( CTFGame game ) : base( 20, 30 )
{
m_Game = game;
AddPage( 0 );
AddBackground( 0, 0, 550, 220, 5054 );
AddBackground( 10, 10, 530, 200, 3000 );
AddPage( 1 );
AddLabel( 20, 20, 0, "Welcome to the CTF:" );
AddLabel( 20, 60, 0, "Let it be known to all who join the the melee that lays within, you will not" );
AddLabel( 20, 80, 0, "be able to leave this arena of death. Any attempts to contact the gods will" );
AddLabel( 20, 100, 0, "be fruitless, it is advised that you just simply enjoy yourself, while" );
AddLabel( 20, 120, 0, "killing adversarys!" );
AddLabel( 55, 180, 0, "Cancel" );
AddButton( 20, 180, 4005, 4006, 0, GumpButtonType.Reply, 0 );
AddLabel( 165, 180, 0, "Okay, Join CTF!" );
AddButton( 130, 180, 4005, 4006, 1, GumpButtonType.Reply, 0 );
}
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;
if ( info.ButtonID == 1 )
from.SendGump( new CTFTeamSelector( m_Game ) );
}
}
public class DDJoinGump : Gump
{
private CTFGame m_Game;
public DDJoinGump( CTFGame game ) : base( 20, 30 )
{
m_Game = game;
AddPage( 0 );
AddBackground( 0, 0, 550, 220, 5054 );
AddBackground( 10, 10, 530, 200, 3000 );
AddPage( 1 );
AddLabel( 20, 20, 0, "Welcome to the RunUO Double Domination System:" );
AddLabel( 20, 60, 0, "Let it be known to all who join the the melee that lays within, you will not" );
AddLabel( 20, 80, 0, "be able to leave this arena of death. Any attempts to contact the gods will" );
AddLabel( 20, 100, 0, "be fruitless, it is advised that you just simply enjoy yourself, while" );
AddLabel( 20, 120, 0, "killing adversarys!" );
AddLabel( 55, 180, 0, "Cancel" );
AddButton( 20, 180, 4005, 4006, 0, GumpButtonType.Reply, 0 );
AddLabel( 165, 180, 0, "Okay, Join Double Domination!" );
AddButton( 130, 180, 4005, 4006, 1, GumpButtonType.Reply, 0 );
}
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;
if ( info.ButtonID == 1 )
from.SendGump( new CTFTeamSelector( m_Game ) );
}
}
}
Hell Slayer said:im getting a crah too this one is not when i delete anything it just happens when i set the ctf up the crash report is as follows:
Server Crash Report
===================
Operating System: Microsoft Windows NT 5.1.2600.0
.NET Framework: 1.1.4322.573
Time: 3/14/2004 3:54:33 PM
Mobiles: 4826
Items: 69459
Clients:
- Count: 2
+ (account = Hell Slayer) (mobile = 0x1 'Hell Slayer')
+ (account = beyonce) (mobile = 0x2299 'Sassy')
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.CTFGame.PlayerMessage(String message)
at Server.Items.ScoreTimer.OnTick()
at Server.Timer.Slice()
at Server.Core.Main(String[] args)
thanks for any help