[ULTIMATE] Lua Guide & Tutorial menu

Shout-Out

User Tag List

Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 57
  1. #16
    Confucius's Avatar Super Moderator Don't Look Back in Anger

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1418
    Join Date
    Oct 2007
    Posts
    2,810
    Thanks G/R
    302/311
    Trade Feedback
    7 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    +Rep Nice.

    :O I already posted in this guide woops
    Last edited by Confucius; 07-21-2009 at 10:54 PM.

    [ULTIMATE] Lua Guide & Tutorial
  2. #17
    blackfang500's Avatar Member
    Reputation
    35
    Join Date
    Apr 2007
    Posts
    491
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    VERY nice, I read most of it and I'll finish it later, this may motivate me to make my server again. +Repx3 goes without saying.

  3. #18
    Haldir's Avatar Member
    Reputation
    2
    Join Date
    May 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've one question: Unit:RegisterEvent("Creature_CastSpell", 1000, 0(1))
    What's 0 or 1, in the end. What's that for? I can't get it, help to noob please
    Btw nice guide, +rep
    Edit: And one more, what's the difference between Unit and pUnit?
    Last edited by Haldir; 08-04-2009 at 03:49 AM.

  4. #19
    gudon's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    does this tutorial really work? im sick of these fly by nights

  5. #20
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Haldir View Post
    I've one question: Unit:RegisterEvent("Creature_CastSpell", 1000, 0(1))
    What's 0 or 1, in the end. What's that for? I can't get it, help to noob please
    Btw nice guide, +rep
    Edit: And one more, what's the difference between Unit and pUnit?
    The 0/1 stands for how many times "Creature_CastSpell" will get called on.

    If you put in 0, it will call "Creature_CastSpell" And execute any code within "Creature_CastSpell"s function every second, until stopped with the command (Unit:RemoveEvents()). If you put in a 1, it means it will only be called upon once, executing the code within "Creature_CastSpell" just once. If you change it to a 2, it will call upon the function twice. And so on.

  6. #21
    WarOwner's Avatar Member
    Reputation
    2
    Join Date
    Aug 2009
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great repack!

  7. #22
    Haldir's Avatar Member
    Reputation
    2
    Join Date
    May 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks vision!!!! +Rep x2 urewin:

  8. #23
    Heliumz's Avatar Member
    Reputation
    26
    Join Date
    Jun 2009
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!
    Amazing detailed guide +Rep

  9. #24
    Haldir's Avatar Member
    Reputation
    2
    Join Date
    May 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Eh, need help again..
    I want to spawn 3 npcs and then make them move to X Y Z coords, each npc will have its own coords. Can someone tell me how to do it? I know how to spawn, but don't know how to make them move not together.
    I've no idea how to do it, please help somebody. If i'll do it like this, will it work or not?
    function Spawn(Unit1,Unit2,Unit3, Event)
    Unit1:SpawnCreature(NPCID,X,Y,Z,O,FactionID,duratation)
    Unit2:SpawnCreature(NPCID,X,Y,Z,O,FactionID,duratation)
    Unit3:SpawnCreature(NPCID,X,Y,Z,O,FactionID,duratation)
    Unit1:MoveTo(X,Y,Z,O)
    Unit2:MoveTo(X,Y,Z,O)
    Unit3:MoveTo(X,Y,Z,O)
    Last edited by Haldir; 08-05-2009 at 07:31 AM.

  10. #25
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you need to have Another npc that spawns them, you can also have an item. But then youd have to go ingame.
    To the place where you want the minions to spawn. And write .gps and then use that info.

    local Unit1 = ID -- Put ID's for the units on these 'locals'
    local Unit2 = ID
    local Unit3 = ID

    function despawn(Unit, Event)
    pUnit = ID -- This is the ID for the npc that spawns creatures.
    x = pUnit:GetX() -- Gets the X where the npc stands.
    y = pUnit:GetY() -- Gets the Y where the npc stands.
    z = pUnit:GetZ() -- Gets the Z where the npc stands.
    o = pUnit:GetO() -- Gets the O where the npc stands.
    pUnit:RegisterEvent("Next_Step", 1, 0) -- New event
    end

    function Next_Step(Unit, Event)
    pUnit:SpawnCreature(Unit1, x + 4, y, z, o, Faction, Duration) -- Spawns creature at the same position as the summon npc, only +4 x
    pUnit:SpawnCreature(Unit2, x + 7, y, z, o, Faction, Duration) -- Spawns creature at the same position as the summon npc, only +7 x
    pUnit:SpawnCreature(Unit3, x + 1, y, z, o, Faction, Duration) -- Spawns creature at the same position as the summon npc, only +1 x
    pUnit:despawn() -- Despawns the summon npc.
    end
    Hope this works.

    Good guide, mate. Im reading it now. ^^ Ill be repping you later.
    Last edited by P1raten; 08-06-2009 at 03:23 AM.

  11. #26
    Haldir's Avatar Member
    Reputation
    2
    Join Date
    May 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx jebus, +rep

  12. #27
    Haldir's Avatar Member
    Reputation
    2
    Join Date
    May 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, and how to make them move in diff spots?

  13. #28
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This script will only make the npc move from its current position.

    Change the red. You can change it to like.
    pUnit = MoveTo(x + 5, y - 5, z, o)

    Code:
    function Move(Unit, Event)
    pUnit = ID -- The id of the creature you want to move
    x = pUnit:GetX() -- Gets the X where the npc stands.
    y = pUnit:GetY() -- Gets the Y where the npc stands.
    z = pUnit:GetZ() -- Gets the Z where the npc stands.
    o = pUnit:GetO() -- Gets the O where the npc stands.
    pUnit = MoveTo(x, y, z, o)
    end

  14. #29
    myran2's Avatar Contributor

    Reputation
    130
    Join Date
    Dec 2008
    Posts
    475
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is great, Thanks!
    also, +rep !

  15. #30
    Wheeze201's Avatar Active Member
    Reputation
    51
    Join Date
    Apr 2007
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    More and more lua guides popping up but i like this one!
    It's massive and colorful.

    +rep

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Lua Script] Ultimate Lua Tutorial
    By Trle94 in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 01-05-2011, 10:08 PM
  2. Ultimate Reputation Guide
    By Krazzee in forum World of Warcraft Guides
    Replies: 12
    Last Post: 06-06-2007, 07:47 PM
  3. Ultimate Gold Guide <User and Pass>
    By janzi9 in forum World of Warcraft General
    Replies: 16
    Last Post: 12-16-2006, 07:58 PM
  4. Blackwing Lair: Ultimate Boss Guide
    By Matt in forum World of Warcraft Guides
    Replies: 11
    Last Post: 11-02-2006, 05:18 AM
  5. Ultimate Battlegrounds Guide!!!
    By Krazzee in forum World of Warcraft Guides
    Replies: 5
    Last Post: 10-29-2006, 08:34 PM
All times are GMT -5. The time now is 06:50 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