Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 11-08-2005, 12:56 PM   #1 (permalink)
 
Join Date: Oct 2005
Posts: 169
Default How do you edit faction properties (indepth)

Specifically how do you:

edit faction kill points,
edit town stones or add sigils so those town stones may be captured,
edit titles and names of factions.

Thanks.
Ajantis is offline   Reply With Quote
Old 11-08-2005, 01:01 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Ajantis
Specifically how do you:

edit faction kill points,
edit town stones or add sigils so those town stones may be captured,
edit titles and names of factions.

Thanks.
Have you looked through the Faction scripts, unless you do this, I am not going to explain the scripts.

You can already "capture" town stones, they work by default, more for information how Factions work look at www.uo.com because they work exactly like they do on OSI.
Phantom is offline   Reply With Quote
Old 11-08-2005, 01:18 PM   #3 (permalink)
 
Join Date: Oct 2005
Posts: 169
Default

Ok thank you.
Ajantis is offline   Reply With Quote
Old 11-08-2005, 01:27 PM   #4 (permalink)
 
Join Date: Oct 2005
Posts: 169
Default

Looked through the Faction's folder, and didnt see anything about faction score for players.............even if I did, how would this be editable to a certain player.

As for faction stones.....how does one start the capturing process if there is no sigil on top?

Thanks.
Ajantis is offline   Reply With Quote
Old 11-08-2005, 07:55 PM   #5 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Ajantis
Looked through the Faction's folder, and didnt see anything about faction score for players.............even if I did, how would this be editable to a certain player.

As for faction stones.....how does one start the capturing process if there is no sigil on top?

Thanks.
If there is no sigil on top, you have not used the command to generate all the faction items.

[generatefactions I believe is the command

[props on a Player should allow you to adjust their faction score, if not you can always just add a new command property.
Phantom is offline   Reply With Quote
Old 11-09-2005, 10:44 AM   #6 (permalink)
 
Join Date: Oct 2005
Posts: 169
Default

How would I add a command property? Thanks.
Ajantis is offline   Reply With Quote
Old 11-09-2005, 11:28 AM   #7 (permalink)
Forum Expert
 
arul's Avatar
 
Join Date: Jan 2005
Location: Hic sunt leones ...
Age: 21
Posts: 1,289
Send a message via MSN to arul
Default

I've made this command some time ago, here is the code.
Code:
using System;
using Server.Mobiles;
using Server.Targeting;
using Server.Factions;

namespace Server.Scripts.Commands
{
    public class KillPoints : BaseCommand
    {

        public static void Initialize()
        {
            TargetCommands.Register( new KillPoints() );
        }

        public KillPoints()
        {
            AccessLevel = AccessLevel.GameMaster;
            Supports = CommandSupport.Single;
            Commands = new string[] { "KillPoints" };
            ObjectTypes = ObjectTypes.Mobiles;
            Usage = "[KillPoints <number>";
            Description = "Sets faction killpoints.";
        }

        public override void Execute( CommandEventArgs e, object obj )
        {
            Mobile from = e.Mobile;
            if ( obj is Mobile )
            {
                PlayerState pl = PlayerState.Find( (Mobile)obj );

                if ( pl == null )
                    from.SendMessage("This command may be used only on faction players!");
                else
                    pl.KillPoints = Convert.ToInt32( e.Arguments[0] );
            }
        }
    }
}
arul is offline   Reply With Quote
Old 11-09-2005, 11:32 AM   #8 (permalink)
 
Join Date: Oct 2005
Posts: 169
Default

So which .cs do I put this in exactly?
Ajantis is offline   Reply With Quote
Old 11-09-2005, 11:37 AM   #9 (permalink)
Forum Expert
 
arul's Avatar
 
Join Date: Jan 2005
Location: Hic sunt leones ...
Age: 21
Posts: 1,289
Send a message via MSN to arul
Default

Quote:
Originally Posted by Ajantis
So which .cs do I put this in exactly?
The best way would be a brand new .cs.
arul is offline   Reply With Quote
Old 11-09-2005, 11:46 AM   #10 (permalink)
 
Join Date: Oct 2005
Posts: 169
Default

Thank you, it works great........but it seems even with 100 killpoints........it doesn't change the rank..........thus I can't vote in elections.

Do you have a script for faction ranks as well? Thanks.
Ajantis is offline   Reply With Quote
Old 11-09-2005, 12:02 PM   #11 (permalink)
Forum Expert
 
arul's Avatar
 
Join Date: Jan 2005
Location: Hic sunt leones ...
Age: 21
Posts: 1,289
Send a message via MSN to arul
Default

Faction titles doesn't work in this way, the method that handles updating the faction titles is called during the world load.
arul is offline   Reply With Quote
Old 11-09-2005, 12:09 PM   #12 (permalink)
 
Join Date: Oct 2005
Posts: 169
Default

Okay...it seems its working........even though it doesn't work for faction Blacksmith it seems........

But thank you very much arul!
Ajantis is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5