[Script Help] Troll Quest Guardian Script menu

User Tag List

Results 1 to 4 of 4
  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)

    [Script Help] Troll Quest Guardian Script

    Hey guys, I recently cooked up a small script to get 2 guardians for the player to fight a boss with. There's 3 problems, they don't spawn with a shield and sword that they are suppose to, they don't respawn if you die, and they don't despawn if you finish the quest. Here's the script,


    function OnQuestAccept(event, pPlayer, questId, pQuestGiver)
    if pPlayer:HasQuest(90001) then
    pPlayer:CreateGuardian(90004, 1000000, 90, 4)
    end
    end

    RegisterServerHook(14, "OnQuestAccept")


    function OnQuestAccept(event, pPlayer, questId, pQuestGiver)
    if pPlayer:HasQuest(90001) then
    pPlayer:CreateGuardian(90004, 1000000, 90, 4)
    end
    end

    RegisterServerHook(14, "OnQuestAccept")

    [Script Help] Troll Quest Guardian 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)
    Here's some tips:

    -Hook a OnQuestFinish hook so that when that quest is complicated, get the nearest NPC with a ID to the player and despawn it.
    -Use :EquipWeapons(left, right, bow), on quest accept then nearest NPC with that ID or on creature spawn.

    If you can't get that to work then I'll give more help, for now, bed.

  3. #3
    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)
    Kk, no luck with this type of scripting yet so do your magic Stoneharry, using your scripts I'm slowly learning what to do. Shortly I won't need your help anymore so I can't wait till that day. Here's the script I cooked up as a result

    function OnQuestAccept(event, pPlayer, questId, pQuestGiver)
    if pPlayer:HasQuest(90001) then
    pPlayer:CreateGuardian(90004, 1000000, 90, 4)
    end
    end

    RegisterServerHook(14, "OnQuestAccept")

    function OnQuestAccept(event, pPlayer, questId, pQuestGiver)
    if pPlayer:HasQuest(90001) then
    pPlayer:CreateGuardian(90004, 1000000, 270, 4)
    end
    end

    RegisterServerHook(14, "OnQuestAccept")

    function OnQuestFinished(event, pPlayer, questId, pQuestGiver)
    if pPlayer:HasFinishedQuest(90001) then
    pPlayer:GetCreatureNearestCoords(player:GetX(), player:GetY(), player:GetZ(), 90004)
    pPlayer:Despawn(1, 0)
    end
    end
    end

    RegisterServerHook(22, "OnQuestFinished")


    function OnQuestAccept(event, pPlayer, questId, pQuestGiver)
    if pPlayer:HasQuest(90001) then
    pPlayer:GetCreatureNearestCoords(player:GetX(), player:GetY(), player:GetZ(), 90004)
    pPlayer:EquipWeapons(42287, 15891, 0)
    end
    end
    end

    RegisterServerHook(14, "OnQuestAccept")

  4. #4
    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)
    Ohai I never replied to here. You should have reminded me.

    *leaves for college*

    I'll do it when I get home. Else poke me.

Similar Threads

  1. [HELP] no quests work help please
    By pooooo132 in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 04-19-2008, 08:11 PM
  2. HELP with quests!
    By metehan in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 03-29-2008, 10:46 AM
  3. [Help] Simple Quest
    By ~ViVo~ in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-19-2008, 07:11 PM
  4. Help with quest (Skymistress Gloaming)
    By Yodwinder in forum World of Warcraft General
    Replies: 1
    Last Post: 03-04-2008, 04:42 PM
  5. Help on Quests
    By friendofdar in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 09-27-2007, 07:30 PM
All times are GMT -5. The time now is 04:35 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