Another Lua script that won't work menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    tyeeeee1's Avatar Member
    Reputation
    6
    Join Date
    Feb 2008
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Another Lua script that won't work

    Well I managed to get the script to recodnize Whitemane but she talks when the player kills the monster for the quest and then again after the player hands in the quest. She should only talk when the player hands it in. Also she won't walk to the location specified. Help is always appreciated.

    Code:
    local Running = false
    function OnQuestComplete_Whitemane90001(event, pPlayer, QuestId, pQuestGiver)
    	if(QuestId == 90001 and not Running) then
    		local Whitemane = pPlayer:GetCreatureNearestCoords(199.408005, 121.653, 134.910004, 90010)
    		if(Whitemane) then
    			Running = true
    			Whitemane:SendChatMessage(12, 7, "Follow me.")
    			Whitemane:RegisterEvent("Move01_Whitemane", 1000, 1)
    		end
    	end
    end
    
    function Move01_Whitemane(pUnit, event)
    	pUnit:MoveTo(201.447388, 52.051525, 128.766281, 4.742254)
    	pUnit:RegisterEvent("Move02_Whitemane", 10000, 1)
    end
    
    function Move02_Whitemane(pUnit, event)
    	pUnit:MoveTo(234.638535, 48.716961, 115.707848, 6.163822)
    	Running = false -- This should be at the end of the script (Whitemane despawned/respawned)
    end
    
    RegisterServerHook(22, "OnQuestComplete_Whitemane90001")
    Edit: Someone managed to fix the bug where whitemane would talk when you kill the mob, the script above has been updated. Whitemane still refuses to walk to the location she should.
    Last edited by tyeeeee1; 03-10-2012 at 11:11 AM.

    Another Lua script that won't work

Similar Threads

  1. [Lua Script] Lua scripts won't work!
    By Leksikon in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 05-17-2011, 05:08 PM
  2. [Lua Script] My first lua script, one phase won't work?
    By Rainyday in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 01-28-2011, 08:32 AM
  3. [RELEASE] Yet another Lua script
    By Zaeran in forum WoW EMU General Releases
    Replies: 8
    Last Post: 12-06-2008, 09:12 PM
  4. [Guide] Another LUA Scripting Guide
    By Bapes in forum WoW EMU Guides & Tutorials
    Replies: 13
    Last Post: 05-08-2008, 05:01 PM
  5. Simple Lua Script , not working need help!
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 12-30-2007, 02:06 PM
All times are GMT -5. The time now is 07:41 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search