Moderators: Project Admin, Support Team, Database Team, Website Team, Storm Team
dragonfire wrote:I can add them if you want but the turn in quest will probably need to be rewritten in order to allow some classes the choice between slash and thrust.
public override bool ReceiveItem(GameLiving source, GameLiving target, InventoryItem item)
{
if (base.ReceiveItem(source, target, item))
return true;
GamePlayer player = source as GamePlayer;
Scholar scholar = target as Scholar;
if (player == null || scholar == null)
return false;
if (Step == 2 && ArtifactMgr.GetArtifactID(item.Name) == ArtifactID)
{
scholar.TurnTo(player);
if (RemoveItem(player, item))
{
Dictionary<String, ItemTemplate> versions = ArtifactMgr.GetArtifactVersions(ArtifactID, (eCharacterClass)player.CharacterClass.ID, (eRealm)player.Realm);
String reply = "";
if (versions.Count > 1)
{
reply = "Great! ";
DisplayStep3(scholar, player, reply);
Step = 3;
return true;
}
else
{
reply = String.Format("The magic of Eirene's Chestpiece is unlocked {0} {1}. {2} {3} {4} {5}, {1}!",
"and linked now to you,", player.CharacterClass.Name,
"Please know that if you lose or destroy this Chestpiece, it will be gone",
"from you forever. I hope it will help you succeed in the trials.",
"Bring glory to", GlobalConstants.RealmToName(player.Realm));
Dictionary<String, ItemTemplate>.Enumerator venum = versions.GetEnumerator();
venum.MoveNext();
if (GiveItem(scholar, player, ArtifactID, venum.Current.Value))
{
scholar.TurnTo(player);
scholar.SayTo(player, eChatLoc.CL_PopupWindow, reply);
FinishQuest();
return true;
}
}
}
}
return false;
}
Users browsing this forum: No registered users and 1 guest