A question about Lua menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A question about Lua

    Just a simple question , is the pUnit:GetRandomPlayer(0)) command really working? cuz i didnt notice it was working :P I'll +Rep for awser

    A question about Lua
  2. #2
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pUnit:GetRandomPlayer()

  3. #3
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its actually really working or not?

  4. #4
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure, but if that doesn't work, then the command is bugged.

  5. #5
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok ty +Rep x2

    Edit: Must spread ; (

  6. #6
    Kiyoshi's Avatar Member
    Reputation
    28
    Join Date
    Jun 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SectorSeven View Post
    pUnit:GetRandomPlayer()
    There can also be flags in the (), like these:
    Code:
    - GetRandomPlayer(0) = Random Player
    - GetRandomPlayer(1) = Random in Short-Range
    - GetRandomPlayer(2) = Random in Mid-Range
    - GetRandomPlayer(3) = Random in Long-Range
    - GetRandomPlayer(4) = Random with Mana
    - GetRandomPlayer(5) = Random with Rage
    - GetRandomPlayer(6) = Random With Energy
    - GetRandomPlayer(7) = Random NOT Main-Tank

  7. #7
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    with your script do this
    Code:
    function blablabla(bla bla)
    local plr = pUnit:GetRandomPlayer()
    pUnit:CastSpell(ID, plr)
    Last edited by mager1794; 07-10-2008 at 12:04 AM.
    Lunar Gaming - Reaching For The Stars

  8. #8
    Kiyoshi's Avatar Member
    Reputation
    28
    Join Date
    Jun 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should use it this way:

    Code:
    function random_lol(pUnit,event)
    pUnit:CastSpellOnTarget(SPELLID,pUnit:GetRandomPlayer(FLAGS)
    On target should be there to make sure the boss knows to find a target based on what you input.

Similar Threads

  1. Question About Lua.
    By Ryan_Duke in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 10-08-2009, 04:30 PM
  2. [Question] About Lua
    By Nilrac in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 06-21-2008, 07:27 PM
  3. Question about Lua scripting
    By bill45 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-13-2008, 02:49 AM
  4. [Question] About lua files...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-15-2008, 06:26 PM
  5. A simple question about Lua Scripts
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 12-28-2007, 01:57 AM
All times are GMT -5. The time now is 02:32 AM. 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