mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
New test gm scripts to help with positioning populace npcs
This commit is contained in:
23
Data/scripts/commands/gm/changetonpc.lua
Normal file
23
Data/scripts/commands/gm/changetonpc.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user