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

Added formulas for base EXP gain and chain experience Added basic scripts for most player abilities and effects Added stat gains for some abilities Changed status flags Fixed bug with player death Fixed bug where auto attacks didnt work when not locked on Added traits
28 lines
No EOL
650 B
Lua
28 lines
No EOL
650 B
Lua
require ("global")
|
|
require ("ally")
|
|
|
|
function onSpawn(ally)
|
|
ally:SetMaxHP(69420)
|
|
ally:SetHP(ally:GetMaxHP())
|
|
ally.isAutoAttackEnabled = false;
|
|
ally.neutral = false
|
|
end
|
|
|
|
function onCombatTick(ally, target, tick, contentGroupCharas)
|
|
allyGlobal.onCombatTick(ally, target, tick, contentGroupCharas);
|
|
end
|
|
|
|
|
|
function onRoam(ally, contentGroupCharas)
|
|
ally.detectionType = 0xFF
|
|
ally.isMovingToSpawn = false
|
|
ally.neutral = false
|
|
ally.animationId = 0
|
|
allyGlobal.onCombatTick(ally, nil, nil, contentGroupCharas)
|
|
end
|
|
|
|
|
|
function tryAggro(ally, contentGroupCharas)
|
|
allyGlobal.tryAggro(ally, contentGroupCharas)
|
|
|
|
end |