Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 10 of 10
  1. #1
    Scout

    Join Date
    Oct 2009
    Posts
    12
    Post Thanks / Like
    Rep Power
    16
    Reputation
    7

    Smile [Lua]Kerp's and Wolferine's Sample Escort Quest


    Register to remove this ad
    Code:
    --[[ 
    This sample escort quest is scripted by Wolferine and Kerp.
    Do not claim this to be yours.
    Do not re-release without my permission.
    Do not remove these credits.
    ]]
    
    local NPC_ID = Npc ID here
    local QUEST_ID = Quest ID here
    local NPC_ID2 = Npc ID Spawn 2
    local NPC_ID3 = Npc ID Spawn 3
    local NPC_ID4 = NPC ID Spawn 4
    
    
    function OnQuestAccept(event, pPlayer, pQuestGiver, questId)
       if(pQuestGiver == NPC_ID) and (questId == QUEST_ID) then
       pUnit:SendChatMessage(12, 0, "We better be going else they will notice I left!")
       pUnit:RegisterEvent("Escort_Move", 1000, 1)
        end
    end
    
    function Escort_Move(pUnit, Event)
       pUnit:GetX()
       pUnit:GetY()
       pUnit:GetZ()
       pUnit:MoveTo(0, x+10, y, z)
       pUnit:RegisterEvent("Escort_Move2", 5000, 1)
    end
    
    function Escort_Move2(pUnit, Event)
       pUnit:GetX()
       pUnit:GetY()
       pUnit:GetZ()
       pUnit:MoveTo(0, x+10, y, z)
       pUnit:RegisterEvent("Escort_Move3", 10000, 1)
    end
    
    function Escort_Move3(pUnit, Event)
       pUnit:SendChatMessage(12, 0, "I really need to catch breath...")
       pUnit:RegisterEvent("Escort_Spawn", 5000, 1)
    end
    
    function Escort_Spawn(pUnit, Event)
       pUnit:SendChatMessage(12, 0, "Watch out!")
       pUnit:GetX()
       pUnit:GetY()
       pUnit:GetZ()
       pUnit:SpawnCreature(NPC_ID2, x+5, z+5, y, 0)
       pUnit:SpawnCreature(NPC_ID3, x+10, z+5, y, 0)
       pUnit:SpawnCreature(NPC_ID4, x+7, z+7, y, 0)
       pUnit:RegisterEvent("Escort_Move4", 40000, 1)
    end
    
    function Escort_Move4(pUnit, Event)
       pUnit:SendChatMessage(12, 0, "Phew, that was close.")
       pUnit:GetX()
       pUnit:GetY()
       pUnit:GetZ()
       pUnit:MoveTo(1, x+10, z, y, 0)
       pUnit:RegisterEvent("Escort_Complete", 10000, 1)
    end
    
    function Escort_Complete(pUnit, Event)
       pUnit:SendChatMessage(12, 0, "Thanks for helping me man!")
       player:QuestComplete(QUEST_ID)
       pUnit:Despawn()
    end
    
    RegisterServerHook(14, "OnQuestAccept")
    This is scripted as a sample for further use by Lua scripters.

    This scripts will trigger with an additional server hook( added in LuaHypArc) if you accept the quest the npc will begin to move.
    Do notice this will not work without LuaHypArc.
    If you have any questions about the script, add my msn, [email protected]
    Feel free to add me for just a chat also.




    › See More: [Lua]Kerp's and Wolferine's Sample Escort Quest



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Elite Member
    Dimman's Avatar
    Join Date
    Apr 2009
    Posts
    1,091
    Post Thanks / Like
    Rep Power
    21
    Reputation
    319
    1. try to use normal words not "phew" ... etc..etc
    2. "Thanks for helping me man!"... what if it is a female ? ...
    3. Goodluck and keep up the good work

    Regards, Dimman (axel)
    Last edited by Dimman; 15-11-09 at 02:30 PM.
    No touching please.

  4. #3
    Scout

    Join Date
    Oct 2009
    Posts
    12
    Post Thanks / Like
    Rep Power
    16
    Reputation
    7
    It's a sample script, read for once.

  5. #4
    Elite Member
    Dimman's Avatar
    Join Date
    Apr 2009
    Posts
    1,091
    Post Thanks / Like
    Rep Power
    21
    Reputation
    319
    Quote Originally Posted by Wolferine View Post
    It's a sample script, read for once.
    But if you are making more scripts just think about what i said, people will like it more
    No touching please.

  6. #5
    Contributor
    StickyIcky's Avatar
    Join Date
    Jul 2008
    Location
    127.0.0.1
    Posts
    747
    Post Thanks / Like
    Rep Power
    19
    Reputation
    188
    x3, nice job

  7. #6
    Contributor
    enegue's Avatar
    Join Date
    Aug 2008
    Location
    Before God
    Posts
    715
    Post Thanks / Like
    Rep Power
    18
    Reputation
    106
    Bah, Dinman said what I wanted to..
    me if I have helped you in anyway ^^ Example: Sharing a repack, answering questions... Well you know the rest xD. As long as I help you!

  8. #7
    Scout

    Join Date
    Oct 2009
    Posts
    12
    Post Thanks / Like
    Rep Power
    16
    Reputation
    7
    Thanks for your comments =)

  9. #8
    Contributor
    enegue's Avatar
    Join Date
    Aug 2008
    Location
    Before God
    Posts
    715
    Post Thanks / Like
    Rep Power
    18
    Reputation
    106
    Improve it a bit more and release a 2nd version
    me if I have helped you in anyway ^^ Example: Sharing a repack, answering questions... Well you know the rest xD. As long as I help you!

  10. #9
    Scout

    Join Date
    Oct 2009
    Posts
    12
    Post Thanks / Like
    Rep Power
    16
    Reputation
    7
    I'll if I have time.

  11. #10
    Contributor
    enegue's Avatar
    Join Date
    Aug 2008
    Location
    Before God
    Posts
    715
    Post Thanks / Like
    Rep Power
    18
    Reputation
    106

    Register to remove this ad
    Buy more time x)
    me if I have helped you in anyway ^^ Example: Sharing a repack, answering questions... Well you know the rest xD. As long as I help you!

 

 

Visitors found this page by searching for:

arcemu escort quest

escort quest lua arcemu

trinity escort quest

trinitycore escort sample

arcemu lua escort quest

arcemu escort quest sample

quest lua sample

arcemu lua escort

SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 07:04 PM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org