Color Wars

Color Wars 2014-02-22

Author
Omni
Downloads
57
Views
1,895
First release
Last update
Rating
0.00 star(s) 0 ratings
No permission to download Join the discussion

More resources from Omni

Requirements
Custom Regions In a Box 5.0 (optional)
Color Wars (beta)

So this is a simple event with very little setup on the gm's half.

Just follow this method

[wallup (spawns some walls to stop fighting)
[add cw2gate (2 team gate)
[add cw4gate (4 team gate)
wait until all players have entered the gate (gm descression timer)
also allow players to equip the event items
[walldown (remove the walls so event can start)



everything else is taken care of the event gates will automaticly teleport players to the CW area
and the winning stones will automaticly teleport them to fel brit bank

You can add healers or ankh's within each teams starting location so they can res if you want a longer event and remove them after a certain amount of time has passed.

When your ready to end the event just add the stone of the winning team
[add redwon
[add bluewon
[add whitewon
[add blackwon


Distro Edits
Playermobile.cs Edits


Around line 75 add

Code:
#region ColorWars
        ColorWarRed = 0x00020000,
        ColorWarBlue = 0x00040000,
        ColorWarWhite = 0x00080000,
        ColorWarBlack = 0x00100000,
        #endregion
        #region Event
        IsInEvent = 0x00020000,
  #endregion

Around line 331
Find


private

int m_GuildMessageHue, m_AllianceMessageHue;

Below Add
Code:
#region ColorWars
        [CommandProperty(AccessLevel.GameMaster)]
        public bool ColorWarRed
        {
            get { return GetFlag(PlayerFlag.ColorWarRed); }
            set { SetFlag(PlayerFlag.ColorWarRed, value); }
        }

        [CommandProperty(AccessLevel.GameMaster)]
        public bool ColorWarBlue
        {
            get { return GetFlag(PlayerFlag.ColorWarBlue); }
            set { SetFlag(PlayerFlag.ColorWarBlue, value); }
        }

        [CommandProperty(AccessLevel.GameMaster)]
        public bool ColorWarWhite
        {
            get { return GetFlag(PlayerFlag.ColorWarWhite); }
            set { SetFlag(PlayerFlag.ColorWarWhite, value); }
        }

        [CommandProperty(AccessLevel.GameMaster)]
        public bool ColorWarBlack
        {
            get { return GetFlag(PlayerFlag.ColorWarBlack); }
            set { SetFlag(PlayerFlag.ColorWarBlack, value); }
        }
        #endregion
        #region Event
        [CommandProperty(AccessLevel.GameMaster)]
        public bool IsInEvent
        {
            get { return GetFlag(PlayerFlag.IsInEvent); }
            set { SetFlag(PlayerFlag.IsInEvent, value); }
        }
        #endregion

Notoriety.cs

around line 503

find


Faction srcFaction = Faction.Find(source,
true, true);

Faction trgFaction = Faction.Find(target,
true, true);


Above add


Code:
#region ColorWars
            if (source is PlayerMobile && ((PlayerMobile)source).ColorWarRed && target is PlayerMobile && (((PlayerMobile)target).ColorWarBlue || ((PlayerMobile)target).ColorWarWhite || ((PlayerMobile)target).ColorWarBlack))
                return Notoriety.Enemy;

            if (source is PlayerMobile && ((PlayerMobile)source).ColorWarRed && target is PlayerMobile && ((PlayerMobile)target).ColorWarRed)
                return Notoriety.Ally;

            if (source is PlayerMobile && ((PlayerMobile)source).ColorWarBlue && target is PlayerMobile && (((PlayerMobile)target).ColorWarRed || ((PlayerMobile)target).ColorWarWhite || ((PlayerMobile)target).ColorWarBlack))
                return Notoriety.Enemy;

            if (source is PlayerMobile && ((PlayerMobile)source).ColorWarBlue && target is PlayerMobile && ((PlayerMobile)target).ColorWarBlue)
                return Notoriety.Ally;

            if (source is PlayerMobile && ((PlayerMobile)source).ColorWarWhite && target is PlayerMobile && (((PlayerMobile)target).ColorWarBlue || ((PlayerMobile)target).ColorWarRed || ((PlayerMobile)target).ColorWarBlack))
                return Notoriety.Enemy;

            if (source is PlayerMobile && ((PlayerMobile)source).ColorWarWhite && target is PlayerMobile && ((PlayerMobile)target).ColorWarWhite)
                return Notoriety.Ally;

            if (source is PlayerMobile && ((PlayerMobile)source).ColorWarBlack && target is PlayerMobile && (((PlayerMobile)target).ColorWarRed || ((PlayerMobile)target).ColorWarWhite || ((PlayerMobile)target).ColorWarBlue))
                return Notoriety.Enemy;

            if (source is PlayerMobile && ((PlayerMobile)source).ColorWarBlack && target is PlayerMobile && ((PlayerMobile)target).ColorWarBlack)
                return Notoriety.Ally;


            #endregion

Please enjoy and let me know i will support this system as much as i can.

*Edit*

Here is a Video that show how to start/end event
its only basic but give the idea

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

Sorry its kinda lame never done a video tutorial before hope you enjoy

*End Edit*
  • Like
Reactions: Greed

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back