[Lua] Player Commands menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Player Commands

    Player Commands
    By Dr. Livingstone


    Info
    These lua player commands are all highly customizable and can easily be tailored to fit your needs! Players must simply type in the given command to easily utilize this feature. If you want to turn off any one of the commands you just have to change the 'true' to 'false' and you won't have to worry about it anymore.


    Current Version: 1.0
    Revive - #revive
    Repair - #repair
    Teleport To Mall - #mall
    Set Hearthstone - #sethearth


    Code:
    -- Config --
    local AllowRevive = true -- [True/False] If true, then allows players to revive themselves and sets their health/mana to 500
    local AllowRepair = true -- [True/False] If true, then allows players to repair their equipment with a chat command
    local AllowMall = true --[True/False] If true, then allows players to teleport to their respective malls
    local AllowSetHearth = true --[True/False] If true, then allows players to set their hearthstones to their current location
    
    local AllyMall = "X, Y, Z" -- Change to the X, Y, and Z of your Alliance Mall
    local HordeMall = "X, Y, Z" -- Change to the X, Y, Z of your Horde Mall
    
    local ReviveMessage = "#revive"
    local RepairMessage = "#repair"
    local MallMessage = "#mall"
    local SetHearthMessage = "#sethearth"
    
    function Player_OnChat(event, pPlayer, message, type, language)
    	local LCM = message:lower()
    	if (LCM == ReviveMessage) and (AllowRevive == true) then
    	pPlayer:RessurectPlayer()
    	pPlayer:SetHealth(1000)
    	pPlayer:SetMana(500)
    	elseif (LCM == RepairMessage) and (AllowRepair == true) then
    	pPlayer:RepairItem()
    	elseif (LCM == MallMessage) and (AllowMall == true) and (pPlayer:GetFaction() == 0) then
    	pPlayer:Teleport(Allymall)
    	elseif (LCM == MallMessage) and (AllowMall == true) and (pPlayer:GetFaction() == 1) then
    	pPlayer:Teleport(HordeMall)
    	elseif (LCM == SetHearthMessage) and (AllowSetHearth == true) then
    	local X = pPlayer:GetX()
    	local Y = pPlayer:GetY()
    	local Z = pPlayer:GetZ()
    	pPlayer:SetBindPoint(X, Y, Z)
    	end
    end
    
    RegisterServerHook(16, "Player_OnChat")
    Coming Soon:
    GM Commands
    Please post ideas!

    [Lua] Player Commands
  2. #2
    alamiku's Avatar Banned
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice thx for sharing + rep

  3. #3
    Chijje's Avatar Active Member
    Reputation
    22
    Join Date
    Feb 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pretty useful, will probably use this when I get my server up and running!

  4. #4
    Sheldrake's Avatar Member
    Reputation
    3
    Join Date
    Jul 2009
    Posts
    101
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look pretty good, thanks!

Similar Threads

  1. [Lua] Revive command for players
    By kajdzas in forum WoW EMU General Releases
    Replies: 5
    Last Post: 02-17-2010, 12:24 PM
  2. [Lua] Player & GM Chat Commands!
    By Ground Zero in forum WoW EMU General Releases
    Replies: 18
    Last Post: 01-09-2010, 05:06 PM
  3. LUA HasSpell command
    By Everlast118 in forum WoW EMU Questions & Requests
    Replies: 15
    Last Post: 02-20-2009, 05:00 PM
  4. LUA Player Cast Spell
    By Bapesy in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 06-01-2008, 01:32 AM
  5. Lua Wait Command? Script.
    By moongo in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-14-2008, 12:52 AM
All times are GMT -5. The time now is 04:30 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