Script for spawning npc? +rep for who helps menu

User Tag List

Results 1 to 8 of 8
  1. #1
    lethalllama's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Script for spawning npc? +rep for who helps

    I need a script to spawn
    2 Stormwind City Guards - entry ID (6
    at
    Map: 1
    X: -8679.86
    Y: 143.31
    Z: -36.78

    and spawn
    2 Orgrimmar Grunts (3296)
    at
    Map: 1
    X: -8690.05
    Y: 143.07
    Z: -36.78

    Every 30 seconds

    +rep to whoever gives me this script!!!


    And tell me how to put it in plz xDDD thanks!

    Script for spawning npc? +rep for who helps
  2. #2
    Sabens's Avatar Contributor
    Reputation
    151
    Join Date
    Oct 2006
    Posts
    266
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function SWGuard_Spawn2(Unit, Event)    
        Unit:RegisterEvent("SWGuard_Spawn", 30000, 0)
    end
    
    function SWGuard_Spawn(Unit, Event)
        local faction = 90
        x = Unit:GetX();
        y = Unit:GetY();
        z = Unit:GetZ();
        o = Unit:GetO();
        Unit:SpawnCreature(68, x, y, z, o, faction, 30000)
    end
    Code:
    function OrgGuard_Spawn2(Unit, Event)    
        Unit:RegisterEvent("OrgGuard_Spawn", 30000, 0)
    end
    
    function OrgGuard_Spawn(Unit, Event)
        local faction = 90
        x = Unit:GetX();
        y = Unit:GetY();
        z = Unit:GetZ();
        o = Unit:GetO();
        Unit:SpawnCreature(3296, x, y, z, o, faction, 30000)
    end
    Those are the LUA codes for it. Just copy each code into notepad and save the file as a ".lua" extension. Then put them into your "Scripts" folder in your core.
    Last edited by Sabens; 08-23-2008 at 01:37 AM.


    "They must find it difficult. . . Those who have taken authority as the truth, rather then truth as the authority." -Gerald Massey

  3. #3
    lethalllama's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how would i save it as lua on vista?

  4. #4
    Sabens's Avatar Contributor
    Reputation
    151
    Join Date
    Oct 2006
    Posts
    266
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Go to save as.. Make sure that save as: "all files" is selected, then save the file as something like "Stormwind guard.lua"



    "They must find it difficult. . . Those who have taken authority as the truth, rather then truth as the authority." -Gerald Massey

  5. #5
    lethalllama's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i cant save as all
    lol only rich text format
    text document
    text document MS-DOs format
    unicode text document

  6. #6
    lethalllama's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can u do it, then email them to [email protected]?

  7. #7
    Sabens's Avatar Contributor
    Reputation
    151
    Join Date
    Oct 2006
    Posts
    266
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Last edited by Sabens; 08-23-2008 at 02:34 AM.


    "They must find it difficult. . . Those who have taken authority as the truth, rather then truth as the authority." -Gerald Massey

  8. #8
    lethalllama's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ty man for al lthe help

Similar Threads

  1. .adt file corrupt? (Read in topic, 3 rep for who can help me)
    By T@rget in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 06-03-2009, 12:48 PM
  2. Replies: 14
    Last Post: 01-27-2008, 09:58 AM
  3. Im such a NOOB +rep for those who help
    By Masterkenshin in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-13-2008, 09:34 AM
  4. +rep for the guy who helps
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 31
    Last Post: 12-26-2007, 12:03 AM
  5. Removing spawned NPC's for good?
    By lazboy in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 08-31-2007, 09:14 AM
All times are GMT -5. The time now is 02:28 AM. 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