QUOTE (BiO_ZeRg @ May 16, 2006 04:20 pm) |
Example on karma and fame GIVE/<questholder/name/Kill Shinobi/notestring/Shinobi debe morir. Buscalo y eliminalo/objective1/KILLNAMED,Shinobi,1/autoreward/true/rewardstring/@bag/ADD/gold,2000/SETONTRIGMOB/ATTACH/xmladdkarma,1000/ATTACH/xmladdfame,1000 And Shinobi i dont now ![]() i was using on the xmlspawner 1 option but the command in the option HELP doesnt work with the spawner or i dont do it correct way |
QUOTE |
- added a new AttachmentString property that works in the same way as the RewardString only for attachments. This allows both reward items and reward attachments to be specified by string in a single quest. |
QUOTE (ArteGordon @ May 16, 2006 04:15 pm) | ||
you would set that up on the spawner for Shinobi and the guards. Do it just like masterhelper.xml, except have Shinobi as your boss, and your guards instead of orcs. |
QUOTE (BiO_ZeRg @ May 16, 2006 04:33 pm) |
what is masterhelper.xml where is? i just download xml 1 2 3 And the karma and fame thing i can make example when you finish the quest on condition #70 ID 70 ifyoukillshinobiandgivetheswordtaked/SETONTRIGMOB/ATTACH/xmladdkarma,1000/ATTACH/xmladdfame,1000 and in the #80 ID 80 ifyourecive//ATTACH/xmladdkarma,1000/ATTACH/xmladdfame,1000/ Takeda will say THank for you help |
QUOTE (BiO_ZeRg @ May 16, 2006 05:09 pm) |
I invant you to enter on my server biozerg.servegame.com 2593 Auto Account if you want to come and see my quest on action ![]() |
QUOTE (BiO_ZeRg @ May 30, 2006 03:11 pm) |
[COLOR=red]invalid type specification: Repeatable [COLOR=blue]I was redoing the quest when i put repatable/false and show me that |
QUOTE (Vladimir @ June 08, 2006 09:28 am) |
How would you give tithingpoints as a quest reward? |
CODE |
using System; using Server; using Server.Items; using Server.Network; using Server.Mobiles; using System.Collections; namespace Server.Engines.XmlSpawner2 { public class XmlAddTithing : XmlAttachment { private int m_DataValue; // default data [CommandProperty( AccessLevel.GameMaster )] public int Value { get{ return m_DataValue; } set { m_DataValue = value; } } // These are the various ways in which the message attachment can be constructed. // These can be called via the [addatt interface, via scripts, via the spawner ATTACH keyword. // Other overloads could be defined to handle other types of arguments // a serial constructor is REQUIRED public XmlAddTithing(ASerial serial) : base(serial) { } [Attachable] public XmlAddTithing( int value) { Value = value; } public override void Serialize( GenericWriter writer ) { base.Serialize(writer); writer.Write( (int) 0 ); // version 0 writer.Write(m_DataValue); } public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); // version 0 m_DataValue = reader.ReadInt(); } public override void OnAttach() { base.OnAttach(); // apply the mod if(AttachedTo is PlayerMobile) { // for players just add it immediately ((Mobile)AttachedTo).TithingPoints += Value; ((Mobile)AttachedTo).SendMessage("Receive {0}",OnIdentify((Mobile)AttachedTo)); // and then remove the attachment Timer.DelayCall(TimeSpan.Zero, new TimerCallback(Delete)); //Delete(); } else if(AttachedTo is Item) { // dont allow item attachments Delete(); } } public override bool HandlesOnKilled { get { return true; } } public override void OnKilled(Mobile killed, Mobile killer ) { base.OnKilled(killed, killer); if(killer == null) return; killer.TithingPoints += Value; killer.SendMessage("Receive {0}",OnIdentify(killer)); } public override string OnIdentify(Mobile from) { return String.Format("{0} TithingPoints", Value); } } } |