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.
# Conflicts: # scripts/commands/addalltrusts.lua # scripts/globals/abilities/double-up.lua # scripts/globals/effects/confrontation.lua # scripts/globals/spells/cure_vi.lua # scripts/globals/spells/recall-jugner.lua # scripts/globals/spells/tractor.lua # scripts/globals/spells/warp_ii.lua # scripts/zones/Chateau_dOraguille/npcs/Curilla.lua # scripts/zones/Chateau_dOraguille/npcs/_6h0.lua # scripts/zones/Metalworks/npcs/Ayame.lua # scripts/zones/Metalworks/npcs/Lucius.lua # scripts/zones/Metalworks/npcs/Naji.lua # scripts/zones/Northern_San_dOria/npcs/Excenmille.lua # scripts/zones/Windurst_Woods/npcs/Nanaa_Mihgo.lua # sql/npc_list.sql
- Loading branch information
Showing
36 changed files
with
1,066 additions
and
370 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--------------------------------------------------- | ||
-- King Cobra Clamp | ||
-- Damage varies with TP. | ||
-- Type: Magical | ||
-- Utsusemi/Blink absorb: Ignores shadows | ||
-- Skillchain Properties: Fragmentation-IconFragmentation | ||
--------------------------------------------------- | ||
require("scripts/globals/settings") | ||
require("scripts/globals/status") | ||
require("scripts/globals/monstertpmoves") | ||
--------------------------------------------------- | ||
|
||
function onMobSkillCheck(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
function onMobWeaponSkill(target, mob, skill) | ||
local numhits = 1 | ||
local accmod = 1 | ||
local dmgmod = 3.0 | ||
local info = MobPhysicalMove(mob, target, skill, numhits, accmod, dmgmod, TP_NO_EFFECT) | ||
local dmg = MobFinalAdjustments(info.dmg, mob, skill, target, tpz.attackType.PHYSICAL, tpz.damageType.SLASHING, info.hitslanded) | ||
|
||
target:takeDamage(dmg, mob, tpz.attackType.MAGICAL, tpz.damageType.SLASHING) | ||
return dmg | ||
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
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
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
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
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,36 @@ | ||
----------------------------------------- | ||
-- Trust: Shantotto II | ||
----------------------------------------- | ||
require("scripts/globals/gambits") | ||
require("scripts/globals/magic") | ||
require("scripts/globals/trust") | ||
----------------------------------------- | ||
|
||
function onMagicCastingCheck(caster, target, spell) | ||
return tpz.trust.canCast(caster, spell, 896) | ||
return tpz.trust.canCast(caster, spell, tpz.magic.spell.SHANTOTTO) | ||
end | ||
|
||
function onSpellCast(caster, target, spell) | ||
return tpz.trust.spawn(caster, spell) | ||
end | ||
|
||
function onMobSpawn(mob) | ||
tpz.trust.message(mob, tpz.trust.message_offset.SPAWN) | ||
|
||
mob:addSimpleGambit(ai.t.TARGET, ai.c.MB_AVAILABLE, 0, ai.r.MA, ai.s.MB_ELEMENT, tpz.magic.spellFamily.NONE) | ||
mob:addSimpleGambit(ai.t.TARGET, ai.c.NOT_SC_AVAILABLE, 0, ai.r.MA, ai.s.HIGHEST, tpz.magic.spellFamily.NONE, 30) | ||
|
||
local power = mob:getMainLvl() | ||
mob:addMod(tpz.mod.MATT, power) | ||
mob:addMod(tpz.mod.MACC, power) | ||
mob:addMod(tpz.mod.HASTE_MAGIC, 20) | ||
mob:SetAutoAttackEnabled(false) | ||
end | ||
|
||
function onMobDespawn(mob) | ||
tpz.trust.message(mob, tpz.trust.message_offset.DESPAWN) | ||
end | ||
|
||
function onMobDeath(mob) | ||
tpz.trust.message(mob, tpz.trust.message_offset.DEATH) | ||
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
Oops, something went wrong.