[Question] Event on quest pick up menu

User Tag List

Results 1 to 7 of 7
  1. #1
    ilikepiehehe's Avatar Sergeant
    Reputation
    1
    Join Date
    Feb 2013
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Event on quest pick up

    Hey Ownedcore!

    So I want to make this event that will involve Thrall and Vol'jin Walking around Orgrimmar and telling a story to the Person who picked up the quest. So what i'm wondering is does anyone have a example of a event they have made that involves moving and talking on quest pickup (if so i would love if u could link it!). I would also like to know how to make a quest be completed after listening to the full story.

    Thanks, Looking Forward to Responses.

    [Question] Event on quest pick up
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Code:
    :FinishQuest(Id) : Forces the Unit to finish quest ID. Rewards are not given.
    :HasQuest(Id) : Returns true if the Unit has the quest, returns false otherwise.
    :MarkQuestObjectiveAsComplete(QuestID, Objective) : Marks the objective of questid as completed.
    You will need these three functions, and this hook:

    Code:
    QUEST_EVENT_ON_ACCEPT				= 1    --(pPlayer, QuestId)
    Sources:

    List of All Events - ArcEmu-Wiki
    Unit Commands - ArcEmu-Wiki

  3. #3
    ilikepiehehe's Avatar Sergeant
    Reputation
    1
    Join Date
    Feb 2013
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Code:
    :FinishQuest(Id) : Forces the Unit to finish quest ID. Rewards are not given.
    :HasQuest(Id) : Returns true if the Unit has the quest, returns false otherwise.
    :MarkQuestObjectiveAsComplete(QuestID, Objective) : Marks the objective of questid as completed.
    You will need these three functions, and this hook:

    Code:
    QUEST_EVENT_ON_ACCEPT				= 1    --(pPlayer, QuestId)
    Sources:

    List of All Events - ArcEmu-Wiki
    Unit Commands - ArcEmu-Wiki
    Could u possibly give me a example of that used in a script so i can better understand it?

  4. #4
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ilikepiehehe View Post
    Could u possibly give me a example of that used in a script so i can better understand it?
    Code:
    function OnQuestAccept(event, pPlayer, questId, pQuestGiver)
    	if (questId == 5) then
    		pQuestGiver:SendChatMessage(12,0,"Moo.")
    	elseif (questId == 6) then
    		pPlayer:SetPhase(2)
            end
    end
    
    RegisterServerHook(14, "OnQuestAccept")
    And:

    Code:
    function DREADMAUL_CHECKSPAWN(pUnit,Event)
    	pUnit:RegisterEvent("DREADMAUL_CHECKPLR", 1000, 0)
    end
    
    function DREADMAUL_CHECKPLR(pUnit)
    	local player = pUnit:GetClosestPlayer()
    	if player and pUnit:GetDistanceYards(player) < 10 and player:HasQuest(10) and (player:GetQuestObjectiveCompletion(10, 0) == 0) then
    		player:AdvanceQuestObjective(10, 0)
    	end
    end
    
    RegisterUnitEvent(33742, 18, "DREADMAUL_CHECKSPAWN")
    Last edited by stoneharry; 04-17-2013 at 03:45 PM.

  5. #5
    ilikepiehehe's Avatar Sergeant
    Reputation
    1
    Join Date
    Feb 2013
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So I would like him to do a RP when he picks up the quest how would i do that?

  6. #6
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ilikepiehehe View Post
    So I would like him to do a RP when he picks up the quest how would i do that?
    Programming is very much problem solving. I've given you some links and examples. Try to use those resources to achieve what you want.

  7. #7
    ilikepiehehe's Avatar Sergeant
    Reputation
    1
    Join Date
    Feb 2013
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your right i acaully figured it out soon after you posted it i should have removed my question. Thanks again for the help Harry

Similar Threads

  1. [Lua Script] Question about LUA quest
    By Laenoar in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 07-21-2012, 09:47 AM
  2. [Question]GameObject and Quests
    By berserk85 in forum WoW Memory Editing
    Replies: 3
    Last Post: 10-19-2009, 03:02 PM
  3. question about the quests.
    By Hjustin2 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 10-02-2009, 08:12 AM
  4. [Question] Talent Start Quest!
    By Hyldran0 in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 02-14-2009, 04:15 AM
  5. [Question]Death Knight Quest Problems
    By Adulese in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 11-30-2008, 12:02 AM
All times are GMT -5. The time now is 11:42 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search