Lua commands menu

User Tag List

Thread: Lua commands

Results 1 to 7 of 7
  1. #1
    Jonthe838's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua commands

    Hi is was wondering if there is any .lua command that does so allys only can teleport to ally major cities and hord only to hord major cities...
    Thx
    Lines of Coding: |||||||||| Goal 1000
    Current: 677 Achived Goals: 500 Lines


    Lua commands
  2. #2
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could try to make it with an If method with:
    :GetFaction() : Returns the faction for the selected unit or target, else returns the faction of the unit itself if no target is selected.
    or
    :GetStanding(FactionID) : Returns the reputation value of the player to the unit.

    to see if it is a horde or alliance and apply those to the portal...

    i wouldn't know if Sun++ or BLUA or any LUA projects have special commands for what you request, but i doubt about it...
    It should be possible with an If method with the above commands...

    example
    Code:
     if (player:GetStanding(76) >= 1000) then  //76 = orgrimmar faction
       pUnit:TeleportUnit(mapID, X, Y, Z)  // teleport coords for horde
    else
       pUnit:TeleportUnit(mapID, X, Y,Z)  //teleport coords for ally
    end
    to give a small example...
    this checks if the reputation with faction: Orgrimmar is higher or equal to 1000... if so the player is probably Horde... (but you could add UC, TB and other Horde factions to make sure it is a horde player)
    you would have to work it out though

    Meh time for a comeback in the emulation developing scene... after my exams i will get into it again

  3. #3
    Jonthe838's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thx +Rep
    Lines of Coding: |||||||||| Goal 1000
    Current: 677 Achived Goals: 500 Lines


  4. #4
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    if (player:GetStanding(76) >= 1000) then  //76 = orgrimmar faction
       Unit:Teleport(Map, X, Y, Z)  // teleport coords for horde
    else
       Unit:Teleport(Map, X, Y,Z)  //teleport coords for ally
    end
    end
    I just saw a couple things that would generate errors on his script, so this is a fixed one. I didn't do much just change the command and added some crap.

  5. #5
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Blackboy0 View Post
    Code:
    if (player:GetStanding(76) >= 1000) then  //76 = orgrimmar faction
       Unit:Teleport(Map, X, Y, Z)  // teleport coords for horde
    else
       Unit:Teleport(Map, X, Y,Z)  //teleport coords for ally
    end
    end
    I just saw a couple things that would generate errors on his script, so this is a fixed one. I didn't do much just change the command and added some crap.
    ya i know... it was just a rought version of what his script would need to look like
    We wanna help people, but people need to do things on their own too... it is the best way to learn

  6. #6
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, but I've learned that if ye don't show them the proper way to do something, like script, they learn the improper way (wrong commands, functions, etc.) and then, later on, you gotta re-teach them, and that is annoying, especially if your like me and hate teaching. PERIOD.

  7. #7
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Blackboy0 View Post
    Yes, but I've learned that if ye don't show them the proper way to do something, like script, they learn the improper way (wrong commands, functions, etc.) and then, later on, you gotta re-teach them, and that is annoying, especially if your like me and hate teaching. PERIOD.
    true... but i learned it that way.. and to make sure i had correct syntax and structures etc... i used an online validator... (like you have tons of them)
    Anyhow no discusion needed, this guy got helped gj on improving

Similar Threads

  1. Full list of lua commands
    By runiker in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 12-25-2008, 02:46 PM
  2. [INFO]Updated LUA Commands
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 08-12-2008, 12:09 AM
  3. [Question]: Lua Commands
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 07-12-2008, 03:11 PM
  4. LUA Command help
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-06-2008, 05:38 PM
  5. SetSoulLinkedwith LUA Command Guide
    By mager1794 in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 07-02-2008, 04:16 PM
All times are GMT -5. The time now is 05:01 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