Having a Quest port you on completion menu

User Tag List

Results 1 to 12 of 12
  1. #1
    ddftrick's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having a Quest port you on completion

    Been trying for a while now to get a quest to port someone. Once someone turns in the quest I want it to port them to a location by the completion of the quest itself.

    Been trying to do this through SQLyog. Is it possible to set it up through SQL, and if not what LUA script would work?

    Also the quest is already saved into the server, so if I were to use LUA how would I attach it to the already existing quest. Kind of a noob with LUA script.

    Having a Quest port you on completion
  2. #2
    metehan's Avatar Banned
    Reputation
    19
    Join Date
    Feb 2008
    Posts
    317
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ddftrick View Post
    Been trying for a while now to get a quest to port someone. Once someone turns in the quest I want it to port them to a location by the completion of the quest itself.

    Been trying to do this through SQLyog. Is it possible to set it up through SQL, and if not what LUA script would work?

    Also the quest is already saved into the server, so if I were to use LUA how would I attach it to the already existing quest. Kind of a noob with LUA script.
    You could have the quest give you an item that ports you..

  3. #3
    ddftrick's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I did think of that option, but I don't know how to create such an item. All I got to work with atm is making custom equip items through WoW-V. If I have to, that would be a solution once I learn how to make a wannabe hearthstone like that, but I really want the quest itself to port the player. It helps advance the storyline of the quest because of the context of it.

  4. #4
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    example(filler)
    function Example_Quest_onComplete (pUnit, Event)
    pUnit:Teleport (map, x, y, z, 1)
    end

    --RegisterQuestEvent(12345, 1, "Example_OnQuestComplete")


  5. #5
    ddftrick's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the code, but I cant seem to get it to work. I saved it to the Scripts folder as "quest_port.lua"

    This is what I wrote inside the file

    function Example_Quest_onComplete (pUnit, Event)
    pUnit:Teleport (530, 9352.232422, -7278.253418, 14.239447, 1)
    end

    --RegisterQuestEvent(11217, 1, "Example_OnQuestComplete")

    Did I miss a step? I don't have much exp with LUA yet.

  6. #6
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    start up your ascent and see if it works, then you will know


  7. #7
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1192
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you have lua enabled as well?

    In aascent-world.conf

    <ScriptBackends LUA="1"
    AS="1">
    it should look liek that, if no change the 0 to 1
    If you need me you have my skype, if you don't have my skype then you don't need me.

  8. #8
    ddftrick's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by doublehex View Post
    start up your ascent and see if it works, then you will know
    No, I mean I already did that and it didn't work when I completed the quest. Did I code it wrong, miss a step, or is there something I need to do first to allow custome LUA scripts to run in my server. BTW already +Rep for the help :P

  9. #9
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    --RegisterQuestEvent(11217, 1, "Example_OnQuestComplete")
    remove the "--", because that quotes the important part out

  10. #10
    ddftrick's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Le Froid View Post
    --RegisterQuestEvent(11217, 1, "Example_OnQuestComplete")
    remove the "--", because that quotes the important part out
    Ok, I took out the -- but now I get this message on the ascent server

    "Tried to call invalid LUA function 'Example_OnQuestComplete' from Ascent <Quest> !

  11. #11
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ohh..i see problem. copy paste this
    Code:
     
    function Quest_onComplete (pUnit, Event)
    pUnit:Teleport (530, 9352.232422, -7278.253418, 14.239447, 1)
    end
     
    RegisterQuestEvent(11217, 1, "Quest_onComplete")

  12. #12
    ddftrick's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Le Froid View Post
    Ohh..i see problem. copy paste this
    Code:
     
    function Quest_onComplete (pUnit, Event)
    pUnit:Teleport (530, 9352.232422, -7278.253418, 14.239447, 1)
    end
     
    RegisterQuestEvent(11217, 1, "Quest_onComplete")
    Absolutely perfect. Thanks all of you!!!

    +Rep for everyone that helped.

Similar Threads

  1. Having multiple Quest NPCs help you is back.
    By KlausHansen in forum World of Warcraft Exploits
    Replies: 10
    Last Post: 12-30-2012, 03:57 AM
  2. Have Prince Anduin as companion after completing quest
    By deuro in forum World of Warcraft Exploits
    Replies: 0
    Last Post: 09-28-2012, 02:31 PM
  3. I have a game for you....
    By Acespades in forum Community Chat
    Replies: 8
    Last Post: 09-26-2007, 12:07 AM
  4. Anyone have the Macro so you cant leave groups?
    By Liania in forum World of Warcraft General
    Replies: 1
    Last Post: 10-23-2006, 06:40 PM
All times are GMT -5. The time now is 09:16 PM. 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