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

Added stoneskin effect to database. Fixed Rampage not working Fixed bug where abilities didn't equip correctly when leveling up Added a temporary fix for returning while dead Added handling for abilities that don't have an actiontype set, like elusive jump
35 lines
No EOL
901 B
Lua
35 lines
No EOL
901 B
Lua
require("global");
|
|
|
|
properties = {
|
|
permissions = 0,
|
|
parameters = "sss",
|
|
description =
|
|
[[
|
|
Adds experience <qty> to player or <targetname>.
|
|
!giveexp <qty> |
|
|
!giveexp <qty> <targetname> |
|
|
]],
|
|
}
|
|
|
|
function onTrigger(player, argc, qty, name, lastName)
|
|
local sender = "[giveexp] ";
|
|
|
|
if name then
|
|
if lastName then
|
|
player = GetWorldManager():GetPCInWorld(name.." "..lastName) or nil;
|
|
else
|
|
player = GetWorldManager():GetPCInWorld(name) or nil;
|
|
end;
|
|
end;
|
|
|
|
if player then
|
|
currency = 1000001;
|
|
qty = tonumber(qty) or 1;
|
|
location = INVENTORY_CURRENCY;
|
|
|
|
actionList = player:AddExp(qty, player.charaWork.parameterSave.state_mainSkill[0], 0);
|
|
player:DoBattleAction(0, 0, actionList);
|
|
else
|
|
print(sender.."unable to add experience, ensure player name is valid.");
|
|
end;
|
|
end; |