Пример #1
0
    public async Task <HookResult> TalkNpc(NpcScript npc, params object[] args)
    {
        if (npc.QuestActive(this.Id, "talk_endelyon"))
        {
            npc.FinishQuest(this.Id, "talk_endelyon");

            npc.Msg("Ah, you're here.<br/>May the blessings of Lymilark be with you in every step of the way. There are some people who think it to be difficult.<br/>Just hold on to the instrument, and you'll be able to play a semblance of music.<br/>Of course, it requires hours of practice if you plan on bringing tears to your special someone.", npc.Button("End Conversation", "@end"));
            await npc.Select();

            npc.AcquireItem(40004);             // Lute
            npc.End();

            return(HookResult.End);
        }

        return(HookResult.Continue);
    }
Пример #2
0
	public async Task<HookResult> TalkNpc(NpcScript npc, params object[] args)
	{
		if (npc.QuestActive(this.Id, "talk_endelyon"))
		{
			npc.FinishQuest(this.Id, "talk_endelyon");

			npc.Msg("Ah, you're here.<br/>May the blessings of Lymilark be with you in every step of the way. There are some people who think it to be difficult.<br/>Just hold on to the instrument, and you'll be able to play a semblance of music.<br/>Of course, it requires hours of practice if you plan on bringing tears to your special someone.<button title='End Conversatin' keyword='@end'/>");
			await npc.Select();

			npc.AcquireItem(40004); // Lute
			npc.End();

			return HookResult.End;
		}

		return HookResult.Continue;
	}
	public async Task<HookResult> AfterIntro(NpcScript npc, params object[] args)
	{
		if (npc.QuestActive(this.Id, "talk"))
		{
			npc.FinishQuest(this.Id, "talk");

			npc.AcquireItem(40022); // Gathering Axe
			npc.Msg("(Missing dialog: Explanation on getting firewood");

			return HookResult.Break;
		}
		else if (npc.QuestActive(this.Id, "deliver") && npc.HasItem(63002, 6))
		{
			npc.FinishQuest(this.Id, "deliver");

			npc.RemoveItem(63002, 6);
			npc.Msg("(Missing dialog: Appreciation for getting firewood");

			return HookResult.Break;
		}

		return HookResult.Continue;
	}
Пример #4
0
    public async Task <HookResult> AfterIntro(NpcScript npc, params object[] args)
    {
        if (npc.QuestActive(this.Id, "talk"))
        {
            npc.FinishQuest(this.Id, "talk");

            npc.AcquireItem(40022);             // Gathering Axe
            npc.Msg("(Missing dialog: Explanation on getting firewood");

            return(HookResult.Break);
        }
        else if (npc.QuestActive(this.Id, "deliver") && npc.HasItem(63002, 6))
        {
            npc.FinishQuest(this.Id, "deliver");

            npc.RemoveItem(63002, 6);
            npc.Msg("(Missing dialog: Appreciation for getting firewood");

            return(HookResult.Break);
        }

        return(HookResult.Continue);
    }