Пример #1
0
    public async Task <HookResult> ElenKeywords(NpcScript npc, params object[] args)
    {
        var keyword = args[0] as string;

        if (keyword != "about_skill" || npc.Player.HasSkill(SkillId.Refining))
        {
            return(HookResult.Continue);
        }

        if (!npc.Player.QuestActive(this.Id))
        {
            npc.Msg("Did my grandpa send you over this way?<br/>Hehe.... Oh, nothing.<br/>Here, take this...");
            npc.Msg("Are you interested in refining by any chance?<br/>Refining is the first step in becoming a blacksmith...");
            npc.Msg("You can use ore in its raw form.<br/>You have to melt it to extract the pure metal from it.<br/>You can simply assume that you can use the ore as it is.");
            npc.Msg("We've been looking for more ore anyway,<br/>so why don't you go to Barri Dungeon and mine some ore for us?<br/>Bring some ore and I'll teach you how to refine metal. Tee hee...<br/>Of course, if you are going to mine, you will need at least a pickaxe.");
            await npc.Select();

            npc.Player.StartQuest(this.Id);
            npc.Close();
        }
        else
        {
            npc.Msg("Did you forget what I asked you?");
            npc.Msg("You can find ore inside Barri Dungeon over there.<br/>Of course, you can't mine with bare hands. You will need a pickaxe for that.");
        }

        return(HookResult.End);
    }
Пример #2
0
    public async Task <HookResult> KeywordsHook(NpcScript npc, params object[] args)
    {
        var keyword = args[0] as string;

        if (keyword != "about_skill" || npc.HasSkill(SkillId.Weaving))
        {
            return(HookResult.Continue);
        }

        if (!npc.QuestActive(this.Id))
        {
            npc.Msg("Have you heard of the Weaving skill?<br/>It is a skill of spinning yarn from natural materials and making fabric.");
            npc.Msg("Do you want to learn the Weaving skill?<br/>Actually, I'm out of thick yarn and can't meet all the orders for fabric...<br/>If you get me some wool, I'll teach you the Weaving skill in return.<br/>An owl will deliver you a note on how to find wool if you wait outside.");
            await npc.Select();

            npc.StartQuest(this.Id);
            npc.Close();
        }
        else
        {
            // Unofficial
            npc.Msg("If you get me some wool, I'll teach you the Weaving skill in return.");
        }

        return(HookResult.End);
    }
Пример #3
0
	public async Task<HookResult> ElenKeywords(NpcScript npc, params object[] args)
	{
		var keyword = args[0] as string;

		if (keyword != "about_skill" || npc.HasSkill(SkillId.Refining))
			return HookResult.Continue;

		if (!npc.QuestActive(this.Id))
		{
			npc.Msg("Did my grandpa send you over this way?<br/>Hehe.... Oh, nothing.<br/>Here, take this...");
			npc.Msg("Are you interested in refining by any chance?<br/>Refining is the first step in becoming a blacksmith...");
			npc.Msg("You can use ore in its raw form.<br/>You have to melt it to extract the pure metal from it.<br/>You can simply assume that you can use the ore as it is.");
			npc.Msg("We've been looking for more ore anyway,<br/>so why don't you go to Barri Dungeon and mine some ore for us?<br/>Bring some ore and I'll teach you how to refine metal. Tee hee...<br/>Of course, if you are going to mine, you will need at least a pickaxe.");
			await npc.Select();
			npc.StartQuest(this.Id);
			npc.Close();
	}
		else
		{
			npc.Msg("Did you forget what I asked you?");
			npc.Msg("You can find ore inside Barri Dungeon over there.<br/>Of course, you can't mine with bare hands. You will need a pickaxe for that.");
		}

		return HookResult.End;
	}
Пример #4
0
	public async Task<HookResult> RanaldKeywords(NpcScript npc, params object[] args)
	{
		var keyword = args[0] as string;
		
		if(keyword == "about_skill" && npc.HasSkill(SkillId.Defense) && !npc.HasSkill(SkillId.Windmill))
		{
			// Unofficial
			npc.Msg("You would like to learn more? That's the attitude!");
			npc.Msg("Unfortunately I'm a little busy right now, I've borrowed an armor from Ferghus that I have to get back to him. Unless...");
			npc.Msg("Could you deliver it to him for me? Afterwards I'll give you help with the Windmill skill.<button title='End Conversation' keyword='@end'/>");
			await npc.Select();
			npc.StartQuest(this.Id);
			//npc.GiveItem(70002); // Full Ring Mail to be Delivered (TODO: implement quest item handling)
			npc.Close();
			
			return HookResult.End;
		}
		
		return HookResult.Continue;
	}
Пример #5
0
    public async Task <HookResult> RanaldKeywords(NpcScript npc, params object[] args)
    {
        var keyword = args[0] as string;

        if (keyword == "about_skill" && npc.HasSkill(SkillId.Defense) && !npc.HasSkill(SkillId.Windmill))
        {
            // Unofficial
            npc.Msg("You would like to learn more? That's the attitude!");
            npc.Msg("Unfortunately I'm a little busy right now, I've borrowed an armor from Ferghus that I have to get back to him. Unless...");
            npc.Msg("Could you deliver it to him for me? Afterwards I'll give you help with the Windmill skill.<button title='End Conversation' keyword='@end'/>");
            await npc.Select();

            npc.StartQuest(this.Id);
            //npc.GiveItem(70002); // Full Ring Mail to be Delivered (TODO: implement quest item handling)
            npc.Close();

            return(HookResult.End);
        }

        return(HookResult.Continue);
    }
Пример #6
0
	public async Task<HookResult> KeywordsHook(NpcScript npc, params object[] args)
	{
		var keyword = args[0] as string;

		if (keyword != "about_skill" || npc.HasSkill(SkillId.Weaving))
			return HookResult.Continue;

		if (!npc.QuestActive(this.Id))
		{
			npc.Msg("Have you heard of the Weaving skill?<br/>It is a skill of spinning yarn from natural materials and making fabric.");
			npc.Msg("Do you want to learn the Weaving skill?<br/>Actually, I'm out of thick yarn and can't meet all the orders for fabric...<br/>If you get me some wool, I'll teach you the Weaving skill in return.<br/>An owl will deliver you a note on how to find wool if you wait outside.");
			await npc.Select();
			npc.StartQuest(this.Id);
			npc.Close();
		}
		else
		{
			// Unofficial
			npc.Msg("If you get me some wool, I'll teach you the Weaving skill in return.");
		}

		return HookResult.End;
	}