LandSandBoat / server

:sailboat: LandSandBoat - a server emulator for Final Fantasy XI
https://landsandboat.github.io/server/
GNU General Public License v3.0
298 stars 597 forks source link

Few weapons don't have additional effects - trying to write a script for them #511

Open personaone opened 3 years ago

personaone commented 3 years ago

The spear Dabo/Dabo+1 doesn't have an additional Lightning damage effect scripted it looks like, also a few Thief daggers like the Palladium, I'd happily write a script but I can't seem to get it working, I used the Sirocco Kukri one as an example and tried to edit it in order for Thunder/Lightning replace the Wind damage, but it doesn't want to work for some reason. Here's a sample:


-- ID: 18130 -- Item: Dabo +1 -- Additional Effect: Lightning damage

require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg")

local item_object = {}

item_object.onAdditionalEffect = function(player, target, damage) local dmg = math.random(3, 10) local params = {} params.bonusmab = 0 params.includemab = false dmg = addBonusesAbility(player, xi.magic.ele.THUNDER, target, dmg, params) dmg = dmg * applyResistanceAddEffect(player, target, xi.magic.ele.THUNDER, 0) dmg = adjustForTarget(target, dmg, xi.magic.ele.THUNDER) dmg = finalMagicNonSpellAdjustments(player, target, xi.magic.ele.THUNDER, dmg)

local message = xi.msg.basic.ADD_EFFECT_DMG
if (dmg < 0) then
    message = xi.msg.basic.ADD_EFFECT_HEAL
end

return xi.subEffect.LIGHTNING_DAMAGE, message, dmg

end

return item_object

Not really familiar with how this thing works but I'm willing to spend the time if anyone can help out?

Also it appears a few rings are affected, so far I saw Hercules' Ring not proccing when HP is lower than 50% as it should, so let me sum up and keep adding stuff that I test that doesn't work: Dabo, Dabo+1, Palladium Dagger, Bartholomew's Knife, Hercules' Ring

RAIST5150 commented 3 years ago

Been a long standing issue... elemental staves also don't proc their elemental damage.

personaone commented 3 years ago

oops - I didn't see any issue related to that in the tracker sorry

KnowOne134 commented 3 years ago

You have to add the mod 431 to item_mods.sql to trigger the script it has an additional script

personaone commented 3 years ago

You have to add the mod 431 to item_mods.sql to trigger the script it has an additional script

Ah - got it, will work on it, got a few scripts I want to contribute if possible

KnowOne134 commented 3 years ago

I have a global file use and an example I did for my server. But I believe @TeoTwawki was building something also to make this outdated

https://github.com/KnowOne134/DSP-Shared_Collection/tree/main/Weapon%20Additional%20Effects

TeoTwawki commented 3 years ago

These aren't being added anymore due to my refactor which is held up by having to keep rebasing it and then getting fatigued and not wanting to spend all of what little freetime I have just getting it back to functioning. The branch I had was working but needed tedious sql rows added, so it sat in a branch till stale (again). To fix some edge case I had to modify mob families, which is half done right now and after its completed I'll begin my rebase from hell to get to where I can finish it off.

This was where I left off, as you can see its been awhile and I haven't brought it to LandSandBoat yet..

personaone commented 3 years ago

I see, should I even bother writing some of the scripts? I can do a few weapons that I know are missing the effects but since I haven’t validated the damage on retail I can only rely on wikis and common sense.

TeoTwawki commented 3 years ago

I see, should I even bother writing some of the scripts? I can do a few weapons that I know are missing the effects but since I haven’t validated the damage on retail I can only rely on wikis and common sense.

Nope, would not bother. If there is a particular item you just gotta play with maybe, but better to wait or help on the newer system instead. I hope to have it at least in an lsb feature branch real soon

personaone commented 3 years ago

I see, should I even bother writing some of the scripts? I can do a few weapons that I know are missing the effects but since I haven’t validated the damage on retail I can only rely on wikis and common sense.

Nope, would not bother. If there is a particular item you just gotta play with maybe, but better to wait or help on the newer system instead. I hope to have it at least in an lsb feature branch real soon

Understood. I can close this issue now or leave it open as I don’t know if it’s being tracked, just let me know.

TeoTwawki commented 3 years ago

prolly should leave open for now, as I don't think the issue got remade yet since topaz's last death and rebirth..

lots and lots of old "known" issues have lost tracking thanks to other peoples drama..

personaone commented 3 years ago

prolly should leave open for now, as I don't think the issue got remade yet since topaz's last death and rebirth..

lots and lots of old "known" issues have lost tracking thanks to other peoples drama..

You got it :) shout if you need any help !