|
||
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#51 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
Look at the Latest News at the beginning of the main post in the XmlSpawner2 thread for the first error. For the second error, go to line 84 in Notoriety.cs and change 'Controled' to 'Controlled'. (edit) I fixed the 'Controlled' typo in the installation instructions shown in the main post. Thanks.
__________________
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; 01-06-2007 at 08:28 AM. |
|
|
|
|
|
|
#52 (permalink) |
|
Forum Expert
|
Alright. That fixed the compile errors, now I went to test the [challenge system and used a player on player and it tells me this:
"No XMLPoints Support" Unless its saying this because im using 2 players from the same IP address. I know I installed everything correctly: XMLSpawner 1 of 3 - [Installed] XMLSpawner 2 of 3 - [Installed] XMLSpawner 3 of 3 - [Installed] XML Support - [Installed] XMLPoints 1 of 2 - [Installed] XMLPoints 2 of 2 - [Installed] and every script that I was shown to edit, was edited. I wana guess its just the IP address conflict and I need to test it on my public server which I cant ATM because my host is not around right now. |
|
|
|
|
|
#53 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
You can do this with the [addallpoints command. This is completely reversible and you only need to do this once when you are initially setting up the system. To remove the attachments use the [removeallpoints To have the points attachment automatically added to all new players, follow installation step #4
__________________
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; 01-06-2007 at 12:27 PM. |
|
|
|
|
|
|
#54 (permalink) |
|
Forum Expert
|
Alright thank you, that works.
Sorry to give you so much BS, but now I have 1 last problem that I see. [add ChallengeRegionStone I get target to add this stone and when I click a spot to add it I get this in the game: "Usage: ChallengeRegionStone" Am I forgeting something again, or is there an error somewhere? |
|
|
|
|
|
#55 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
hmm, that command
[add ChallengeRegionStone should work. What version of the server are you using? RC1? The latest SVN?
__________________
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 |
|
|
|
|
|
#57 (permalink) | ||
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
To turn on leaderboard saves, use the "[leaderboardsave filename" command. To turn them off use "[leaderboardsave off" Quote:
__________________
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 |
||
|
|
|
|
|
#58 (permalink) |
|
Forum Expert
|
Lol, alright sorry bout that. I dont read anything from books to newspapers.. I hate it and when I read I naturally just scan it I cannot read line by line, i think it has alot to do with A.D.D., but thank you. Anyhow what do you suggest about the ChallengeRegionStone problem?
|
|
|
|
|
|
#59 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
Maybe try adding it to a different location. I would also make sure that you have the right version of challengeregionstone.cs. The one in the package is dated 6/30/06.
__________________
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 |
|
|
|
|
|
|
#61 (permalink) |
|
Forum Expert
|
Alright actually im gonna go through everything again, because I finally had the chance to test this script out on my server publicly and I must of forgot some things because its not working properly, such as Me sending duel to girlfriend and we get sent to jhelom pits. I kill her and she stays dead and after resurrected we are still hostile/Orange to eachother and able to fight anywhere and it doesnt count the duel as win and send us back to our previous location. So like I said I have something I must of missed, ill let you know if the shits working properly after I look it over
|
|
|
|
|
|
#62 (permalink) | |||
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
Quote:
Quote:
__________________
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 |
|||
|
|
|
|
|
#63 (permalink) |
|
Forum Expert
|
I removed your system completely and replaced the default distro scripts.
I then redownloaded EVERYTHING, and followed all of what I was told to do all over again and came out with a clean bug free system. Works as good as a brand new bong. TYVM for the script, nice work. ++Karma
__________________
∙∙∙∙ A demon spawn, child of a bastard son Seven born at seven and the seventh child fathered one..∙∙∙∙ ∙∙∙∙A soul black full of pain. Bodies in the field, blood pourin like rain∙∙∙∙ |
|
|
|
|
|
#64 (permalink) | ||
|
Forum Novice
|
i am getting one error but its big can some help me?
Quote:
heres my script. Quote:
Last edited by mkiplm; 01-16-2007 at 05:07 PM. |
||
|
|
|
|
|
#65 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
around line 125 you have an extra bracket. Just delete it.
Code:
public static bool Mobile_AllowHarmful( Mobile from, Mobile target )
{
if( from == null || target == null || from.AccessLevel > AccessLevel.Player || target.AccessLevel > AccessLevel.Player )
return true;
Map map = from.Map;
if( map != null && (map.Rules & MapRules.HarmfulRestrictions) == 0 )
return true; // In felucca, anything goes
if( !from.Player && !(from is BaseCreature && (((BaseCreature)from).Controlled || ((BaseCreature)from).Summoned)) )
{
if( !CheckAggressor( from.Aggressors, target ) && !CheckAggressed( from.Aggressed, target ) && target is PlayerMobile && ((PlayerMobile)target).CheckYoungProtection( from ) )
return false;
return true; // Uncontroled NPCs are only restricted by the young system
}
// XmlPoints challenge mod
if(XmlPoints.AreChallengers(from,target))
return true;
} <---------- delete this
__________________
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 |
|
|
|
|
|
#66 (permalink) | |
|
Forum Novice
|
i got more errors 2 of them arg take a peek.
Quote:
|
|
|
|
|
|
|
#67 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
for the first error see the Latest News section at the top of the main xmlspawner thread.
The second errors are because you made this mod from installation Step 5 Code:
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;
__________________
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 |
|
|
|
|
|
#68 (permalink) |
|
Forum Newbie
Join Date: Jan 2007
Posts: 22
|
I don't remember finding installation information, or editing information within XmlSpawner2, or This addition. I may be wrong... But, I followed all recomended instalation steps. As well as edited various within playermobile, and notoriety. I tried to compile, and I got a warning dealing with severlist.cs. I can't remember exactly what I changed in it... But I replaced it with the original. Both of which claim multiple times that XmlPoints cannot be found... Also one claiming attachments cannot be found. Code:
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Items;
using Server.Guilds;
using Server.Multis;
using Server.Mobiles;
using Server.Engines.PartySystem;
using Server.Factions;
namespace Server.Misc
{
public class NotorietyHandlers
{
public static void Initialize()
{
Notoriety.Hues[Notoriety.Innocent] = 0x59;
Notoriety.Hues[Notoriety.Ally] = 0x3F;
Notoriety.Hues[Notoriety.CanBeAttacked] = 0x3B2;
Notoriety.Hues[Notoriety.Criminal] = 0x3B2;
Notoriety.Hues[Notoriety.Enemy] = 0x90;
Notoriety.Hues[Notoriety.Murderer] = 0x22;
Notoriety.Hues[Notoriety.Invulnerable] = 0x35;
Notoriety.Handler = new NotorietyHandler( MobileNotoriety );
Mobile.AllowBeneficialHandler = new AllowBeneficialHandler( Mobile_AllowBeneficial );
Mobile.AllowHarmfulHandler = new AllowHarmfulHandler( Mobile_AllowHarmful );
}
private enum GuildStatus { None, Peaceful, Waring }
private static GuildStatus GetGuildStatus( Mobile m )
{
if( m.Guild == null )
return GuildStatus.None;
else if( ((Guild)m.Guild).Enemies.Count == 0 && m.Guild.Type == GuildType.Regular )
return GuildStatus.Peaceful;
return GuildStatus.Waring;
}
private static bool CheckBeneficialStatus( GuildStatus from, GuildStatus target )
{
if( from == GuildStatus.Waring || target == GuildStatus.Waring )
return false;
return true;
}
/*private static bool CheckHarmfulStatus( GuildStatus from, GuildStatus target )
{
if ( from == GuildStatus.Waring && target == GuildStatus.Waring )
return true;
return false;
}*/
public static bool Mobile_AllowBeneficial( Mobile from, Mobile target )
{
if( from == null || target == null || from.AccessLevel > AccessLevel.Player || target.AccessLevel > AccessLevel.Player )
return true;
#region Factions
Faction targetFaction = Faction.Find( target, true );
if( targetFaction != null )
{
if( Faction.Find( from, true ) != targetFaction )
return false;
}
#endregion
Map map = from.Map;
if( map != null && (map.Rules & MapRules.BeneficialRestrictions) == 0 )
return true; // In felucca, anything goes
if( !from.Player )
return true; // NPCs have no restrictions
if( target is BaseCreature && !((BaseCreature)target).Controlled )
return false; // Players cannot heal uncontrolled mobiles
// XmlPoints challenge mod
if(XmlPoints.AreInAnyGame(target))
return XmlPoints.AreTeamMembers(from,target);
if( from is PlayerMobile && ((PlayerMobile)from).Young && (!(target is PlayerMobile) || !((PlayerMobile)target).Young) )
return false; // Young players cannot perform beneficial actions towards older players
Guild fromGuild = from.Guild as Guild;
Guild targetGuild = target.Guild as Guild;
if( fromGuild != null && targetGuild != null && (targetGuild == fromGuild || fromGuild.IsAlly( targetGuild )) )
return true; // Guild members can be beneficial
return CheckBeneficialStatus( GetGuildStatus( from ), GetGuildStatus( target ) );
}
public static bool Mobile_AllowHarmful( Mobile from, Mobile target )
{
if( from == null || target == null || from.AccessLevel > AccessLevel.Player || target.AccessLevel > AccessLevel.Player )
return true;
Map map = from.Map;
if( map != null && (map.Rules & MapRules.HarmfulRestrictions) == 0 )
return true; // In felucca, anything goes
if( !from.Player && !(from is BaseCreature && (((BaseCreature)from).Controlled || ((BaseCreature)from).Summoned)) )
{
if( !CheckAggressor( from.Aggressors, target ) && !CheckAggressed( from.Aggressed, target ) && target is PlayerMobile && ((PlayerMobile)target).CheckYoungProtection( from ) )
return false;
return true; // Uncontrolled NPCs are only restricted by the young system
}
// XmlPoints challenge mod
if(XmlPoints.AreChallengers(from,target))
return true;
Guild fromGuild = GetGuildFor( from.Guild as Guild, from );
Guild targetGuild = GetGuildFor( target.Guild as Guild, target );
if( fromGuild != null && targetGuild != null && (fromGuild == targetGuild || fromGuild.IsAlly( targetGuild ) || fromGuild.IsEnemy( targetGuild )) )
return true; // Guild allies or enemies can be harmful
if( target is BaseCreature && (((BaseCreature)target).Controlled || (((BaseCreature)target).Summoned && from != ((BaseCreature)target).SummonMaster)) )
return false; // Cannot harm other controlled mobiles
if( target.Player )
return false; // Cannot harm other players
if( !(target is BaseCreature && ((BaseCreature)target).InitialInnocent) )
{
if( Notoriety.Compute( from, target ) == Notoriety.Innocent )
return false; // Cannot harm innocent mobiles
}
return true;
}
public static Guild GetGuildFor( Guild def, Mobile m )
{
Guild g = def;
BaseCreature c = m as BaseCreature;
if( c != null && c.Controlled && c.ControlMaster != null )
{
c.DisplayGuildTitle = false;
if( c.Map != Map.Internal && (Core.AOS || Guild.NewGuildSystem || c.ControlOrder == OrderType.Attack || c.ControlOrder == OrderType.Guard) )
g = (Guild)(c.Guild = c.ControlMaster.Guild);
else if( c.Map == Map.Internal || c.ControlMaster.Guild == null )
g = (Guild)(c.Guild = null);
}
return g;
}
public static int CorpseNotoriety( Mobile source, Corpse target )
{
if( target.AccessLevel > AccessLevel.Player )
return Notoriety.CanBeAttacked;
Body body = (Body)target.Amount;
BaseCreature cretOwner = target.Owner as BaseCreature;
if( cretOwner != null )
{
Guild sourceGuild = GetGuildFor( source.Guild as Guild, source );
Guild targetGuild = GetGuildFor( target.Guild as Guild, target.Owner );
if( sourceGuild != null && targetGuild != null )
{
if( sourceGuild == targetGuild || sourceGuild.IsAlly( targetGuild ) )
return Notoriety.Ally;
else if( sourceGuild.IsEnemy( targetGuild ) )
return Notoriety.Enemy;
}
Faction srcFaction = Faction.Find( source, true, true );
Faction trgFaction = Faction.Find( target.Owner, true, true );
if( srcFaction != null && trgFaction != null && srcFaction != trgFaction && source.Map == Faction.Facet )
return Notoriety.Enemy;
if( CheckHouseFlag( source, target.Own |