public static Rectangle2D VolcanoMineBounds = new Rectangle2D(879, 1568, 95, 95);
public static bool OnHarvest(Mobile m, Item tool)
{
if (!(m is PlayerMobile) || m.Map != Map.TerMur)
return false;
PlayerMobile pm = m as PlayerMobile;
if ((pm.ToggleMiningStone || pm.ToggleStoneOnly) && VolcanoMineBounds.Contains(m.Location))
{
object locked = tool;
if (!m.BeginAction(locked))
return false;
m.Animate(AnimationType.Attack, 3);
Timer.DelayCall(Mining.System.OreAndStone.EffectSoundDelay, () =>
{
m.PlaySound(Utility.RandomList(Mining.System.OreAndStone.EffectSounds));
});
Timer.DelayCall(Mining.System.OreAndStone.EffectDelay, () =>
{
TheGreatVolcanoQuest quest = QuestHelper.GetQuest(pm, typeof(TheGreatVolcanoQuest)) as TheGreatVolcanoQuest;
if (quest != null && !quest.Completed && 0.05 > Utility.RandomDouble())
{
if (m.CheckSkill(SkillName.Mining, 90, 100))
{
double chance = Utility.RandomDouble();
if (0.08 > chance)
{
BaseCreature spawn = new VolcanoElemental();
Point3D p = m.Location;
for (int i = 0; i < 10; i++)
{
int x = Utility.RandomMinMax(p.X - 1, p.X + 1);
int y = Utility.RandomMinMax(p.Y - 1, p.Y + 1);
int z = Map.TerMur.GetAverageZ(x, y);
if (Map.TerMur.CanSpawnMobile(x, y, z))
{
p = new Point3D(x, y, z);
break;
}
}
spawn.OnBeforeSpawn(p, Map.TerMur);
spawn.MoveToWorld(p, Map.TerMur);
spawn.OnAfterSpawn();
spawn.Combatant = m;
m.SendLocalizedMessage(1156508); // Uh oh...that doesn't look like a lava rock!
}
else if (0.55 > chance)
{
m.PrivateOverheadMessage(MessageType.Regular, 1154, 1156507, m.NetState); // *You uncover a lava rock and carefully store it for later!*
quest.Update(m);
}
else
m.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1156509); // You loosen some dirt but fail to find anything.
}
else
m.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1156509); // You loosen some dirt but fail to find anything.
}
else
m.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1156509); // You loosen some dirt but fail to find anything.
if (tool is IUsesRemaining)
{
((IUsesRemaining)tool).UsesRemaining--;
if (((IUsesRemaining)tool).UsesRemaining <= 0)
{
m.SendLocalizedMessage(1044038); // You have worn out your tool!
tool.Delete();
}
}
m.EndAction(locked);
});
return true;
}
return false;
}
That does not work if you do not have Mining / Book so it shouldnt be an requirement?View attachment 3243
Did you have your shovel set to just stone? It needs to be set to just stone. Then just move in a little and it works.
TrueUO/Scripts/Quests/Eodon/Valley of One Quest/Quests.cs at c6ec7c36c17b1818b74c5a175f4ab99b68ffbfa5 · TrueUO/TrueUO
https://trueuo.com. Contribute to TrueUO/TrueUO development by creating an account on GitHub.github.comCode:public static Rectangle2D VolcanoMineBounds = new Rectangle2D(879, 1568, 95, 95); public static bool OnHarvest(Mobile m, Item tool) { if (!(m is PlayerMobile) || m.Map != Map.TerMur) return false; PlayerMobile pm = m as PlayerMobile; if ((pm.ToggleMiningStone || pm.ToggleStoneOnly) && VolcanoMineBounds.Contains(m.Location)) { object locked = tool; if (!m.BeginAction(locked)) return false; m.Animate(AnimationType.Attack, 3); Timer.DelayCall(Mining.System.OreAndStone.EffectSoundDelay, () => { m.PlaySound(Utility.RandomList(Mining.System.OreAndStone.EffectSounds)); }); Timer.DelayCall(Mining.System.OreAndStone.EffectDelay, () => { TheGreatVolcanoQuest quest = QuestHelper.GetQuest(pm, typeof(TheGreatVolcanoQuest)) as TheGreatVolcanoQuest; if (quest != null && !quest.Completed && 0.05 > Utility.RandomDouble()) { if (m.CheckSkill(SkillName.Mining, 90, 100)) { double chance = Utility.RandomDouble(); if (0.08 > chance) { BaseCreature spawn = new VolcanoElemental(); Point3D p = m.Location; for (int i = 0; i < 10; i++) { int x = Utility.RandomMinMax(p.X - 1, p.X + 1); int y = Utility.RandomMinMax(p.Y - 1, p.Y + 1); int z = Map.TerMur.GetAverageZ(x, y); if (Map.TerMur.CanSpawnMobile(x, y, z)) { p = new Point3D(x, y, z); break; } } spawn.OnBeforeSpawn(p, Map.TerMur); spawn.MoveToWorld(p, Map.TerMur); spawn.OnAfterSpawn(); spawn.Combatant = m; m.SendLocalizedMessage(1156508); // Uh oh...that doesn't look like a lava rock! } else if (0.55 > chance) { m.PrivateOverheadMessage(MessageType.Regular, 1154, 1156507, m.NetState); // *You uncover a lava rock and carefully store it for later!* quest.Update(m); } else m.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1156509); // You loosen some dirt but fail to find anything. } else m.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1156509); // You loosen some dirt but fail to find anything. } else m.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1156509); // You loosen some dirt but fail to find anything. if (tool is IUsesRemaining) { ((IUsesRemaining)tool).UsesRemaining--; if (((IUsesRemaining)tool).UsesRemaining <= 0) { m.SendLocalizedMessage(1044038); // You have worn out your tool! tool.Delete(); } } m.EndAction(locked); }); return true; } return false; }
It is requuirement bcs that quest line involve a lot of diffrent builds-basicly its designed for a group of people with diffrent characters to cooperate
"Each of the tribes has a very different task for you to perform to earn their trust, however you need not perform the task alone and each subquest can stand alone, being taken by a different character more suited to the task required. The rewards for the tasks are tangible and can be transfered to the character who took the quest from Sir Geoffrey."
You did also say the other day that you have never done this quest before, so all this knowledge comes from.. ? Except the same sources I already quoted.Sorry but uo.com quote
"Each of the tribes has a very different task for you to perform to earn their trust, however you need not perform the task alone and each subquest can stand alone, being taken by a different character more suited to the task required. The rewards for the tasks are tangible and can be transfered to the character who took the quest from Sir Geoffrey."
You will need several shovels for this task, the lavastone is not easy to find. You must mine the rock of the volcano floor in the center, not the sandy passage ways. Volcano elementals hinder your efforts, roaming the area and even being dug up by your efforts. The volcano is also unstable and waves of lava will drive you back to the safety of the sandy areas – though only the very ends of the sandy passages is safe.