Full Version : Pre-defined Map for CTF?
xmlspawner >>XMLPoints Discussion >>Pre-defined Map for CTF?


<< Prev | Next >>

HYDROX- 05-12-2006
here is my ultimate goal with your system.
what i have done is developed a complex map for 4 teams on CTF
each with they're own base.
how could i set it up, so that all the flags are pre-placed always there.. so consistance setup won't be required for every match.... there are alot of custom type things like this that i would like to script, even do the testing with since i have 4 computers in my house with my roomates and we play consistantly.. perhaps it could be another variation of the game? a staff run game incase there's like 5000 players on one shard and ctf's start every 5 minutes =]
if i could get any support which i know you tend not to offer. it would be great, i think a predefined system would work out in the long run for larger shards...


HYDROX- 05-12-2006
the only major part of this all, is that i'm a script whore, i've done some webbased programing in the past, but i don't know the extenions of RunUO, and honestly don't have the time to study it... so what do ya'll say

LowCastle- 05-13-2006
QUOTE
if i could get any support which i know you tend not to offer. it would be great,


XmlSpawner2 is the best supported script in the RunUO community!

Sorry I can't help you with the CTF thing.

ArteGordon- 05-13-2006
QUOTE (HYDROX @ May 12, 2006 06:12 pm)
here is my ultimate goal with your system.
what i have done is developed a complex map for 4 teams on CTF
each with they're own base.
how could i set it up, so that all the flags are pre-placed always there.. so consistance setup won't be required for every match.... there are alot of custom type things like this that i would like to script, even do the testing with since i have 4 computers in my house with my roomates and we play consistantly.. perhaps it could be another variation of the game? a staff run game incase there's like 5000 players on one shard and ctf's start every 5 minutes =]
if i could get any support which i know you tend not to offer. it would be great, i think a predefined system would work out in the long run for larger shards...

if you wanted hard locations for the bases instead of player placed bases you could make this mod in CTFGump.cs around line 956

QUOTE

if (info.ButtonID >= 1000)
      {
        int team = info.ButtonID - 1000;
        //state.Mobile.Target = new CTFBaseTarget(m_gauntlet, team);

        Point3D baseloc = Point3D.Zero;
        switch (team)
        {
        // hardcode the base locations for as many teams as you would like
        case 1:
          baseloc = new Point3D(5450, 1150, 0);
          break;
        case 2:
          baseloc = new Point3D(5500, 1150, 0);
          break;
        case 3:
          baseloc = new Point3D(5450, 1150, 0);
          break;
        case 4:
          baseloc = new Point3D(5500, 1150, 0);
          break;

        }
        CTFBase newbase = m_gauntlet.FindBase(team);

        if (baseloc != Point3D.Zero)
        {
        if (newbase == null)
        {
          newbase = new CTFBase(m_gauntlet, team);
          // add the base to the gauntlet list
          m_gauntlet.HomeBases.Add(newbase);
        }

        newbase.MoveToWorld(new Point3D(baseloc), state.Mobile.Map);
        }

        state.Mobile.SendGump(new TeamsGump(m_gauntlet, state.Mobile));
      }


the games were designed to be modified, and allow creating your own as well so feel free to customize as much as you would like.

HYDROX- 05-13-2006
You rock, arte.. would it be okay with you if i continued to ask for help on my project? i don't expect immediate answers, but i'm extremely new to scripting,since your the god of this system, a bit of help would only mean the world to me heh, thanks.

ArteGordon- 05-13-2006
QUOTE (HYDROX @ May 13, 2006 08:21 pm)
You rock, arte.. would it be okay with you if i continued to ask for help on my project? i don't expect immediate answers, but i'm extremely new to scripting,since your the god of this system, a bit of help would only mean the world to me heh, thanks.

sure. happy to help.

HYDROX- 05-13-2006
okay well i modified the script like mentioned, no error's so i'm good, now it's saying team 0 is not defined.. what could that be caused by?

ArteGordon- 05-13-2006
QUOTE (HYDROX @ May 13, 2006 08:29 pm)
okay well i modified the script like mentioned, no error's so i'm good, now it's saying team 0 is not defined.. what could that be caused by?

The team assigments have to be greater than 0. What did you set them to?

also, after you assign the teams, and hit the Set Teams button, you still have to press the button next to the teams to assign the bases in the CTF teams gump. It wont give you the placement target but will just assign to the fixed locations you set.

HYDROX- 05-13-2006
alrght i'm a bit slow this evening, it's okay, i understand how to assign players now... next issue.. teams bases aren't defined, where would i modify those values.

ArteGordon- 05-13-2006
QUOTE (HYDROX @ May 13, 2006 08:32 pm)
never set them to anything lol, like mentioned, i installed and hoping for the best lol

to set up a game, after you Add players, you have to assign them to teams by entering in a team number in the little brown text entry area near their names in the CTF gump.

ArteGordon- 05-13-2006
QUOTE (HYDROX @ May 13, 2006 08:32 pm)
alrght i'm a bit slow this evening, it's okay, i understand how to assign players now... next issue.. teams bases aren't defined, where would i modify those values.

after pressing the Set Teams button, you will get the Teams gump. Each team will have a button next to it that is used to assign the bases. Just press the button next to each team.

HYDROX- 05-13-2006
whgen i hit the base button nothing happens, perhaps because of the modification you had me do?

ArteGordon- 05-13-2006
QUOTE (HYDROX @ May 13, 2006 08:53 pm)
whgen i hit the base button nothing happens, perhaps because of the modification you had me do?

right. the modification takes out the targeting choice for placing bases that is normally there, and just assigns it based on your preestablished locations that you hardcode in.
You still have the hit the button to set up the base at that location.