mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Misc GM command fixes + ChangeJobCommand.lua
Anim - Cleaned up some. It had old code sitting in it for whatever reason despite not affecting anything. Setstate, Warpplayer & Yolo - Fixed them up so they function again ChangeJobCommand - Just the script filled out to handle the equipping/dequipping of job stones, but it can cause issues, particularly with how the server handles a 'job' vs. a class, along with checking against skill compatibility.
This commit is contained in:
parent
b08827568c
commit
74713f3dd6
5 changed files with 109 additions and 80 deletions
|
@ -15,10 +15,12 @@ function onTrigger(player, argc, state)
|
|||
local sender = "[setstate] ";
|
||||
|
||||
local s = tonumber(state);
|
||||
local actor = GetWorldManager():GetActorInWorld(player.currentTarget) or nil;
|
||||
local actor = player.CurrentArea:FindActorInArea(player.currentTarget) or nil;
|
||||
if player and actor then
|
||||
actor:ChangeState(s);
|
||||
wait(0.8);
|
||||
player:SendMessage(0x20, "", "state: "..s);
|
||||
wait(0.8);
|
||||
player:SendMessage(0x20, "", "state: "..s);
|
||||
else
|
||||
player:SendMessage(0x20, "", "Error: No target selected.");
|
||||
end;
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue