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!

[RunUO 2.0 RC1] XmlPoints - pvp dueling and challenge game system

killder

Wanderer
RunUO - [www.runuo.com] Version 2.0, Build 2885.28247
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...ScriptCompiler: CS1518: Se esperaba una clase, u
n delegado, una enumeración, una interfaz o una estructura
done (0 errors, 0 warnings)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


i have this problem... with svn 265

help please!
 

djkillerbee

Wanderer
I getting this error after i put the scripts in
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 (5 errors, 7 warnings)
Warnings:
 + 2.0 CustomQuests/ElainQuest/Mobiles/Andora.cs:
    CS0219: Line 34: The variable 'hairHue' is assigned but its value is never u
sed
 + 2.0 CustomQuests/ElainQuest/Mobiles/ErikSullivan.cs:
    CS0219: Line 35: The variable 'hairHue' is assigned but its value is never u
sed
 + Fireworks/DefFirework.cs:
    CS0219: Line 84: The variable 'index' is assigned but its value is never use
d
 + Knives Chat 3.0 Beta 9/General/MultiConnection.cs:
    CS0168: Line 65: The variable 'e' is declared but never used
    CS0168: Line 134: The variable 'e' is declared but never used
    CS0168: Line 165: The variable 'e' is declared but never used
    CS0168: Line 184: The variable 'e' is declared but never used
    CS0168: Line 201: The variable 'e' is declared but never used
    CS0168: Line 252: The variable 'e' is declared but never used
 + Knives Chat 3.0 Beta 9/Gumps/Error Reporting/Errors.cs:
    CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
 alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?lin
kid=14202'
    CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
 alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?lin
kid=14202'
    CS0618: Line 102: 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended a
lternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid
=14202'
 + Knives Chat 3.0 Beta 9/shadow and crystal items/shadow/ShadowBannerAddon.cs:
    CS0168: Line 22: The variable 'ac' is declared but never used
    CS0168: Line 93: The variable 'ac' is declared but never used
 + Yard and Garden System 10-05/Items/YardFountain.cs:
    CS1717: Line 33: Assignment made to same variable; did you mean to assign so
mething else?
Errors:
 + custom/Xanthos/EVO System/Mercenary/Mercenary.cs:
    CS0103: Line 430: The name 'NotorietyHandlers' does not exist in the current
 context
 + Items/Misc/Corpses/Corpse.cs:
    CS0103: Line 574: The name 'NotorietyHandlers' does not exist in the current
 context
    CS0103: Line 901: The name 'NotorietyHandlers' does not exist in the current
 context
    CS0103: Line 910: The name 'NotorietyHandlers' does not exist in the current
 context
 + Engines/Quests/Uzeraan Turmoil/Items/SchmendrickApprenticeCorpse.cs:
    CS0234: Line 118: The type or namespace name 'NotorietyHandlers' does not ex
ist in the namespace 'Server.Misc' (are you missing an assembly reference?)
 + Engines/Quests/Uzeraan Turmoil/Mobiles/MilitiaFighter.cs:
    CS0234: Line 117: The type or namespace name 'NotorietyHandlers' does not ex
ist in the namespace 'Server.Misc' (are you missing an assembly reference?)
 + Engines/Quests/Witch Apprentice/Items/HagApprenticeCorpse.cs:
    CS0103: Line 40: The name 'NotorietyHandlers' does not exist in the current
context
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
djkillerbee;732029 said:
I getting this error after i put the scripts in
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 (5 errors, 7 warnings)
Warnings:
 + 2.0 CustomQuests/ElainQuest/Mobiles/Andora.cs:
    CS0219: Line 34: The variable 'hairHue' is assigned but its value is never u
sed
 + 2.0 CustomQuests/ElainQuest/Mobiles/ErikSullivan.cs:
    CS0219: Line 35: The variable 'hairHue' is assigned but its value is never u
sed
 + Fireworks/DefFirework.cs:
    CS0219: Line 84: The variable 'index' is assigned but its value is never use
d
 + Knives Chat 3.0 Beta 9/General/MultiConnection.cs:
    CS0168: Line 65: The variable 'e' is declared but never used
    CS0168: Line 134: The variable 'e' is declared but never used
    CS0168: Line 165: The variable 'e' is declared but never used
    CS0168: Line 184: The variable 'e' is declared but never used
    CS0168: Line 201: The variable 'e' is declared but never used
    CS0168: Line 252: The variable 'e' is declared but never used
 + Knives Chat 3.0 Beta 9/Gumps/Error Reporting/Errors.cs:
    CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
 alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?lin
kid=14202'
    CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
 alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?lin
kid=14202'
    CS0618: Line 102: 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended a
lternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid
=14202'
 + Knives Chat 3.0 Beta 9/shadow and crystal items/shadow/ShadowBannerAddon.cs:
    CS0168: Line 22: The variable 'ac' is declared but never used
    CS0168: Line 93: The variable 'ac' is declared but never used
 + Yard and Garden System 10-05/Items/YardFountain.cs:
    CS1717: Line 33: Assignment made to same variable; did you mean to assign so
mething else?
Errors:
 + custom/Xanthos/EVO System/Mercenary/Mercenary.cs:
    CS0103: Line 430: The name 'NotorietyHandlers' does not exist in the current
 context
 + Items/Misc/Corpses/Corpse.cs:
    CS0103: Line 574: The name 'NotorietyHandlers' does not exist in the current
 context
    CS0103: Line 901: The name 'NotorietyHandlers' does not exist in the current
 context
    CS0103: Line 910: The name 'NotorietyHandlers' does not exist in the current
 context
 + Engines/Quests/Uzeraan Turmoil/Items/SchmendrickApprenticeCorpse.cs:
    CS0234: Line 118: The type or namespace name 'NotorietyHandlers' does not ex
ist in the namespace 'Server.Misc' (are you missing an assembly reference?)
 + Engines/Quests/Uzeraan Turmoil/Mobiles/MilitiaFighter.cs:
    CS0234: Line 117: The type or namespace name 'NotorietyHandlers' does not ex
ist in the namespace 'Server.Misc' (are you missing an assembly reference?)
 + Engines/Quests/Witch Apprentice/Items/HagApprenticeCorpse.cs:
    CS0103: Line 40: The name 'NotorietyHandlers' does not exist in the current
context
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.


It looks like you deleted or messed up your Notoriety.cs
 

djkillerbee

Wanderer
oh dam haha thank you its all good now one more thing for the games we have an already made arena how would i set the games up for that does each one have a gump to set areas
 

ArteGordon

Wanderer
djkillerbee;732036 said:
oh dam haha thank you its all good now one more thing for the games we have an already made arena how would i set the games up for that does each one have a gump to set areas

individual games can be configured to be restricted to ChallengeGameRegions.

for example in CTF.cs
Code:
       public static bool OnlyInChallengeGameRegion = false;           // if this is true, then the game can only be set up in a challenge game region

You can set up a challenge game region in your arena and then people will only be able to play games there.
 

xScortchx

Wanderer
I am getting an error in the notoriety, can someone help?

Code:
				// XmlPoints challenge mod
				 if (XmlPoints.AreTeamMembers(source,target))
				 return Notoriety.Ally;
				 else
				 if (XmlPoints.AreChallengers(source,target))
				 return Notoriety.Enemy;

It says that the arguments are invalid.

Thanks.
 

ArteGordon

Wanderer
xScortchx;734472 said:
I am getting an error in the notoriety, can someone help?

Code:
				// XmlPoints challenge mod
				 if (XmlPoints.AreTeamMembers(source,target))
				 return Notoriety.Ally;
				 else
				 if (XmlPoints.AreChallengers(source,target))
				 return Notoriety.Enemy;

It says that the arguments are invalid.

Thanks.


you probably made this mod in the wrong place. You probably put it in the CorpseNotoriety method instead of the MobileNotoriety method.

and in the MobileNotoriety method around line 279 change

if ( target.Criminal )
return Notoriety.Criminal;

to

if ( target.Criminal )
return Notoriety.Criminal;

// XmlPoints challenge mod
if(XmlPoints.AreTeamMembers(source,target))
return Notoriety.Ally;
else
if(XmlPoints.AreChallengers(source,target))
return Notoriety.Enemy;
 

Varchild

Wanderer
Hi arte.

There is a bug in Challenge region stone.

On constructed m_ChallengeArea in RefreshRegions is null so is null even m_ChallengeRegion.

On [Add you get a runtime error and in Deserialize you get a fatal exception.

I suggest 2 simple "If ... != null"

^^
 

ArteGordon

Wanderer
Varchild;736669 said:
Hi arte.

There is a bug in Challenge region stone.

On constructed m_ChallengeArea in RefreshRegions is null so is null even m_ChallengeRegion.

On [Add you get a runtime error and in Deserialize you get a fatal exception.

I suggest 2 simple "If ... != null"

^^

I'm not exactly sure where that would happen since those null checks are there. You could try adding the additional check shown in red below to ChallengeRegionStone.cs around line 150 and see if that takes care of it.

Code:
        public void RefreshRegions()
        {

			if (m_ChallengeRegion != null)
			{
				m_ChallengeRegion.Unregister();
			}

			if (m_ChallengeMap == null || m_ChallengeArea == null) return;

			// define a new one based on the named region
			m_ChallengeRegion = new ChallengeGameRegion(m_ChallengeRegionName, m_ChallengeMap, m_Priority, m_ChallengeArea);

            // check for invalid area or map or region list
            if ([COLOR="Red"]m_ChallengeRegion == null ||[/COLOR] m_ChallengeRegion.Area == null || m_ChallengeRegion.Map == null || Region.Regions == null) return;

            for (int i = 0; i < m_ChallengeRegion.Area.Length; i++)
            {
                // check for invalid areas
                Rectangle3D rect = m_ChallengeRegion.Area[i];

                Point2D start = m_ChallengeRegion.Map.Bound(new Point2D(rect.Start));
                Point2D end = m_ChallengeRegion.Map.Bound(new Point2D(rect.End));

                Sector startSector = m_ChallengeRegion.Map.GetSector(start);
                Sector endSector = m_ChallengeRegion.Map.GetSector(end);

                if (startSector == null || endSector == null) return;
            }

            if (m_ChallengeRegion.Parent != null)
            {
                // check for invalid parent child list
                if(m_ChallengeRegion.Parent.Children == null) return;
            }

			// update the new region properties with current values
			m_ChallengeRegion.Music = m_Music;
			m_ChallengeRegion.Disabled = m_Disable;

			m_ChallengeRegion.Register();
        }
 

dadnlad

Wanderer
OK patience is not my #1 virtue, I only read the first 4 pages lol. I have problem, which is close to a problem listed on page 2:


Melantus;608959 said:
We are find little expoit. This system make possible PK travel to continent Malas and hunt here. Red's simply use
[challenge command, choose luna grand arena, next leave this location and hunt freely

Its not been used as an exploit so far, but the problem is, by picking the Malas location, we can't even attack each other.... How do I fix this, or at least block the malas location (and any other non PVP) areas?
 

homergz

Sorceror
Look in XMLPoints.cs. I know there is a check to block challenges in the Jail region. See if you can get anywhere with that. When I get home I'll check some more on it.
 

nilmer

Wanderer
hiya

quick question for you on attachments


im working ingame with XML attachments

im trying to create a xmlminionstrike, that passes on properties to the spawned critters.



for example, I want to put this on a monster:


xmlminionstrike {drake/ATTACH/TEMPORARYQUESTOBJECT,NILMER,1} 100

so it would spawn creatures with a temporaryquestobject on them.


tried using @, no success.


any help would be appreciated.

Big fan of yours btw arte, Ive created more amazing things with your xmlspawners ingame than most scripters can even imagine hardcoding.
 

Devinticus

Wanderer
Hey, i followed your instruction's step by step 3 and 4 times. I cant seem to get this thing working i am getting these error's... any help would be greatly appriciated. Thank you.


RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (3 errors, 0 warnings)
Errors:
+ BaseArtifact.cs:
CS0101: Line 7: The namespace 'Server.Items' already contains a definition f
or 'Artifact'
+ StaffCloak.cs:
CS0101: Line 11: The namespace 'Server.Items' already contains a definition
for 'StaffCloak'
+ SimpleArtifact.cs:
CS0101: Line 7: The namespace 'Server.Items' already contains a definition f
or 'SimpleArtifact'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Pyro Man

Sorceror
Whenever i start my server i get an error saying the 1of2 file has 3 errors heres the error report


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:
+ XML PvP point System/XmlPoints-20-v124b-1of2/XmlAttachments/XmlPoints.cs:
CS0246: Line 22: The type or namespace name 'XmlAttachment' could not be fou
nd (are you missing a using directive or an assembly reference?)
CS0246: Line 1674: The type or namespace name 'ASerial' could not be found (
are you missing a using directive or an assembly reference?)
CS0246: Line 1678: The type or namespace name 'Attachable' could not be foun
d (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.



Any ideas? :confused:
 

Dangerous01

Wanderer
I have um ample whole question , I installed the XmlPoints we shall place the one runuo did not this one recoanhecendo the archival of the program. he looks the one foto from the runuo at the whole question. obs.: I need of installing some software program for seeing the one to this one written?

The Screen:
 

Attachments

  • Screen.bmp
    649.8 KB · Views: 27
Top