mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 20:27:47 +00:00

Added a quest completion check to etc5g0.lua to prevent it showing "!" on quest-givers' head when you've cleared the quest already. Fixed regression on select GM commands, !warp instant-warps within same zone again, !mypos reports to the thousandths place, !speed command works with one argument again.
18 lines
No EOL
450 B
Lua
18 lines
No EOL
450 B
Lua
properties = {
|
|
permissions = 0,
|
|
parameters = "sss",
|
|
description = "<stop> <walk> <run> speed",
|
|
}
|
|
|
|
function onTrigger(player, argc, stop, walk, run)
|
|
stop = tonumber(stop) or 0;
|
|
walk = tonumber(walk) or 2;
|
|
run = tonumber(run) or 5;
|
|
if argc == 3 then
|
|
player:ChangeSpeed(stop, walk, run, run);
|
|
elseif argc == 1 then
|
|
player:ChangeSpeed(0, stop/2, stop, stop);
|
|
else
|
|
player:ChangeSpeed(0,2,5,5);
|
|
end
|
|
end |