eraffxi-personal / LSB

:sailboat: LandSandBoat - a server emulator for Final Fantasy XI. Just an X-34 landspeeder out for a drive.
https://landsandboat.github.io/server/
GNU General Public License v3.0
0 stars 0 forks source link

[Mob] Brigandish Blade #2

Closed eraffxi-personal closed 2 years ago

eraffxi-personal commented 2 years ago

https://ffxiclopedia.fandom.com/wiki/Brigandish_Blade possibly make custom added effect on the buccaneers knife to remove dmg immunity buff on NM

eraffxi-personal commented 2 years ago

Killable, needs unkillable flag and make knife remove flag

Judaine commented 2 years ago

Commit: Added unkillable effect to Brigandish Blade

Implemented the following changes:

Database

Credits: @Judaine Query: INSERT INTO item_mods(itemId, modId, value) VALUES(17622, 431, 13), (17622, 501, 100)

LUA

scripts/globals/additional_effects.lua

Credits: @RunAwayDSP for zone variable, @Judaine for other implementation. Insert @ Line 123: REMOVE_UNKILLABLE = 13, --Solely for Buccaneer's Knife with Brigandish Blade image

Remove @ Line 255: end

Insert @ Line 258: elseif addType == procType.REMOVE_UNKILLABLE then local BBID = require('scripts/zones/VELUGANNON_PALACE/IDs') if GetMobByID(BBID.mob.BRIGANDISH_BLADE) then defender:setUnkillable(false) else return 0, 0, 0 -- Not Brigandish Blade end end

image

scripts/zones/VeLugannon_Palace/mobs/Brigandish_Blade.lua

Credits: @eraffxi Insert @ Line 14: entity.onMobSpawn = function(mob) mob:setUnkillable(true) end image

jefferyrlc commented 2 years ago

Tested the knife on Tinnin, does not remove it's unkillable status.

jefferyrlc commented 2 years ago

Correction. It makes it no longer work on Brigandish Blade either.

austinclprojects commented 2 years ago

This should be in a branch and PRed into the main branch when ready.

austinclprojects commented 2 years ago

Were there SQL changes?

RunAwayDSP commented 2 years ago

"Database Credits: @Judaine Query: INSERT INTO item_mods(itemId, modId, value) VALUES(17622, 431, 13), (17622, 501, 100) "

austinclprojects commented 2 years ago

That needs to be added to the item_mods.sql or it will be lost on next import.