Small Quest Script menu

User Tag List

Results 1 to 2 of 2
  1. #1
    BanzBoyz77's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2010
    Posts
    258
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Small Quest Script

    Hey guys, I have seen a lot of guides on scripting quests but this may stump you. I'm making quests more interactive by making the player emotes part of quest requirements. How would I script a quest so that the requirement is the do /cheer and your quest is done. I don't even know if u need a script for that part but this is where I'm sure you do. I want is so that when I complete the quest using /cheer, a npc appears for like 2 mins and then disappears. Since the npc will be the person that will complete your quest I need him to appear when you do /cheer. Is there anyway to do that?
    Last edited by stoneharry; 01-29-2011 at 02:08 PM. Reason: prefix

    Small Quest Script
  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)
    SERVER_HOOK_EMOTE = 8 --(event, pPlayer, pUnit, EmoteId)

    Code:
    function On_Emote_WorldHook(event, pPlayer, pUnit, EmoteId)
    	if EmoteId == 1 then -- The PLAYER emoteId for cheer, player and NPC emotes are different
    		if pPlayer:HasQuest(1) then -- The ID of the quest
    			pPlayer:SpawnCreature(1, pPlayer:GetX(), pPlayer:GetY(), pPlayer:GetZ(), pPlayer:GetO(), 35, 120000) -- Spawn npcid 1 at players position as friendly for 120 seconds (2mins)
    		end
    	end
    end
    
    RegisterServerHook(8, "On_Emote_WorldHook")
    Bear in mind if you do this you will need to write a way to stop the player spamming the emote with a macro to spawn X npc's and crash the server.

    Edited your title to add a prefix. I don't know if you want a Lua script, a C++ script etc so it's not very helpful the information you have provided.

Similar Threads

  1. ReBot quest scripting question
    By Alex149 in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 03-18-2015, 08:01 AM
  2. [Lua Script] Quest Script Not Sure How to Code It
    By BanzBoyz77 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 12-28-2010, 07:20 AM
  3. Quest Script Issue!
    By Eleky in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-14-2009, 07:10 AM
  4. [Lua / C++] Quest Script
    By zsolt333 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 02-21-2009, 06:42 AM
  5. Small PvP Script
    By warxhead in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 02-27-2008, 08:36 PM
All times are GMT -5. The time now is 05:23 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