LUA quests help menu

User Tag List

Results 1 to 10 of 10
  1. #1
    myil's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA quests help

    Hi everyone. I was trying to script a LUA that would make a game object(portal) activate when a specific quest is completed. Does anyone know how to make a script like that?

    LUA quests help
  2. #2
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function QuestPortal_OnUse(Unit, Event, player)
       if player:HasFinishedQuest(QUESTID)== true then
         player:Teleport(mapid, x, y, z)
       else
          player:SendBroadcastMessage("Before you can use the portal you need to finish the quest:'QUESTNAME'.")
       end
    end
    
    RegisterGameObjectEvent(GAMOBJECTID, 4, "QuestPortal_OnUse")
    You only need to insert your QUESTID and the GO ID.

  3. #3
    myil's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot =)
    how bout if i want to make game object spawn when you except quest.

  4. #4
    thebigman's Avatar Contributor Reliable Trader
    CoreCoins Purchaser
    Reputation
    89
    Join Date
    Dec 2008
    Posts
    605
    Thanks G/R
    2/0
    Trade Feedback
    26 (96%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    then edit this line
    player:HasFinishedQuest(QUESTID)== true then

    has quest i think
    player:HasQuest(QUESTID)== true then

  5. #5
    myil's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    uhh how come when i press on the portal it casts that World of Recall(OLD) thing and it doesn't do anything afterwards?

  6. #6
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any error in the world.exe? If not try this:

    Code:
    function QuestPortal_OnUse(pUnit, Event, player)
       if player:HasFinishedQuest(QUESTID)== true then
         player:Teleport(mapid, x, y, z)
       else
          player:SendBroadcastMessage("Before you can use the portal you need to finish the quest:'QUESTNAME'.")
       end
    end
    
    RegisterGameObjectEvent(GAMOBJECTID, 2, "QuestPortal_OnUse")


    Try to change the 4 to a 2....

    If this doesnt work i could make it as a npc (the npc would like look a portal)
    Last edited by Kaidos; 08-13-2009 at 12:48 PM.

  7. #7
    thebigman's Avatar Contributor Reliable Trader
    CoreCoins Purchaser
    Reputation
    89
    Join Date
    Dec 2008
    Posts
    605
    Thanks G/R
    2/0
    Trade Feedback
    26 (96%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol why did you say 4 the first time? go back and edit it.

  8. #8
    myil's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    still doesn't work

  9. #9
    myil's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what's up with the World Recall spell anyways?

  10. #10
    Ascelyn's Avatar Member
    Reputation
    22
    Join Date
    Jul 2009
    Posts
    129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most likely your gameobject isnt registered with a spell >_> Gogo to Database.. it's easier to edit it through the DB Tho you wont have as much possibilitys you have with LUA

Similar Threads

  1. Lua script help and general questions from beginner
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-23-2008, 04:38 AM
  2. [Release] Goldensun City+instance+lua+quests+items
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 61
    Last Post: 02-08-2008, 08:40 PM
  3. Need LUA Scripting Help ?
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-04-2008, 12:36 PM
  4. help .lua portal help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 01-24-2008, 03:21 PM
  5. Daily Quest HELP! 4 u!
    By greendude111 in forum World of Warcraft Guides
    Replies: 7
    Last Post: 11-21-2007, 06:07 AM
All times are GMT -5. The time now is 07:10 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