104 lines
3.1 KiB
C#
104 lines
3.1 KiB
C#
using System;
|
||
using Server.Items;
|
||
using Server.Mobiles;
|
||
|
||
namespace Server.Engines.Quests
|
||
{
|
||
public class ATangledWeb : BaseQuest
|
||
{
|
||
public ATangledWeb()
|
||
: base()
|
||
{
|
||
this.AddObjective(new BloodCreaturesObjective(typeof(IBloodCreature), "blood creatures", 12));
|
||
|
||
this.AddReward(new BaseReward(typeof(LargeTreasureBag), 1072706));
|
||
}
|
||
|
||
/*A Tangled Web*/
|
||
public override object Title
|
||
{
|
||
get
|
||
{
|
||
return 1095032;
|
||
}
|
||
}
|
||
/*Kill Bloodworms and Blood Elementals to fill Jaacar's barrel.
|
||
Return to Jaacar with the filled barrel for your reward
|
||
Will friend help Jaacar with small errand for big friend?
|
||
Jaacar need big barrel full of blood. Can friend do that?
|
||
Best place to get blood is blood elementals and bloodworms nearby.
|
||
If you do, Jaacar give to you special present! More special than favorite recipe!*/
|
||
public override object Description
|
||
{
|
||
get
|
||
{
|
||
return 1095034;
|
||
}
|
||
}
|
||
/*Filling barrel not gross! Filling barrel helps friend! You think and then come back and help. Yes, friend is big help!*/
|
||
public override object Refuse
|
||
{
|
||
get
|
||
{
|
||
return 1095035;
|
||
}
|
||
}
|
||
/*Jaacar need barrel filled all the way to the top! Good friend, go fill the barrel for Jaacar.*/
|
||
public override object Uncomplete
|
||
{
|
||
get
|
||
{
|
||
return 1095036;
|
||
}
|
||
}
|
||
public override void OnCompleted()
|
||
{
|
||
this.Owner.SendLocalizedMessage(1095038, null, 0x23); // Jaacar's barrel is completely full. Return to Jaacar for your reward.
|
||
this.Owner.PlaySound(this.CompleteSound);
|
||
}
|
||
|
||
public override void Serialize(GenericWriter writer)
|
||
{
|
||
base.Serialize(writer);
|
||
|
||
writer.Write((int)0); // version
|
||
}
|
||
|
||
public override void Deserialize(GenericReader reader)
|
||
{
|
||
base.Deserialize(reader);
|
||
|
||
int version = reader.ReadInt();
|
||
}
|
||
|
||
private class BloodCreaturesObjective : SlayObjective
|
||
{
|
||
public BloodCreaturesObjective(Type creature, string name, int amount)
|
||
: base(creature, name, amount)
|
||
{
|
||
}
|
||
|
||
public override void OnKill(Mobile killed)
|
||
{
|
||
base.OnKill(killed);
|
||
|
||
if (!this.Completed)
|
||
this.Quest.Owner.SendLocalizedMessage(1095037); // Blood from the creature goes into Jaacar<61>s barrel.
|
||
}
|
||
|
||
public override void Serialize(GenericWriter writer)
|
||
{
|
||
base.Serialize(writer);
|
||
|
||
writer.Write((int)0); // version
|
||
}
|
||
|
||
public override void Deserialize(GenericReader reader)
|
||
{
|
||
base.Deserialize(reader);
|
||
|
||
int version = reader.ReadInt();
|
||
}
|
||
}
|
||
}
|
||
} |