mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
New test gm scripts to help with positioning populace npcs
This commit is contained in:
parent
214d730a58
commit
8d5f4465e3
3 changed files with 95 additions and 0 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue