mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 12:17:46 +00:00
23 lines
476 B
Lua
23 lines
476 B
Lua
![]() |
require("global");
|
||
|
|
||
|
properties = {
|
||
|
permissions = 0,
|
||
|
parameters = "",
|
||
|
description =
|
||
|
[[
|
||
|
Changes appearance for equipment with given parameters.
|
||
|
!graphic <slot> <wID> <eID> <vID> <vID>
|
||
|
]],
|
||
|
}
|
||
|
|
||
|
function onTrigger(player, argc)
|
||
|
local messageID = MESSAGE_TYPE_SYSTEM_ERROR;
|
||
|
local sender = "[changetonpc] ";
|
||
|
|
||
|
local npc = player.CurrentArea:FindActorInArea(player.currentTarget);
|
||
|
|
||
|
if npc then
|
||
|
player:ChangeIntoNpc(npc);
|
||
|
end
|
||
|
|
||
|
end
|