Skip to content

Commit

Permalink
Add Rabbit MON skills
Browse files Browse the repository at this point in the history
  • Loading branch information
zach2good committed Oct 18, 2023
1 parent 0872fbf commit 088d9e8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 15 deletions.
30 changes: 30 additions & 0 deletions scripts/actions/mobskills/wild_ginseng.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-----------------------------------
-- Wild Ginseng
-- Description: Grants the effects of Haste, Protect, Shell, Regen, and Blink on the caster.
-- Buff potencies:
-- Despite the description, also grants Protect (60 Defense).
-- Regen effect is 30HP/tick and does not scale.
-- It will not overwrite itself and must be canceled before being reapplied.
-- Haste effect is 20% Haste.
-- Shell effect is -?/256 Magic Damage Taken.
-- Blink has three shadows.
-- All buffs have a random duration between approximately 3.5 and 4.5 minutes.
-----------------------------------
local mobskillObject = {}

mobskillObject.onMobSkillCheck = function(target, mob, skill)
return 0
end

mobskillObject.onMobWeaponSkill = function(target, mob, skill)
xi.mobskills.mobBuffMove(mob, xi.effect.PROTECT, 60, 0, math.random(utils.minutes(3.5), utils.minutes(4.5)))
xi.mobskills.mobBuffMove(mob, xi.effect.SHELL, 2000, 0, math.random(utils.minutes(3.5), utils.minutes(4.5)))
xi.mobskills.mobBuffMove(mob, xi.effect.REGEN, 30, 0, math.random(utils.minutes(3.5), utils.minutes(4.5)))
xi.mobskills.mobBuffMove(mob, xi.effect.BLINK, 3, 0, math.random(utils.minutes(3.5), utils.minutes(4.5)))
xi.mobskills.mobBuffMove(mob, xi.effect.HASTE, 1000, 0, math.random(utils.minutes(3.5), utils.minutes(4.5)))

skill:setMsg(xi.msg.basic.NONE)
return 0
end

return mobskillObject
2 changes: 1 addition & 1 deletion sql/mob_skills.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ INSERT INTO `mob_skills` VALUES (1358,1009,'plasma_charge',0,7.0,2000,1000,1,0,0
-- INSERT INTO `mob_skills` VALUES (1359,855,'chthonian_ray',0,7.0,2000,1500,4,0,0,0,0,0,0);
INSERT INTO `mob_skills` VALUES (1360,855,'apocalyptic_ray',0,7.0,2000,1500,4,0,0,0,0,0,0);
-- INSERT INTO `mob_skills` VALUES (1361,1105,'viscid_secretion',0,7.0,2000,1500,4,0,0,0,0,0,0);
-- INSERT INTO `mob_skills` VALUES (1362,1106,'wild_ginseng',0,7.0,2000,1500,4,0,0,0,0,0,0);
INSERT INTO `mob_skills` VALUES (1362,1106,'wild_ginseng',0,7.0,2000,1500,1,0,0,0,0,0,0); -- TODO: Capture animation
-- INSERT INTO `mob_skills` VALUES (1363,1107,'hungry_crunch',0,7.0,2000,1500,4,0,0,0,0,0,0);
INSERT INTO `mob_skills` VALUES (1364,848,'mighty_snort',0,7.0,2000,1500,4,0,0,0,0,0,0);
INSERT INTO `mob_skills` VALUES (1365,1043,'tail_thrust',0,7.0,2000,1000,4,0,0,0,0,0,0);
Expand Down
29 changes: 15 additions & 14 deletions sql/monstrosity_tp_skills.sql
Original file line number Diff line number Diff line change
Expand Up @@ -401,20 +401,21 @@ INSERT INTO `monstrosity_tp_skills` VALUES ('Lizard', '43', 'tail_blow', '342',
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Amphiptere', '76', 'reaving_wind', '606', '2431', '20', '1500');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Amphiptere', '76', 'calamitous_wind', '608', '2433', '30', '1700');

-- INSERT INTO `monstrosity_tp_skills` VALUES ('Onyx Rabbit', '256', 'foot_kick', '257', '257', '1', '1000');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Onyx Rabbit', '256', 'dust_cloud', '258', '258', '10', '800');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Onyx Rabbit', '256', 'whirl_claws', '259', '259', '20', '1800');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Onyx Rabbit', '256', 'wild_carrot', '314', '323', '30', '1000');

-- INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'foot_kick', '257', '257', '1', '1000');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'whirl_claws', '259', '259', '20', '1800');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'wild_carrot', '314', '323', '30', '1000');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'snow_cloud', '455', '661', '40', '1000');

-- INSERT INTO `monstrosity_tp_skills` VALUES ('Lapinion (Rabbit)', '258', 'foot_kick', '257', '257', '1', '1000');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Lapinion (Rabbit)', '258', 'dust_cloud', '258', '258', '10', '800');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Lapinion (Rabbit)', '258', 'whirl_claws', '259', '259', '20', '1800');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Lapinion (Rabbit)', '258', 'wild_carrot', '314', '323', '30', '1000');
INSERT INTO `monstrosity_tp_skills` VALUES ('Onyx Rabbit', '256', 'foot_kick', '257', '257', '1', '1000');
INSERT INTO `monstrosity_tp_skills` VALUES ('Onyx Rabbit', '256', 'dust_cloud', '258', '258', '10', '800');
INSERT INTO `monstrosity_tp_skills` VALUES ('Onyx Rabbit', '256', 'whirl_claws', '259', '259', '20', '1800');
INSERT INTO `monstrosity_tp_skills` VALUES ('Onyx Rabbit', '256', 'wild_carrot', '314', '323', '30', '1000');

INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'foot_kick', '257', '257', '1', '1000');
INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'whirl_claws', '259', '259', '20', '1800');
INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'wild_carrot', '314', '323', '30', '1000');
INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'snow_cloud', '455', '661', '40', '1000');
INSERT INTO `monstrosity_tp_skills` VALUES ('Alabaster Rabbit', '257', 'wild_ginseng', '501', '1362', '50', '1000');

INSERT INTO `monstrosity_tp_skills` VALUES ('Lapinion (Rabbit)', '258', 'foot_kick', '257', '257', '1', '1000');
INSERT INTO `monstrosity_tp_skills` VALUES ('Lapinion (Rabbit)', '258', 'dust_cloud', '258', '258', '10', '800');
INSERT INTO `monstrosity_tp_skills` VALUES ('Lapinion (Rabbit)', '258', 'whirl_claws', '259', '259', '20', '1800');
INSERT INTO `monstrosity_tp_skills` VALUES ('Lapinion (Rabbit)', '258', 'wild_carrot', '314', '323', '30', '1000');

-- INSERT INTO `monstrosity_tp_skills` VALUES ('Elasmoth (Behemoth)', '259', 'wild_horn', '444', '628', '1', '1000');
-- INSERT INTO `monstrosity_tp_skills` VALUES ('Elasmoth (Behemoth)', '259', 'shock_wave', '446', '631', '10', '1000');
Expand Down

0 comments on commit 088d9e8

Please sign in to comment.