Full Version : help on the xml faction mob system
xmlspawner >>XMLMobFactions Discussion >>help on the xml faction mob system
<< Prev | Next >>
sticky- 09-25-2007
i just got the xml faction mob system in and i just need to get a little boost on how to get players into the factions. and how yto use the system in general. if there is a forums for that system or someone is familiar
with it can i get some help?
ArteGordon- 09-25-2007
did you look here
http://xmlspawner.15.forumer.com/index.php?showforum=16
sticky- 09-25-2007
ya i was wondering more on how to use the regions i made brit graveyard a region for undead and started killing things. and one char gains the points and the other guy trying isnt gaining anything.And if i am supposed to set the mob type undead if its undead and so on.Then now also no one is gaining anything the guy that was gaining stopped now i cant figure out what i did to stop the gains. Im getting confused.If you can tell me the settings to make a working stone i can go from there im sure. Plz plz help this xml stuff you have is so helpful and this is my first shard .I would love to get to know all the things it has to offer.
ArteGordon- 09-26-2007
the MobFactionRegions and MobFactionRegionStone allow you to create regions that restrict entry based on faction level. They dont control whether or not you gain or lose faction and they dont control the amount of gain or loss.
If you have players that are killing things and not gaining or losing faction, then there are a couple of possibilities. The first is that the players dont have the XmlMobFactions attachment.
You can easily check this by using the [getatt command to see the attachments on the player.
If players were gaining faction and it suddenly stopped, it may be that you accidentally removed all of the xmlmobfaction attachments from players by using the [removeallmobfactions command. You can restore them with the [addallmobfactions command.

QUOTE
Commands supported: [addallmobfactions - this command will add the mob factions attachment to all current players and can only be run by an administrator [removeallmobfactions - this command will remove the mob factions attachment from all current players and can only be run by an administrator
[checkmobfactions - this command can be run by players to report their current standing with all existing mob factions (this is the same as using the item identification skill on themselves)
[verbosemobfactions true/false - this command toggles the verbose reporting of faction gained and lost for each kill.

The second is that the creature being killed is not a member of any faction.
Creatures are put into factions generally by editing the faction members lists in XmlMobFactions.cs, for example the UndeadGroup has these members

CODE
private static Type[] UndeadMembers = new Type[] { typeof( AncientLich ), typeof( Bogle ), typeof( BoneMagi ), typeof( Lich ), typeof( LichLord ), typeof( Shade ), typeof( Spectre ), typeof( Wraith ), typeof( BoneKnight ), typeof( Ghoul ),
typeof( Mummy ), typeof( SkeletalKnight ), typeof( Skeleton ), typeof( Zombie ), typeof(Succubus),
typeof( SkeletalMage), typeof( RottingCorpse ), /* CUSTOM MOB */ typeof( Sphynx )
};

It is also possible to put any mob into a faction group by tagging them with the XmlDynamicFaction attachment.
This can be used to assign faction on the fly. For example, you could spawn a special creature into the undead faction that wasnt in the hardcoded undead list, with a spawner entry like
orclord/name/Undead orc master/ATTACH/xmldynamicfaction,Undead
The third possibility is that you didnt perform the required xmlspawner installation steps, in particular step 2 is required to register creature kills with the attachment system.

QUOTE
STEP 1: Install the latest XmlSpawner2 package (must be at least version 2.67. You can find it here). Make sure that you perform installation steps 2 and 6, and optionally step 9, from that thread. If you decide not to perform step 9, everything in the system will work except for the XmlFactionEquip attachment.

sticky- 09-26-2007
ok i got all that already but i cant figure out what im supposed to be killing.I get results when i kill players .But when i try to kill the monsters to gain standings with them it dont gain anything.
ArteGordon- 09-27-2007
have you done this

QUOTE
STEP 2: (recommended but not required) -------------------------------------- To take advantage of the XmlQuest killtask keywords KILL and KILLNAMED, one line must be added to the OnDeath method in BaseCreature.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 do anything)
around line 4172 of basecreature.cs change
Titles.AwardKarma( ds.m_Mobile, totalKarma, true );
to
Titles.AwardKarma( ds.m_Mobile, totalKarma, true );
// modification to support XmlQuest Killtasks
XmlQuest.RegisterKill( this, ds.m_Mobile);