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!

XmlPoints

ArteGordon

Wanderer
okyzan said:
added the new Team Deathmatch challenge game.
This supports any combination of team numbers and sizes.
The rules are the same as regular Deathmatch with the team with the highest score being the winner.

but in thi gaunlet a score is setting up like 50.you mean which teams total score is 50 is the winner.for example
the score set to 50.
in the a team there is 5 player for examlple
every team member make 10 points
than the total is 50 and they are the winner am i right?

yes, that is how it works.
 

okyzan

Wanderer
but there is still a problem in the system.in some players the faction skill lose still continiues and the other thing is a modify i want to make is in the team deathmatch when killed they get - point can i prevent this?for example
if the a team is goint to win the game the score is being like this a team 23,b team -23
 

ArteGordon

Wanderer
okyzan said:
but there is still a problem in the system.in some players the faction skill lose still continiues and the other thing is a modify i want to make is in the team deathmatch when killed they get - point can i prevent this?for example
if the a team is goint to win the game the score is being like this a team 23,b team -23
If you made this mod to playermobile.cs

Code:
			// ARTEGORDONMOD
			// block faction skill loss during challenge games
			if(!XmlPoints.AreChallengers(this, killer))
				Faction.HandleDeath( this, killer );

then no faction skill loss will occur while they are in a 1v1 duel or killed by an opponent in a challenge game. If they die by any other means, they will suffer skill loss.

If you wish to change the team deathmatch rules so that you do not subtract points, just change this in TeamDeathmatchGauntlet.cs

Code:
		public void SubtractScore(ChallengeEntry entry)
		{
[color=red]return;[/color]
            if(entry == null) return;
            
            entry.Score--;

            // refresh the gumps
            TeamDeathmatchGump.RefreshAllGumps(this, false);
		}
 

okyzan

Wanderer
i am using like this
Code:
Mobile killer = this.FindMostRecentDamager( true );

			if ( killer is BaseCreature )
			{
				BaseCreature bc = (BaseCreature)killer;

				Mobile master = bc.GetMaster();
				if( master != null )
					killer = master;
			}

			if ( this.Young )
			{
				Point3D dest = GetYoungDeathDestination();

				if ( dest != Point3D.Zero )
				{
					this.Location = dest;
					Timer.DelayCall( TimeSpan.FromSeconds( 2.5 ), new TimerCallback( SendYoungDeathNotice ) );
				}
			}

			if(!XmlPoints.AreChallengers(this, killer))
				Faction.HandleDeath( this, killer );
		}
is it true?
 
Help Errors! =/

Seems I Messed Up On The Steps.... And Id Like To Kno If Someone Can Help Me Please... I Have A Pic Of My Errors.. Or Just Post There Custimized One... Would Be Greatly Appreciated!!

 

ArteGordon

Wanderer
It is because you put the Step 5 installation mod in the CorpseNotoriety method instead of MobileNotoriety in Notoriety.cs. They look almost identical so it is an easy thing to miss.
 

ArteGordon

Wanderer
hehe. Diplomat Narc actually pointed out that I had the incorrect line number mentioned in the posted installation instructions, which is probably why people were making that mistake (I had line 240 instead of 279).
 

bryant

Sorceror
any ideas

i have done like the 6th part of setup said to do for insurance and it still is taking insurance money/.?
 

ArteGordon

Wanderer
bryant said:
i have done like the 6th part of setup said to do for insurance and it still is taking insurance money/.?
During 1-on-1 duels or during challenge games?
If you want to disable insurance in 1-on-1 duels then you need to uncomment this line around line 1296 in xmlpoints.cs

Code:
			// uncomment the line below if you want to prevent insurance awards for normal 1on1 duels
			//if(atarget.Challenger == from) return true;
            
			return false;
		}

By default, insurance is enabled for duels.

Insurance for challenge games is controlled by the InsuranceIsFree overrides in the individual challenge gauntlet scripts, like deathmatchgauntlet.cs
Code:
        public override bool InsuranceIsFree(Mobile from, Mobile awardto)
        {
            return true;
        }

With the step 6 mod, insurance is disabled by default for the games.
 
Loser will not res :(

iv been testing out teh script on my test server hoping to go live soon, basiccly everything seems to be working fine apart from teh ressurection of the plater after the fight has finished

the points are added, the duels starts fine both players are orange to eachother and blue to eachother after fight. what could i have done wrong?

i even hear the res sound when i am teleported back. Could this have somthing to do with the PlayerMobiles child calss i use?
 

ArteGordon

Wanderer
Admin Aphrodite said:
iv been testing out teh script on my test server hoping to go live soon, basiccly everything seems to be working fine apart from teh ressurection of the plater after the fight has finished

the points are added, the duels starts fine both players are orange to eachother and blue to eachother after fight. what could i have done wrong?

i even hear the res sound when i am teleported back. Could this have somthing to do with the PlayerMobiles child calss i use?

I'm guessing that they are also not getting points after the kill. Make sure that you have gone through this installation step for the xmlspawner system.

STEP 6: (recommended but not required)
To allow the XmlQuest killtask keywords KILL and KILLNAMED to be applied to players providing a contract kill system, one line must be added to ReportMurderer.cs (Scripts/Gumps/ReportMurderer.cs) as described below (note, you dont have to make this mod if you dont want to, the spawner and other items will work just fine without it, the KILL and KILLNAMED features simply wont work when specifying players as the targets).
This is also required to allow the attachment system to register kills (through the OnKill or OnKilled methods). Some addons such as XmlPoints require this.

around line 64 of ReportMurderer.cs change

Titles.AwardKarma( g, karmaAward, true );

to

Titles.AwardKarma( g, karmaAward, true );
// modification to support XmlQuest Killtasks of players
Server.Items.XmlQuest.RegisterKill( m, g);

Also make sure that you have the autores feature for duels enabled in XmlPoints.cs

Code:
		// allows players to be autores'd following 1-on-1 duels
		// Team Challenge type matches handle their own autores behavior
		public static bool AutoResAfterDuel = true;
 

hydrox

Wanderer
Oh jeez, i just unloaded all the xml script into my directory, someone gimmie a hand on where to start? i'm not that great at this. =[



RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (27 errors, 0 warnings)
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 9, column 24) The
namespace 'Server.Items' already contains a definition for 'BaseContainer'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 138, column 15) T
he namespace 'Server.Items' already contains a definition for 'StrongBackpack'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 193, column 15) T
he namespace 'Server.Items' already contains a definition for 'Backpack'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 241, column 15) T
he namespace 'Server.Items' already contains a definition for 'Pouch'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 276, column 24) T
he namespace 'Server.Items' already contains a definition for 'BaseBagBall'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 320, column 15) T
he namespace 'Server.Items' already contains a definition for 'SmallBagBall'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 346, column 15) T
he namespace 'Server.Items' already contains a definition for 'LargeBagBall'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 372, column 15) T
he namespace 'Server.Items' already contains a definition for 'Bag'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 416, column 15) T
he namespace 'Server.Items' already contains a definition for 'Barrel'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 454, column 15) T
he namespace 'Server.Items' already contains a definition for 'Keg'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 489, column 15) T
he namespace 'Server.Items' already contains a definition for 'PicnicBasket'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 524, column 15) T
he namespace 'Server.Items' already contains a definition for 'Basket'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 561, column 15) T
he namespace 'Server.Items' already contains a definition for 'WoodenBox'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 598, column 15) T
he namespace 'Server.Items' already contains a definition for 'SmallCrate'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 638, column 15) T
he namespace 'Server.Items' already contains a definition for 'MediumCrate'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 678, column 15) T
he namespace 'Server.Items' already contains a definition for 'LargeCrate'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 718, column 15) T
he namespace 'Server.Items' already contains a definition for 'MetalBox'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 755, column 15) T
he namespace 'Server.Items' already contains a definition for 'MetalChest'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 792, column 15) T
he namespace 'Server.Items' already contains a definition for 'MetalGoldenChest'

- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 829, column 15) T
he namespace 'Server.Items' already contains a definition for 'WoodenChest'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 869, column 15) T
he namespace 'Server.Items' already contains a definition for 'PlainWoodenChest'

- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 906, column 15) T
he namespace 'Server.Items' already contains a definition for 'OrnateWoodenChest
'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 943, column 15) T
he namespace 'Server.Items' already contains a definition for 'GildedWoodenChest
'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 981, column 15) T
he namespace 'Server.Items' already contains a definition for 'WoodenFootLocker'

- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 1018, column 15)
The namespace 'Server.Items' already contains a definition for 'FinishedWoodenCh
est'
- Error: Scripts\Skills\Stealing.cs: CS0101: (line 15, column 15) The namespace
'Server.SkillHandlers' already contains a definition for 'Stealing'
- Error: Scripts\Skills\Stealing.cs: CS0101: (line 362, column 15) The namespac
e 'Server.SkillHandlers' already contains a definition for 'StolenItem'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

ArteGordon

Wanderer
hydrox said:
Oh jeez, i just unloaded all the xml script into my directory, someone gimmie a hand on where to start? i'm not that great at this. =[



RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (27 errors, 0 warnings)
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 9, column 24) The
namespace 'Server.Items' already contains a definition for 'BaseContainer'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 138, column 15) T
he namespace 'Server.Items' already contains a definition for 'StrongBackpack'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 193, column 15) T
he namespace 'Server.Items' already contains a definition for 'Backpack'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 241, column 15) T
he namespace 'Server.Items' already contains a definition for 'Pouch'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 276, column 24) T
he namespace 'Server.Items' already contains a definition for 'BaseBagBall'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 320, column 15) T
he namespace 'Server.Items' already contains a definition for 'SmallBagBall'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 346, column 15) T
he namespace 'Server.Items' already contains a definition for 'LargeBagBall'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 372, column 15) T
he namespace 'Server.Items' already contains a definition for 'Bag'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 416, column 15) T
he namespace 'Server.Items' already contains a definition for 'Barrel'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 454, column 15) T
he namespace 'Server.Items' already contains a definition for 'Keg'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 489, column 15) T
he namespace 'Server.Items' already contains a definition for 'PicnicBasket'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 524, column 15) T
he namespace 'Server.Items' already contains a definition for 'Basket'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 561, column 15) T
he namespace 'Server.Items' already contains a definition for 'WoodenBox'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 598, column 15) T
he namespace 'Server.Items' already contains a definition for 'SmallCrate'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 638, column 15) T
he namespace 'Server.Items' already contains a definition for 'MediumCrate'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 678, column 15) T
he namespace 'Server.Items' already contains a definition for 'LargeCrate'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 718, column 15) T
he namespace 'Server.Items' already contains a definition for 'MetalBox'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 755, column 15) T
he namespace 'Server.Items' already contains a definition for 'MetalChest'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 792, column 15) T
he namespace 'Server.Items' already contains a definition for 'MetalGoldenChest'

- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 829, column 15) T
he namespace 'Server.Items' already contains a definition for 'WoodenChest'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 869, column 15) T
he namespace 'Server.Items' already contains a definition for 'PlainWoodenChest'

- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 906, column 15) T
he namespace 'Server.Items' already contains a definition for 'OrnateWoodenChest
'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 943, column 15) T
he namespace 'Server.Items' already contains a definition for 'GildedWoodenChest
'
- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 981, column 15) T
he namespace 'Server.Items' already contains a definition for 'WoodenFootLocker'

- Error: Scripts\Items\Containers\Container.cs: CS0101: (line 1018, column 15)
The namespace 'Server.Items' already contains a definition for 'FinishedWoodenCh
est'
- Error: Scripts\Skills\Stealing.cs: CS0101: (line 15, column 15) The namespace
'Server.SkillHandlers' already contains a definition for 'Stealing'
- Error: Scripts\Skills\Stealing.cs: CS0101: (line 362, column 15) The namespac
e 'Server.SkillHandlers' already contains a definition for 'StolenItem'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


this is from the installation instructions for xmlspawner2

If you have installed xmlspawner2-support.zip you MUST either follow Step 4 or get rid of the custom container.cs and stealing.cs files from this package.
If you plan on spawning rares or any items with long spawn cycles I would strongly recommend that you follow installation step 4. You can find the reason for this described at the end of this document in the section "FIX FOR STOLEN/TAKEN ITEM SPAWNS THAT REMAIN UNDER SPAWNER CONTROL"

This is Step 4 from the installation instructions
STEP 4: (recommended but not required)
To take advantage of the stealable rares/artifacts system and the support for eliminating issues of maintained spawner control over items, either replace the 1.0.0 distribution files container.cs (Scripts/Items/Containers/Container.cs) and stealing.cs (Scripts/Skills/Stealing.cs) with the versions found in xmlspawner2-support.zip (always keep backups of the originals), or the simpler way is to just change the extension of the distro files to something other than .cs

so you can either remove the container.cs and stealing.cs files that were included with it, or you can use those instead of your current container.cs and stealing.cs files.
I would recommend finding your current scripts

Scripts/Skills/Stealing.cs
Scripts/Items/Containers/Container.cs

and simply renaming their extension to something like

Scripts/Skills/Stealing._cs
Scripts/Items/Containers/Container._cs

That way you will not have duplicates, and you will still have your originals around if you want to restore them, or refer to them.
By changing the extension from .cs, the compiler will not try to compile them.

(edit)

Note, you dont actually have to do any of that for the Points system if you dont want to (it makes no difference, you can just not extract the container.cs and stealing.cs that are included), but I recommend it if you want to use the spawner for stealables or rares.
 
Top