mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
start of work moving commands to lua
This commit is contained in:
parent
1159c75ab8
commit
57b9d5ab99
20 changed files with 703 additions and 67 deletions
19
data/scripts/commands/gm/graphic.lua
Normal file
19
data/scripts/commands/gm/graphic.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
properties = {
|
||||
permissions = 0,
|
||||
parameters = "sssss",
|
||||
description = [[changes appearance for equipment in <slot>. Parameters: <slot> <wId> <eId> <vId> <cId>,
|
||||
idk what any of those mean either]],
|
||||
}
|
||||
|
||||
function onTrigger(player, argc, slot, wId, eId, vId, cId)
|
||||
slot = tonumber(slot) or 0;
|
||||
wId = tonumber(wId) or 0;
|
||||
eId = tonumber(eId) or 0;
|
||||
vId = tonumber(vId) or 0;
|
||||
cId = tonumber(cId) or 0;
|
||||
|
||||
if player then
|
||||
player:GraphicChange(slot, wId, eId, vId, cId);
|
||||
player:SendAppearance();
|
||||
end;
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue