lua command for.. menu

User Tag List

Results 1 to 4 of 4
  1. #1
    theory18's Avatar Member
    Reputation
    3
    Join Date
    Apr 2009
    Posts
    112
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    lua command for..

    1. Hi i'm looking for a lua command wich gives me the gm permissions of a player.
    Like when he is an admin i can now it or not.

    2. Can i make vip player permissions without the vip column in the accounts table?
    I had other databases where there was a vip column, but now i only have gm.
    Is there a way i can make custom permission based on a rank?

    Thanks in advance +rep!

    lua command for..
  2. #2
    Death_Master's Avatar Member
    Reputation
    4
    Join Date
    Mar 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    look here Abyssal WoW - Lua Library this is most of the lua commands. if it's not there you probaly cant

  3. #3
    theory18's Avatar Member
    Reputation
    3
    Join Date
    Apr 2009
    Posts
    112
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for your reply i'll check it out!
    +Rep

  4. #4
    Claiver's Avatar Member
    Reputation
    138
    Join Date
    Mar 2009
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello Theory18,

    You can make entire custom tables with information, using the Database commands supplied by the GuaEngine. Question: Do you use ArcEmu? If yes, then I'd have a great solution for this matter.

    Copy and Paste the following code ontop of your Lua script:
    Code:
    --------------------------------------------------------------------------------------|
    --\ Function: GetTableData
    --------------------------------------------------------------------------------------|
    	function GetTableData(_DATABASE,_TABLE,_COLUMN,_ROW,_VALUE1,_VALUE2) local _T={}
    		if (string.upper(_DATABASE) == "CHARACTER") then _DB=1 end
    		if (string.upper(_DATABASE) == "WORLD") then _DB=0 end
    		_Q=Query(_DB, _ROW, "SELECT * FROM `".._TABLE.."` WHERE `".._VALUE1.."`='".._VALUE2.."'",0)		
    		if (_Q ~= nil) then	_T.L=_Q end if (_T.L ~= nil) then return _T.L end
    	end	
    	
    --------------------------------------------------------------------------------------|
    --\ Function: SetTableData
    --------------------------------------------------------------------------------------|
    	function SetTableData(_DATABASE,_TABLE,_COLUMN,_NEWVALUE,_VALUE1,_VALUE2)
    		if (string.upper(_DATABASE) == "CHARACTER") then _DB=1 end
    		if (string.upper(_DATABASE) == "WORLD") then _DB=0 end	
    		Query(_DB,1, "UPDATE `".._TABLE.."` SET `".._COLUMN.."`='".._NEWVALUE.."' WHERE `".._VALUE1.."`='".._VALUE2.."'",0)	
    	end
    You can use the functions like this:
    Code:
    	GetTableData(DATABASE,TABLENAME,ROWNAME,ROWNUMBER,VALUE1,VALUE2)
    	
    Example:
    GetTableData("Character","guilds","motd",9,"Guildname","The Uber Guild")
    The above code will get the Message of the Day (9th row) of the guild where
    the name is 'Uber Guild'. (where VALUE1 is equal to VALUE2)
    
    
    
    SetTableData(DATABASE,TABLE,ROWNAME,NEWVALUE,VALUE1,VALUE2)
    	
    Example:
    SetTableData("World","creature_names","name","Lord New Name","entry","200000")
    The above function will change the name of the creature with entry 200000 
    to 'Lord New Name'.

    Hope it helped, if there are any questions, just ask .

    Claiver
    Last edited by Claiver; 05-29-2009 at 08:29 AM.

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. Replies: 0
    Last Post: 01-09-2008, 10:41 PM
  3. gm commands for normal user(hack)
    By aslan666 in forum WoW EMU Programs
    Replies: 58
    Last Post: 10-20-2007, 07:00 AM
  4. Action Bar Commands{for Piggys Re-mapped Glider keys}
    By Phase228 in forum World of Warcraft Bots and Programs
    Replies: 6
    Last Post: 09-11-2007, 03:24 AM
  5. ".worldport" command for black temple?
    By Giba in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 09-08-2007, 01:03 PM
All times are GMT -5. The time now is 03:12 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