Some Useful Player Functions in Lua menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Hadesminion13's Avatar Member
    Reputation
    16
    Join Date
    Sep 2008
    Posts
    79
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Some Useful Player Functions in Lua

    When I first started Lua scripting there weren't much easy to understand guides for things other than bosses, so here's a list of some useful player functions.

    :SendBroadcastMessage("Your message here")
    -Sends a message to the player that no one else can see. Useful for custom commands.

    :DealGoldMerit(X)
    -X is the amount of gold you want to add to the player.

    :AdvanceAllSkills(X)
    -X is the amount you want to increase all of the player's skills by.

    :IsAlive()
    -This checks if the player is alive.

    :ResurrectPlayer()
    -This resurrects the player. You can use IsAlive to make it check if the player is already alive to make this into a more advanced function.

    :GetPlayerLevel()
    -Checks for the player's level.

    :SetPlayerLevel(X)
    -Sets player level to X. You can also do a level check and make it so it increases the player level instead of just mods it.

    :RepairAllPlayerItems()
    -Repairs all of the player's items.

    :SetScale(X)
    -Sets player scale to X.

    :RemoveAllAuras()
    -Removes all auras, harmful and helpful, from the player. Useful for removing res sickness.

    :CastSpell(X)
    -Makes the player cast spell with the spell ID X. The player WILL cast it on themself.

    :SavePlayer()
    -Saves the player's progress.

    :SetPlayerSpeed(X)
    -Sets the player's speed to X. 7 is around default run speed.

    :GiveHonor(X)
    -Gives the player X amount of honor.

    :SetPlayerWeather(X, 1)
    -Sets the player's weather to weather ID X.

    Those are pretty much the most useful ones. You have to put something in front of the colon to use it. EX:

    function EasyCmd (event, player, message, type, language)
    if (message == "*save") then
    player:SavePlayer()
    player:SendBroadcastMessage("Character Saved.")
    return 0
    end
    end

    This is a custom command I made so when the player types in *save, it saves their progress. return 0 is so when you type in the command it doesn't say it out loud, but it DOES still send a broadcast message to the player. To find out what you put in front of the colon, you have to match the text after the function to the text before the colon (see green text). It IS case-sensitive, but you can make them whatever you want.

    Well, that's pretty much it. Thanks for reading and feel free to comment.
    Last edited by Hadesminion13; 08-03-2010 at 12:28 AM.

    Some Useful Player Functions in Lua
  2. #2
    Rock Lee's Avatar Banned
    Reputation
    41
    Join Date
    Jul 2010
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This looks like a direct copy paste from the arcemu svn. Except that you made a custom command and added some description.

  3. #3
    Hadesminion13's Avatar Member
    Reputation
    16
    Join Date
    Sep 2008
    Posts
    79
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No actually this is using the functions I used from my custom command script. I didn't directly copy and paste.
    My command script: http://www.************/forums/showthread.php?t=95436 - ACWeb
    Heres the pastebin if that is advertising: http://hades.pastebin.com/i4pXPPYL
    By the way, do you only troll boards and post useless, rude shit?
    I just added functions from Lua, put in descriptions of what they do, and how to use them. How is that copying and pasting? What was I supposed to do, make my own functions and somehow get LuaHypArc to read them? Stop posting on my threads jackass.

Similar Threads

  1. [C++ and LUA Patch] 6 Custom Player Functions
    By Gastricpenguin in forum WoW EMU General Releases
    Replies: 10
    Last Post: 03-02-2009, 08:06 AM
  2. Some useful WOW warrior tips
    By warhoo in forum World of Warcraft General
    Replies: 2
    Last Post: 11-26-2007, 03:36 PM
  3. Account website scam (has a chance for success but need some key players)
    By warlock_hellfire in forum WoW Scam Prevention
    Replies: 25
    Last Post: 10-09-2007, 10:17 PM
  4. Some useful stuff.. for wow that is!
    By Nolixz in forum World of Warcraft Guides
    Replies: 11
    Last Post: 01-15-2007, 07:05 PM
  5. Some Useful AutoIT Scripts
    By barnyonfire1 in forum World of Warcraft Bots and Programs
    Replies: 21
    Last Post: 11-22-2006, 01:25 AM
All times are GMT -5. The time now is 11:23 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