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!

Color Wars

Asmir3

Sorceror
you tell him Sorious:)
Sorious said:
wtf dude, you just posted that help today, stop bumping shit like this, they will help you when they can, they do have lives and do this for free, either learn to help yourself or wait for others to help you, stop bumping this thread.
 
G

Grom09

Guest
the pics are at the very first post on this thread, That website,
 

Lagg Master

Sorceror
the invisable tile in the middle (only staff can see it) is to [add ffawall and [add cwwall
u do those commands and click it, the enter stone, you are expose to move it into the little arena thing players come into

and the tele pad that sends you to the arena, u put it wherever you want the players to go to to enter color wars
 
G

Grom09

Guest
thanks but...
you dbl click on join stone it says "faction stone" and nothing happens.
the bagsending tile sends to where the players wait =/
i DOnt know how you actually get to the arena... um, or when your the last man standing.. aslo dont know what needs to happen (on this script)
 
G

Grom09

Guest
my question is very hard aint it.
whoever has an answer please post
 

Lagg Master

Sorceror
how close are you to the stone when you double click it?
you have to be standing next to the stone to use it, its made that way so people just cant enter and exit and get rewards for doing nothing

and to get to the arena, you use the ColorWarBankTeleporter
but before you let players go there you have to place the arena
do this by going to X = 5388, Y = 1134, Z = 0;
then type [add colorwararena and click yourself that will build the whole arena for you

and if u mean last man standing by FFA then u just gotta add a item into there bank before they exit
 
G

Grom09

Guest
thanks for reply.. and this is what is happening

if im admin, nothing happens when i dbl click the join stone right by it
if im player, nothing happens when i dbl click the join stone right by it

so i dont know what is up with that,
and yes umm, i dont know :(
the "red won, blue won stone.etc"
i die when i dbl click, BUT therees no way to get there unless admin =/
thanks
 

Lagg Master

Sorceror
if u dont want to redownload the whole file for the fix all you have to do is make a small change in the file Color Wars Exit Stone.cs
all the edits are highlighed red

the 1 is the amount of gold dropped and Gold is the add in name

Code:
using System; 
using Server.Items;
using System.Collections;
using Server.Misc;
using Server.Mobiles;
using Server.Network;
using Server.Gumps;
using Server.Regions;

namespace Server.Items
{ 
	public class RedWon : Item 
	{ 
		[Constructable] 
		public RedWon() : base( 3803 ) 
		{ 
			Movable = false; 
			Name = "Red Team Won!";
			Hue = 32;
		} 

		public override void OnDoubleClickDead( Mobile m )
		{
			DoDoubleClick(m);
		}
		
		public override void OnDoubleClick( Mobile m ) 
		{
			DoDoubleClick(m);
		}

		private void DoDoubleClick( Mobile m )
		{
			if ( m.InRange( this.GetWorldLocation(), 1 ) ) 
			{
				if ( m is PlayerMobile ) 
				{ 
					PlayerMobile pm = m as PlayerMobile;

					if (pm.ColorWarRed == true)
[COLOR="Red"] 						m.BankBox.DropItem( new Gold(1));[/COLOR]
					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;

					m.Kill();
					m.Map = Map.Felucca;
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;

				}
				else
				{
					PlayerMobile pm = m as PlayerMobile;
					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;
					m.Map = Map.Felucca;
					m.Kill();
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;
				}
			}
		}

		public RedWon( Serial serial ) : base( serial ) 
		{ 
		} 

		public override void Serialize( GenericWriter writer ) 
		{ 
			base.Serialize( writer ); 

			writer.Write( (int) 0 ); // version 
		} 

		public override void Deserialize( GenericReader reader ) 
		{ 
			base.Deserialize( reader ); 

			int version = reader.ReadInt(); 
		} 
	} 
}

namespace Server.Items
{ 
	public class BlueWon : Item 
	{ 
		[Constructable] 
		public BlueWon() : base( 3803 ) 
		{ 
			Movable = false; 
			Name = "Blue Team Won!";
			Hue = 3;
		} 

		public override void OnDoubleClickDead( Mobile m )
		{
			DoDoubleClick(m);
		}
		
		public override void OnDoubleClick( Mobile m ) 
		{
			DoDoubleClick(m);
		}

		private void DoDoubleClick( Mobile m )
		{

			if ( m.InRange( this.GetWorldLocation(), 1 ) ) 
                  	{	


			if ( m is PlayerMobile ) 
			{ 

	 PlayerMobile pm = m as PlayerMobile;
					if (pm.ColorWarBlue == true)
[COLOR="Red"] 				m.BankBox.DropItem( new Gold(1));[/COLOR]
					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;


					m.Kill();
					m.Map = Map.Felucca;
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;

			}
				else
				{

	 PlayerMobile pm = m as PlayerMobile;
					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;
					m.Map = Map.Felucca;
					m.Kill();
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;
				}

		}
	}
		public BlueWon( Serial serial ) : base( serial ) 
		{ 
		} 

		public override void Serialize( GenericWriter writer ) 
		{ 
			base.Serialize( writer ); 

			writer.Write( (int) 0 ); // version 
		} 

		public override void Deserialize( GenericReader reader ) 
		{ 
			base.Deserialize( reader ); 

			int version = reader.ReadInt(); 
		} 
	} 
}

namespace Server.Items
{ 
	public class WhiteWon : Item 
	{ 
		[Constructable] 
		public WhiteWon() : base( 3803 ) 
		{ 
			Movable = false; 
			Name = "White Team Won!";
			Hue = 1150;
		} 

		public override void OnDoubleClickDead( Mobile m )
		{
			DoDoubleClick(m);
		}
		
		public override void OnDoubleClick( Mobile m ) 
		{
			DoDoubleClick(m);
		}

		private void DoDoubleClick( Mobile m )
		{
			if ( m.InRange( this.GetWorldLocation(), 1 ) ) 
                  	{	



			if ( m is PlayerMobile ) 
			{ 

	 PlayerMobile pm = m as PlayerMobile;

					if (pm.ColorWarWhite == true)
[COLOR="Red"] 					m.BankBox.DropItem( new Gold(1));[/COLOR]
					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;


					m.Kill();
					m.Map = Map.Felucca;
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;

			}
				else
				{
	 PlayerMobile pm = m as PlayerMobile;
					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;
					m.Map = Map.Felucca;
					m.Kill();
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;
				}

		}
	}

		public WhiteWon( Serial serial ) : base( serial ) 
		{ 
		} 

		public override void Serialize( GenericWriter writer ) 
		{ 
			base.Serialize( writer ); 

			writer.Write( (int) 0 ); // version 
		} 

		public override void Deserialize( GenericReader reader ) 
		{ 
			base.Deserialize( reader ); 

			int version = reader.ReadInt(); 
		} 
	} 
}

namespace Server.Items
{ 
	public class BlackWon : Item 
	{ 
		[Constructable] 
		public BlackWon() : base( 3803 ) 
		{ 
			Movable = false; 
			Name = "Black Team Won!";
			Hue = 1175;
		} 

		public override void OnDoubleClickDead( Mobile m )
		{
			DoDoubleClick(m);
		}
		
		public override void OnDoubleClick( Mobile m ) 
		{
			DoDoubleClick(m);
		}

		private void DoDoubleClick( Mobile m )
		{
			if ( m.InRange( this.GetWorldLocation(), 1 ) ) 
                  	{	



			if ( m is PlayerMobile ) 
			{ 

	 PlayerMobile pm = m as PlayerMobile;

				if (pm.ColorWarBlack == true)
[COLOR="Red"] 					m.BankBox.DropItem( new Gold(1));[/COLOR]	
					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;


					m.Kill();
					m.Map = Map.Felucca;
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;

			}
				else
				{
	 PlayerMobile pm = m as PlayerMobile;
					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;
					m.Kill();
					m.Map = Map.Felucca;
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;
				}

		}
	}
		public BlackWon( Serial serial ) : base( serial ) 
		{ 
		} 

		public override void Serialize( GenericWriter writer ) 
		{ 
			base.Serialize( writer ); 

			writer.Write( (int) 0 ); // version 
		} 

		public override void Deserialize( GenericReader reader ) 
		{ 
			base.Deserialize( reader ); 

			int version = reader.ReadInt(); 
		} 
	} 
}

namespace Server.Items
{ 
	public class FFAWon : Item 
	{ 
		[Constructable] 
		public FFAWon() : base( 3803 ) 
		{ 
			Movable = false; 
			Name = "Free For All!";
			Hue = 2301;
		} 

		public override void OnDoubleClickDead( Mobile m )
		{
			DoDoubleClick(m);
		}
		
		public override void OnDoubleClick( Mobile m ) 
		{
			DoDoubleClick(m);
		}

		private void DoDoubleClick( Mobile m )
		{
			if ( m.InRange( this.GetWorldLocation(), 1 ) ) 
                  	{	



			if ( m is PlayerMobile ) 
			{ 

	 PlayerMobile pm = m as PlayerMobile;


					pm.ColorWarRed = false;
					pm.ColorWarBlue = false;
					pm.ColorWarWhite = false;
					pm.ColorWarBlack = false;
					pm.FreeForAll = false;
					m.Map = Map.Felucca;
					m.Kill();
					m.X = 5383;
					m.Y = 1125;
					m.Z = 0;
					m.HueMod = -1;
					m.Resurrect();
					m.Hits = 200;
					m.Mana = 200;
				}

		}
	}
		public FFAWon( Serial serial ) : base( serial ) 
		{ 
		} 

		public override void Serialize( GenericWriter writer ) 
		{ 
			base.Serialize( writer ); 

			writer.Write( (int) 0 ); // version 
		} 

		public override void Deserialize( GenericReader reader ) 
		{ 
			base.Deserialize( reader ); 

			int version = reader.ReadInt(); 
		} 
	} 
}
 
G

Grom09

Guest
just to ask, is there any reward stone or something to download
im loooking for something cool that trades tokens for rewards
thanks
 
G

Grom09

Guest
can i sorta modify color war ... go on msn =)
yea, i dont know,
Code:
using System; 
using Server; 
using Server.Items; 

namespace Server.Items 
{ 
   public class ColorIceBallOfDeath : Item 
   { 
      [Constructable] 
      public ColorIceBallOfDeath() : this( 1 ) 
      {
	AddToBackpack( new IceBallOfDeath() );
      }
      public override void Serialize( GenericWriter writer ) 
      { 
         base.Serialize( writer ); 

         writer.Write( (int) 0 ); // version 
      } 

      public override void Deserialize( GenericReader reader ) 
      { 
         base.Deserialize( reader ); 

         int version = reader.ReadInt(); 
      } 
   } 
}

is this going to work?
im trying to make the IceBallOfDeath go anywhere into YOUR BACKPACK without a bag, good?
 

Lagg Master

Sorceror
u dont add it into the backpack in that script
in colorwars stones

Code:
using System; 
using Server.Items;
using System.Collections;
using Server.Misc;
using Server.Mobiles;
using Server.Network;
using Server.Gumps;
using Server.Regions;

namespace Server.Items
{ 
   public class ColorWar2Team : Item 
   { 
	private int Locnumber;		

      [Constructable] 
      public ColorWar2Team() : base( 3805 ) 
      { 
         Movable = false; 
		Name = "2 Team Color War Stone";
		Hue = 1153;
		Locnumber = 0;
      } 

      public override void OnDoubleClick( Mobile m ) 
       {

if ( m.InRange( this.GetWorldLocation(), 1 ) ) 
      {
			

if ( m is PlayerMobile ) 
{ 

	 PlayerMobile pm = m as PlayerMobile;
	[COLOR="Red"]m.AddToBackpack( new ColorIceBallOfDeath() );	
[/COLOR]

and sense its before it splits into cases all teams should get this item
 

trenton9731

Wanderer
move it

hey i was wondering whenu click on the stone for the game and it sends u to your destination can u change that destination
 
trenton9731

hey i was wondering whenu click on the stone for the game and it sends u to your destination can u change that destination

Yes there is. Open up the Color War stones.cs and edit these areas in bold print:
Code:
[SIZE=2]case 0: 
Locnumber = 1;
m.SendMessage( "You joined the Red Team" );
pm.ColorWarRed = true; 
[B][SIZE=4]m.Map = Map.Felucca;[/SIZE][/B]
[B][SIZE=4]m.X = 5389;[/SIZE][/B]
[B][SIZE=4]m.Y = 1142;[/SIZE][/B]
[B][SIZE=4]m.Z = 5;[/SIZE][/B]
m.HueMod = 32;
m.AddToBackpack( new RedTeamBigBag() ); 
break;
[/SIZE]
 

Lagg Master

Sorceror
one of my friends shards was having a prob with stat loss in color wars so here the fix if u wanna make the change

go to script\engines\factions\factions.cs

find this line
public static void ApplySkillLoss( Mobile mob )
{

Code:
 		public static void ApplySkillLoss( Mobile mob )
		{
            	[COLOR="Red"]if ( mob is PlayerMobile && (((PlayerMobile)mob).ColorWarRed || ((PlayerMobile)mob).ColorWarBlue || ((PlayerMobile)mob).ColorWarWhite || ((PlayerMobile)mob).ColorWarBlack || ((PlayerMobile)mob).FreeForAll ) )
        {
         }
	else
	{    [/COLOR]
			SkillLossContext context = (SkillLossContext)m_SkillLoss[mob];


			if ( context != null )
				return;

			context = new SkillLossContext();
			m_SkillLoss[mob] = context;

			ArrayList mods = context.m_Mods = new ArrayList();

			for ( int i = 0; i < mob.Skills.Length; ++i )
			{
				Skill sk = mob.Skills[i];
				double baseValue = sk.Base;

				if ( baseValue > 0 )
				{
					SkillMod mod = new DefaultSkillMod( sk.SkillName, true, -(baseValue * SkillLossFactor) );

					mods.Add( mod );
					mob.AddSkillMod( mod );
				}
			}

			context.m_Timer = Timer.DelayCall( SkillLossPeriod, new TimerStateCallback( ClearSkillLoss_Callback ), mob );
		}
	[COLOR="Red"]}[/COLOR]

		private static void ClearSkillLoss_Callback( object state )
		{
			ClearSkillLoss( (Mobile) state );
		}
the red is what u need to add
dont forget to add the } at the end, thought some of u would overlook it, to end the else
 
G

Grom09

Guest
can u please update colorwars for runuo 2.0
having some problems =S
 
Top