Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 07-23-2006, 08:08 AM   #26 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by Prohor Meletevich
I have a question. What about duels on the champs? Can people left the champ area with power scrolls by using duels?
I havent tested it, but they probably could since it isnt explicitly restricted.

An easy way to take care of all of those sorts of issues is to only allow challenges to be made in town regions.
Make this change in xmlpoints.cs around line 1360

Code:
		public static bool AllowChallengeGump(Mobile from, Mobile target)
		{
			if (from == null || target == null) return false;

			if (!from.Region.IsPartOf(typeof(Regions.TownRegion)) || !target.Region.IsPartOf(typeof(Regions.TownRegion)))
			{
				from.SendMessage("You must be in a town to issue a challenge"); 
				return false;
			}

			if (from.Region.IsPartOf(typeof(Regions.Jail)) || target.Region.IsPartOf(typeof(Regions.Jail)))
			{
				from.SendLocalizedMessage(1042632); // You'll need a better jailbreak plan then that!
				return false;
			}

			return true;
		}
Or you could just add your specific restrictions in there if you preferred.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum

Last edited by ArteGordon; 07-23-2006 at 11:39 AM.
ArteGordon is offline   Reply With Quote
Old 07-23-2006, 10:14 AM   #27 (permalink)
Forum Novice
 
Prohor Meletevich's Avatar
 
Join Date: Jan 2006
Location: Ashkelon, Israel
Age: 27
Posts: 143
Send a message via ICQ to Prohor Meletevich Send a message via Skype™ to Prohor Meletevich
Thumbs up

I must thinking about this. Anyway you gave me a good point to start.
Prohor Meletevich is offline   Reply With Quote
Old 07-27-2006, 08:10 AM   #28 (permalink)
Forum Novice
 
Prohor Meletevich's Avatar
 
Join Date: Jan 2006
Location: Ashkelon, Israel
Age: 27
Posts: 143
Send a message via ICQ to Prohor Meletevich Send a message via Skype™ to Prohor Meletevich
Default

Maybe Im not understand, but I can't to add CTFBase item to the world because it isn't constructable? I mean that how can I setup CTF game?

Last edited by Prohor Meletevich; 07-27-2006 at 03:15 PM.
Prohor Meletevich is offline   Reply With Quote
Old 07-28-2006, 12:08 PM   #29 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by Prohor Meletevich
Maybe Im not understand, but I can't to add CTFBase item to the world because it isn't constructable? I mean that how can I setup CTF game?
when you use the [ctf command or press the CTF button in the points gump, it will place a CTFGauntlet.
The person to place the gauntlet is the organizer. They are responsible for placing the bases from the teams gump that opens up after you have assigned players to their teams.

All the various challenge games work in the same way. The gauntlet is the game controller.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 08-02-2006, 03:18 AM   #30 (permalink)
Forum Novice
 
Prohor Meletevich's Avatar
 
Join Date: Jan 2006
Location: Ashkelon, Israel
Age: 27
Posts: 143
Send a message via ICQ to Prohor Meletevich Send a message via Skype™ to Prohor Meletevich
Default

Maybe a bag. In the top players gump player deaths always have zero value.
Prohor Meletevich is offline   Reply With Quote
Old 08-03-2006, 04:43 PM   #31 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by Prohor Meletevich
Maybe a bag. In the top players gump player deaths always have zero value.
I have found the problem and updated xmlpoints.cs in v1.24b

If you want to make the change in your current version, this is the fix

around line 2300 in the OnKilled method in xmlpoints.cs

Code:
  	// take points from the killed, either a fixed amount or scaled by the difference with the points of the killer
  	// if the killer has fewer points than the killed then lose more
  	XmlPoints xp = XmlAttach.FindAttachment(killer, typeof(XmlPoints)) as XmlPoints;

  	if(xp != null)
  	{
    killerpoints = xp.Points;


                // add to the recently killed list
                xp.KillList.Add(new KillEntry(killed, DateTime.Now));
  	}
and comment out this line in the OnKill method around line 1975

Code:
  	// add to the recently killed list
  	//KillList.Add(new KillEntry(killed, DateTime.Now));
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 08-03-2006, 10:08 PM   #32 (permalink)
Forum Novice
 
Join Date: Mar 2006
Location: South Florida (Originally Tulsa)
Age: 25
Posts: 105
Default

Quote:
Originally Posted by ArteGordon
I have found the problem and updated xmlpoints.cs in v1.24b

If you want to make the change in your current version, this is the fix

around line 2300 in the OnKilled method in xmlpoints.cs

Code:
  	// take points from the killed, either a fixed amount or scaled by the difference with the points of the killer
  	// if the killer has fewer points than the killed then lose more
  	XmlPoints xp = XmlAttach.FindAttachment(killer, typeof(XmlPoints)) as XmlPoints;

  	if(xp != null)
  	{
    killerpoints = xp.Points;


                // add to the recently killed list
                xp.KillList.Add(new KillEntry(killed, DateTime.Now));
  	}
and comment out this line in the OnKill method around line 1975

Code:
  	// add to the recently killed list
  	//KillList.Add(new KillEntry(killed, DateTime.Now));
Ah, what a great error. Glad it got fixed. [bowtoarte
__________________
"Don't forget your towel!"

-Phenika UO- Owner/Developer

Phenika UO - "Home of UO Plus" Alpha Testing on UOGateway - phenika.zapto.org:2593

Forums - Contact us.
iamjedi is offline   Reply With Quote
Old 08-04-2006, 04:02 PM   #33 (permalink)
Forum Expert
 
Join Date: Feb 2006
Posts: 277
Send a message via ICQ to Tee312 Send a message via MSN to Tee312 Send a message via Yahoo to Tee312
Default

just read up on this system, looks awesome! i mean seriously, who DOESNT love CTF? :P
Tee312 is offline   Reply With Quote
Old 08-27-2006, 10:00 AM   #34 (permalink)
Forum Novice
 
koluch's Avatar
 
Join Date: Mar 2004
Location: Wisconsin
Age: 45
Posts: 791
Thumbs up What can I say....

Excellent as always

Our players love the system.
I love the system AND it is a great way to learn more on coding and scripting things the right way.

Quick Question:
Is there a time period that players are grey after a duel?
Just want to be sure that is as intended and we did not miss something.

Many Thanks, Arte !

Koluch
__________________
Quote:
If the words are coming from someone who's opinion you value, think it over. If not, well just consider the source....
koluch is offline   Reply With Quote
Old 08-27-2006, 10:13 AM   #35 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by koluch
Excellent as always

Our players love the system.
I love the system AND it is a great way to learn more on coding and scripting things the right way.

Quick Question:
Is there a time period that players are grey after a duel?
Just want to be sure that is as intended and we did not miss something.

Many Thanks, Arte !

Koluch
notoriety should go back to what it was before the duel, so if they were not grey before, they shouldnt be afterward.

Are the players orange to each other during the duel? If not, then check the notoriety.cs mods.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 09-01-2006, 03:34 PM   #36 (permalink)
Newbie
 
Join Date: Jul 2006
Posts: 43
Default Help!

I got this error:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Customs/XML/XML Spawner 1/XmlSpawner2.cs:
    CS0029: Line 9376: Cannot implicitly convert type 'System.Collections.ArrayL
ist' to 'System.Collections.Generic.List<Server.Tile>'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Xenovia is offline   Reply With Quote
Old 09-01-2006, 03:37 PM   #37 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

it means that you are running RunUO 2.0 RC1 instead of the most recent SVN and you just need to uncomment this line at the beginning of xmlspawner2.cs

//#define RUNUO2RC1

so that it looks like

#define RUNUO2RC1
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 09-01-2006, 03:39 PM   #38 (permalink)
Newbie
 
Join Date: Jul 2006
Posts: 43
Default

Thanks very much
Xenovia is offline   Reply With Quote
Old 09-13-2006, 11:05 AM   #39 (permalink)
Forum Novice
 
Prohor Meletevich's Avatar
 
Join Date: Jan 2006
Location: Ashkelon, Israel
Age: 27
Posts: 143
Send a message via ICQ to Prohor Meletevich Send a message via Skype™ to Prohor Meletevich
Default

I found a bug. After duel on game region after some player is died its opponent can loot his corpse during a few seconds. This is the func from your game region:

Code:
 
 
        public override bool CheckAccessibility(Item item, Mobile from)
        {
            if (item is Corpse)
            {
                // dont allow other players to loot corpses while a challenge game is present
                if ((ChallengeGame != null) && !ChallengeGame.Deleted && (from != null) && !(((Corpse)item).Owner is BaseCreature) &&
                (((Corpse)item).Owner != from) && (from.AccessLevel == AccessLevel.Player))
                {
                    XmlPoints.SendText(from, 100105); // "You are not allowed to open that here."
                    return false;
                }
            }
            return base.CheckAccessibility(item, from);
        }
I think the problem because of you make check if game is present, but after player death game already ended and not present.
Prohor Meletevich is offline   Reply With Quote
Old 09-13-2006, 07:14 PM   #40 (permalink)
Newbie
 
llessur1's Avatar
 
Join Date: Jul 2005
Age: 37
Posts: 30
Default xml why u show

why do they keep showning xml scripts for 2.0 wen they wont work with out a xml spawnber i did it 100 times and its the same thing GET RID OF ALL THE XML SCRIPTS CUS THEY DONT WORK
llessur1 is offline   Reply With Quote
Old 09-14-2006, 04:42 AM   #41 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by llessur1
why do they keep showning xml scripts for 2.0 wen they wont work with out a xml spawnber i did it 100 times and its the same thing GET RID OF ALL THE XML SCRIPTS CUS THEY DONT WORK
you need to install xmlspawner for these to work as described in the installation instructions. You can find it here
http://runuo.com/forums/showthread.php?t=70748
There are other installation steps that you will need to follow as well in order for this system to work.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 09-21-2006, 10:15 PM   #42 (permalink)
Forum Newbie
 
Join Date: Aug 2004
Posts: 10
Default

how do i change the interface language?
DarkOs is offline   Reply With Quote
Old 09-22-2006, 12:07 AM   #43 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by DarkOs
how do i change the interface language?
Individual players can set the language that it uses for them with the [pointslanguage command.

from xmlpoints.txt
Quote:
- added a language translation system that allows individual players to see points-related text in their selected language. The default language for a shard can be specified in XmlPoints in the SystemLanguage static variable (ENGLISH by default). Individual players can change their language by issuing the "[pointslanguage language" command. Presently only english is available. Anyone who is willing to provide additional language translations, simply make a copy of the EnglishText.cs file, translate the text that it contains into the target language, and send it to me. I will include it with full acknowledgements. (thanks to sUpplier1 for the suggestion).
spanish and portuguese are also available.

(edit)

the way a player would use this would be to issue a command like

[pointslanguage spanish

and from then on all text would be in spanish. This only has to be done once and it will keep that setting for that player. You can issue the command as many times as you like, any time you like, to change it to something else.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum

Last edited by ArteGordon; 09-22-2006 at 09:16 AM.
ArteGordon is offline   Reply With Quote
Old 09-22-2006, 08:13 PM   #44 (permalink)
Newbie
 
Join Date: Sep 2006
Age: 30
Posts: 27
Default

OOps. I just noticed someone else asked the same question.

Last edited by facsmth; 09-22-2006 at 08:15 PM.
facsmth is offline   Reply With Quote
Old 11-07-2006, 12:51 AM   #45 (permalink)
Forum Newbie
 
byron92's Avatar
 
Join Date: Oct 2006
Location: USA, NJ
Posts: 52
Send a message via AIM to byron92 Send a message via MSN to byron92
Thumbs up Great system arte!

Love the system i recently put it in my server, and i love it! Thanks bud ++karma
byron92 is offline   Reply With Quote
Old 11-09-2006, 06:05 PM   #46 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,795
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

How can I make all the games but [challenge startable by GMs only?
__________________
go fish
Suil Ban is offline   Reply With Quote
Old 11-11-2006, 09:54 AM   #47 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by Suil Ban
How can I make all the games but [challenge startable by GMs only?
in XmlPoints.cs in the Initialize method, change the accesslevel for the commands as you like

Code:
			CommandSystem.Register( "PointsLanguage", AccessLevel.Player, new CommandEventHandler( Language_OnCommand ) );
			CommandSystem.Register( "Challenge", AccessLevel.Player, new CommandEventHandler( Challenge_OnCommand ) );
			CommandSystem.Register( "LMSChallenge", AccessLevel.Player, new CommandEventHandler( LMSChallenge_OnCommand ) );
			CommandSystem.Register( "TeamLMSChallenge", AccessLevel.Player, new CommandEventHandler( TeamLMSChallenge_OnCommand ) );
			CommandSystem.Register( "Deathmatch", AccessLevel.Player, new CommandEventHandler( Deathmatch_OnCommand ) );
			CommandSystem.Register( "TeamDeathmatch", AccessLevel.Player, new CommandEventHandler( TeamDeathmatch_OnCommand ) );
			CommandSystem.Register( "DeathBall", AccessLevel.Player, new CommandEventHandler( DeathBall_OnCommand ) );
			CommandSystem.Register( "KingOfTheHill", AccessLevel.Player, new CommandEventHandler( KingOfTheHill_OnCommand ) );
			CommandSystem.Register( "TeamDeathBall", AccessLevel.Player, new CommandEventHandler( TeamDeathBall_OnCommand ) );
			CommandSystem.Register( "TeamKotH", AccessLevel.Player, new CommandEventHandler( TeamKotH_OnCommand ) );
			CommandSystem.Register( "CTFChallenge", AccessLevel.Player, new CommandEventHandler( CTFChallenge_OnCommand ) );
			CommandSystem.Register( "SystemBroadcastKills", AccessLevel.GameMaster, new CommandEventHandler( SystemBroadcastKills_OnCommand ) );
			CommandSystem.Register( "SeeKills", AccessLevel.Player, new CommandEventHandler( SeeKills_OnCommand ) );
			CommandSystem.Register( "BroadcastKills", AccessLevel.Player, new CommandEventHandler( BroadcastKills_OnCommand ) );
			CommandSystem.Register( "CheckPoints", AccessLevel.Player, new CommandEventHandler( CheckPoints_OnCommand ) );
			CommandSystem.Register( "TopPlayers", AccessLevel.Player, new CommandEventHandler( TopPlayers_OnCommand ) );
			CommandSystem.Register( "AddAllPoints", AccessLevel.Administrator, new CommandEventHandler( AddAllPoints_OnCommand ) );
			CommandSystem.Register( "RemoveAllPoints", AccessLevel.Administrator, new CommandEventHandler( RemoveAllPoints_OnCommand ) );
			CommandSystem.Register( "LeaderboardSave", AccessLevel.Administrator, new CommandEventHandler( LeaderboardSave_OnCommand ) );
You can also restrict the challenge game buttons in the points gump by adding this mod to the PointsGump code around line 2500

Code:
                    // add the challenge button
                    AddLabel(x1 + 30, 190, 55, a.Text(200229));   // "Challenge"
                    AddButton(x1, 190, 0xFAB, 0xFAD, 400, GumpButtonType.Reply, 0);

                    if (from.AccessLevel >= AccessLevel.GameMaster)
                    {
                        // add the last man standing challenge button
                        AddLabel(x2 + 30, 190, 55, a.Text(200230));   // "LMS"
                        AddButton(x2, 190, 0xFAB, 0xFAD, 401, GumpButtonType.Reply, 0);

                        // add the deathmatch challenge button
                        AddLabel(x3 + 30, 190, 55, a.Text(200231));  // "Deathmatch"
                        AddButton(x3, 190, 0xFAB, 0xFAD, 403, GumpButtonType.Reply, 0);

                        // add the kingofthehill challenge button
                        AddLabel(x1 + 30, 215, 55, a.Text(200232));  // "KotH"
                        AddButton(x1, 215, 0xFAB, 0xFAD, 404, GumpButtonType.Reply, 0);

                        // add the deathball challenge button
                        AddLabel(x2 + 30, 215, 55, a.Text(200233));  // "DeathBall"
                        AddButton(x2, 215, 0xFAB, 0xFAD, 405, GumpButtonType.Reply, 0);

                        // add the teamlms challenge button
                        AddLabel(x3 + 30, 215, 55, a.Text(200234));  // "Team LMS"
                        AddButton(x3, 215, 0xFAB, 0xFAD, 406, GumpButtonType.Reply, 0);

                        // add the team deathmatch challenge button
                        AddLabel(x1 + 30, 240, 55, a.Text(200235));   // "Team DMatch"
                        AddButton(x1, 240, 0xFAB, 0xFAD, 407, GumpButtonType.Reply, 0);

                        // add the team deathball challenge button
                        AddLabel(x2 + 30, 240, 55, a.Text(200236));  // "Team DBall"
                        AddButton(x2, 240, 0xFAB, 0xFAD, 408, GumpButtonType.Reply, 0);

                        // add the team KotH challenge button
                        AddLabel(x3 + 30, 240, 55, a.Text(200237));  // "Team KotH"
                        AddButton(x3, 240, 0xFAB, 0xFAD, 409, GumpButtonType.Reply, 0);

                        // add the CTF challenge button
                        AddLabel(x1 + 30, 265, 55, a.Text(200238));  // "CTF"
                        AddButton(x1, 265, 0xFAB, 0xFAD, 410, GumpButtonType.Reply, 0);
                    }
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 11-11-2006, 10:47 AM   #48 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,795
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Quote:
Originally Posted by ArteGordon
in XmlPoints.cs in the Initialize method, change the accesslevel for the commands as you like

Code:
			CommandSystem.Register( "PointsLanguage", AccessLevel.Player, new CommandEventHandler( Language_OnCommand ) );
			CommandSystem.Register( "Challenge", AccessLevel.Player, new CommandEventHandler( Challenge_OnCommand ) );
			CommandSystem.Register( "LMSChallenge", AccessLevel.Player, new CommandEventHandler( LMSChallenge_OnCommand ) );
			CommandSystem.Register( "TeamLMSChallenge", AccessLevel.Player, new CommandEventHandler( TeamLMSChallenge_OnCommand ) );
			CommandSystem.Register( "Deathmatch", AccessLevel.Player, new CommandEventHandler( Deathmatch_OnCommand ) );
			CommandSystem.Register( "TeamDeathmatch", AccessLevel.Player, new CommandEventHandler( TeamDeathmatch_OnCommand ) );
			CommandSystem.Register( "DeathBall", AccessLevel.Player, new CommandEventHandler( DeathBall_OnCommand ) );
			CommandSystem.Register( "KingOfTheHill", AccessLevel.Player, new CommandEventHandler( KingOfTheHill_OnCommand ) );
			CommandSystem.Register( "TeamDeathBall", AccessLevel.Player, new CommandEventHandler( TeamDeathBall_OnCommand ) );
			CommandSystem.Register( "TeamKotH", AccessLevel.Player, new CommandEventHandler( TeamKotH_OnCommand ) );
			CommandSystem.Register( "CTFChallenge", AccessLevel.Player, new CommandEventHandler( CTFChallenge_OnCommand ) );
			CommandSystem.Register( "SystemBroadcastKills", AccessLevel.GameMaster, new CommandEventHandler( SystemBroadcastKills_OnCommand ) );
			CommandSystem.Register( "SeeKills", AccessLevel.Player, new CommandEventHandler( SeeKills_OnCommand ) );
			CommandSystem.Register( "BroadcastKills", AccessLevel.Player, new CommandEventHandler( BroadcastKills_OnCommand ) );
			CommandSystem.Register( "CheckPoints", AccessLevel.Player, new CommandEventHandler( CheckPoints_OnCommand ) );
			CommandSystem.Register( "TopPlayers", AccessLevel.Player, new CommandEventHandler( TopPlayers_OnCommand ) );
			CommandSystem.Register( "AddAllPoints", AccessLevel.Administrator, new CommandEventHandler( AddAllPoints_OnCommand ) );
			CommandSystem.Register( "RemoveAllPoints", AccessLevel.Administrator, new CommandEventHandler( RemoveAllPoints_OnCommand ) );
			CommandSystem.Register( "LeaderboardSave", AccessLevel.Administrator, new CommandEventHandler( LeaderboardSave_OnCommand ) );
You can also restrict the challenge game buttons in the points gump by adding this mod to the PointsGump code around line 2500

Code:
                    // add the challenge button
                    AddLabel(x1 + 30, 190, 55, a.Text(200229));   // "Challenge"
                    AddButton(x1, 190, 0xFAB, 0xFAD, 400, GumpButtonType.Reply, 0);

                    if (from.AccessLevel >= AccessLevel.GameMaster)
                    {
                        // add the last man standing challenge button
                        AddLabel(x2 + 30, 190, 55, a.Text(200230));   // "LMS"
                        AddButton(x2, 190, 0xFAB, 0xFAD, 401, GumpButtonType.Reply, 0);

                        // add the deathmatch challenge button
                        AddLabel(x3 + 30, 190, 55, a.Text(200231));  // "Deathmatch"
                        AddButton(x3, 190, 0xFAB, 0xFAD, 403, GumpButtonType.Reply, 0);

                        // add the kingofthehill challenge button
                        AddLabel(x1 + 30, 215, 55, a.Text(200232));  // "KotH"
                        AddButton(x1, 215, 0xFAB, 0xFAD, 404, GumpButtonType.Reply, 0);

                        // add the deathball challenge button
                        AddLabel(x2 + 30, 215, 55, a.Text(200233));  // "DeathBall"
                        AddButton(x2, 215, 0xFAB, 0xFAD, 405, GumpButtonType.Reply, 0);

                        // add the teamlms challenge button
                        AddLabel(x3 + 30, 215, 55, a.Text(200234));  // "Team LMS"
                        AddButton(x3, 215, 0xFAB, 0xFAD, 406, GumpButtonType.Reply, 0);

                        // add the team deathmatch challenge button
                        AddLabel(x1 + 30, 240, 55, a.Text(200235));   // "Team DMatch"
                        AddButton(x1, 240, 0xFAB, 0xFAD, 407, GumpButtonType.Reply, 0);

                        // add the team deathball challenge button
                        AddLabel(x2 + 30, 240, 55, a.Text(200236));  // "Team DBall"
                        AddButton(x2, 240, 0xFAB, 0xFAD, 408, GumpButtonType.Reply, 0);

                        // add the team KotH challenge button
                        AddLabel(x3 + 30, 240, 55, a.Text(200237));  // "Team KotH"
                        AddButton(x3, 240, 0xFAB, 0xFAD, 409, GumpButtonType.Reply, 0);

                        // add the CTF challenge button
                        AddLabel(x1 + 30, 265, 55, a.Text(200238));  // "CTF"
                        AddButton(x1, 265, 0xFAB, 0xFAD, 410, GumpButtonType.Reply, 0);
                    }
Thanks a million
__________________
go fish
Suil Ban is offline   Reply With Quote
<