|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) | |
|
Account Terminated
|
Quote:
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. |
|
|
|
|
|
|
#4 (permalink) |
|
Join Date: Oct 2005
Posts: 169
|
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. |
|
|
|
|
|
#5 (permalink) | |
|
Account Terminated
|
Quote:
[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. |
|
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
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] );
}
}
}
}
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|