This repository has been archived by the owner on Dec 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release' into feature/abilities_up_to_99
# Conflicts: # sql/abilities.sql
- Loading branch information
Showing
162 changed files
with
4,375 additions
and
2,378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
----------------------------------- | ||
-- Ability: Brazen Rush | ||
-- Description: Increases double attack rate | ||
-- Obtained: WAR Level 96 | ||
-- Recast Time: 1:00:00 | ||
-- Duration: 0:00:30 | ||
----------------------------------- | ||
require("scripts/globals/settings") | ||
require("scripts/globals/status") | ||
----------------------------------- | ||
|
||
function onAbilityCheck(player, target, ability) | ||
return 0, 0 | ||
end | ||
|
||
function onUseAbility(player, target, ability) | ||
player:addStatusEffect(tpz.effect.BRAZEN_STRENGTH, 1, 368, 30) | ||
end | ||
----------------------------------- | ||
-- Ability: Brazen Rush | ||
-- Description: Increases double attack rate | ||
-- Obtained: WAR Level 96 | ||
-- Recast Time: 1:00:00 | ||
-- Duration: 0:00:30 | ||
----------------------------------- | ||
require("scripts/globals/settings") | ||
require("scripts/globals/status") | ||
----------------------------------- | ||
|
||
function onAbilityCheck(player, target, ability) | ||
return 0, 0 | ||
end | ||
|
||
function onUseAbility(player, target, ability) | ||
player:addStatusEffect(tpz.effect.BRAZEN_STRENGTH, 1, 368, 30) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
----------------------------------- | ||
-- | ||
-- tpz.effect.BRAZEN_STRENGTH | ||
-- | ||
----------------------------------- | ||
function onEffectGain(target, effect) | ||
end | ||
|
||
function onEffectTick(target, effect) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
end | ||
----------------------------------- | ||
-- | ||
-- tpz.effect.BRAZEN_STRENGTH | ||
-- | ||
----------------------------------- | ||
function onEffectGain(target, effect) | ||
end | ||
|
||
function onEffectTick(target, effect) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
----------------------------------------- | ||
-- ID: 15866 | ||
-- Item: acrobats_belt | ||
-- Item Effect: AGI +3 | ||
-- Duration: 60 seconds | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
local effect = target:getStatusEffect(tpz.effect.ENCHANTMENT) | ||
if effect ~= nil and effect:getSubType() == 15866 then | ||
target:delStatusEffect(tpz.effect.ENCHANTMENT) | ||
end | ||
return 0 | ||
end | ||
|
||
function onItemUse(target) | ||
target:addStatusEffect(tpz.effect.ENCHANTMENT, 0, 0, 60, 15866) | ||
end | ||
|
||
function onEffectGain(target, effect) | ||
target:addMod(tpz.mod.AGI, 3) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
target:delMod(tpz.mod.AGI, 3) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
----------------------------------------- | ||
-- ID: 17624 | ||
-- Item: anubiss_knife | ||
-- Item Effect: Poison 1HP / Removes 60 HP over 180 seconds | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
require("scripts/globals/msg") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
return 0 | ||
end | ||
|
||
function onItemUse(target) | ||
if not target:hasStatusEffect(tpz.effect.POISON) then | ||
target:addStatusEffect(tpz.effect.POISON, 1, 3, 180) | ||
else | ||
target:messageBasic(tpz.msg.basic.NO_EFFECT) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
----------------------------------------- | ||
-- ID: 15783 | ||
-- Item: Armored Ring | ||
-- Item Effect: Defence +8 | ||
-- Duration 30 Minutes | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
local effect = target:getStatusEffect(tpz.effect.ENCHANTMENT) | ||
if effect ~= nil and effect:getSubType() == 15783 then | ||
target:delStatusEffect(tpz.effect.ENCHANTMENT) | ||
end | ||
return 0 | ||
end | ||
|
||
function onItemUse(target) | ||
target:addStatusEffect(tpz.effect.ENCHANTMENT, 0, 0, 1800, 15783) | ||
end | ||
|
||
function onEffectGain(target, effect) | ||
target:addMod(tpz.mod.DEF, 8) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
target:delMod(tpz.mod.DEF, 8) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
----------------------------------------- | ||
-- ID: 18488 | ||
-- Item: assailants_axe | ||
-- Item Effect: Acc +3 | ||
-- Duration: 30 Minutes | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
local effect = target:getStatusEffect(tpz.effect.ENCHANTMENT) | ||
if effect ~= nil and effect:getSubType() == 18488 then | ||
target:delStatusEffect(tpz.effect.ENCHANTMENT) | ||
end | ||
return 0 | ||
end | ||
|
||
function onItemUse(target) | ||
target:addStatusEffect(tpz.effect.ENCHANTMENT, 0, 0, 1800, 18488) | ||
end | ||
|
||
function onEffectGain(target, effect) | ||
target:addMod(tpz.mod.ACC, 3) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
target:delMod(tpz.mod.ACC, 3) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
----------------------------------------- | ||
-- ID: 15889 | ||
-- Item: augmenting_belt | ||
-- Item Effect: HPHEAL +2 | ||
-- Duration: 30 Minutes | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
local effect = target:getStatusEffect(tpz.effect.ENCHANTMENT) | ||
if effect ~= nil and effect:getSubType() == 15889 then | ||
target:delStatusEffect(tpz.effect.ENCHANTMENT) | ||
end | ||
return 0 | ||
end | ||
|
||
function onItemUse(target) | ||
target:addStatusEffect(tpz.effect.ENCHANTMENT, 0, 0, 1800, 15889) | ||
end | ||
|
||
function onEffectGain(target, effect) | ||
target:addMod(tpz.mod.HPHEAL, 2) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
target:delMod(tpz.mod.HPHEAL, 2) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
----------------------------------------- | ||
-- ID: 14531 | ||
-- Item: bannaret_mail | ||
-- Item Effect: HP +15, Enmity +2 | ||
-- Duration: 30 Minutes | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
local effect = target:getStatusEffect(tpz.effect.ENCHANTMENT) | ||
if effect ~= nil and effect:getSubType() == 14531 then | ||
target:delStatusEffect(tpz.effect.ENCHANTMENT) | ||
end | ||
return 0 | ||
end | ||
|
||
function onItemUse(target) | ||
target:addStatusEffect(tpz.effect.ENCHANTMENT, 0, 0, 1800, 14531) | ||
end | ||
|
||
function onEffectGain(target, effect) | ||
target:addMod(tpz.mod.HP, 15) | ||
target:addMod(tpz.mod.ENMITY, 2) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
target:delMod(tpz.mod.HP, 15) | ||
target:delMod(tpz.mod.ENMITY, 2) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
----------------------------------------- | ||
-- ID: 18122 | ||
-- Item: Broach Lance | ||
-- Item Effect: TP +10 | ||
-- Duration: Instant | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
return 0 | ||
end | ||
|
||
function onItemUse(target) | ||
target:addTP(100) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
----------------------------------------- | ||
-- ID: 5606 | ||
-- Item: bunch_of_azouph_greens | ||
-- Food Effect: 5Min, All Races | ||
----------------------------------------- | ||
-- AGI +3 | ||
-- VIT -5 | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
require("scripts/globals/msg") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
local result = 0 | ||
if target:hasStatusEffect(tpz.effect.FOOD) or target:hasStatusEffect(tpz.effect.FIELD_SUPPORT_FOOD) then | ||
result = tpz.msg.basic.IS_FULL | ||
end | ||
return result | ||
end | ||
|
||
function onItemUse(target) | ||
target:addStatusEffect(tpz.effect.FOOD, 0, 0, 300, 5606) | ||
end | ||
|
||
function onEffectGain(target, effect) | ||
target:addMod(tpz.mod.AGI, 3) | ||
target:addMod(tpz.mod.VIT, -5) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
target:delMod(tpz.mod.AGI, 3) | ||
target:delMod(tpz.mod.VIT, -5) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
----------------------------------------- | ||
-- ID: 5605 | ||
-- Item: bunch_of_sharug_greens | ||
-- Food Effect: 5Min, All Races | ||
----------------------------------------- | ||
-- AGI +3 | ||
-- VIT -5 | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
require("scripts/globals/msg") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
local result = 0 | ||
if target:hasStatusEffect(tpz.effect.FOOD) or target:hasStatusEffect(tpz.effect.FIELD_SUPPORT_FOOD) then | ||
result = tpz.msg.basic.IS_FULL | ||
end | ||
return result | ||
end | ||
|
||
function onItemUse(target) | ||
target:addStatusEffect(tpz.effect.FOOD, 0, 0, 300, 5605) | ||
end | ||
|
||
function onEffectGain(target, effect) | ||
target:addMod(tpz.mod.AGI, 3) | ||
target:addMod(tpz.mod.VIT, -5) | ||
end | ||
|
||
function onEffectLose(target, effect) | ||
target:delMod(tpz.mod.AGI, 3) | ||
target:delMod(tpz.mod.VIT, -5) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
----------------------------------------- | ||
-- ID: 16273 | ||
-- Chocobo Pullus Torque | ||
-- Enchantment: 60Min, Costume - Mandragora | ||
----------------------------------------- | ||
require("scripts/globals/status") | ||
require("scripts/globals/msg") | ||
----------------------------------------- | ||
|
||
function onItemCheck(target) | ||
if not target:canUseMisc(tpz.zoneMisc.COSTUME) then | ||
return tpz.msg.basic.CANT_BE_USED_IN_AREA | ||
end | ||
return 0 | ||
end | ||
|
||
function onItemUse(target) | ||
target:addStatusEffect(tpz.effect.COSTUME, 1997, 0, 3600) | ||
end |
Oops, something went wrong.