Skip to content

Instantly share code, notes, and snippets.

View cydh's full-sized avatar

Cydh Ramdh cydh

View GitHub Profile
@cydh
cydh / doram_equip.sql
Last active November 2, 2019 05:46
From Divine Pride
-- source: https://divine-pride.net/
INSERT INTO `mob_drop_db_re` (`mob_id`,`nameid`,`rate`) VALUES('1134','28380','20'); -- KOBOLD_2, Fresh Grass Necklace
INSERT INTO `mob_drop_db_re` (`mob_id`,`nameid`,`rate`) VALUES('1207','28380','20'); -- STING, Fresh Grass Necklace
INSERT INTO `mob_drop_db_re` (`mob_id`,`nameid`,`rate`) VALUES('2640','28380','100'); -- C5_STING, Fresh Grass Necklace
INSERT INTO `mob_drop_db_re` (`mob_id`,`nameid`,`rate`) VALUES('1784','28381','20'); -- STAPO, Cute Grass Necklace
INSERT INTO `mob_drop_db_re` (`mob_id`,`nameid`,`rate`) VALUES('2643','28381','100'); -- C3_STAPO, Cute Grass Necklace
INSERT INTO `mob_drop_db_re` (`mob_id`,`nameid`,`rate`) VALUES('1782','28382','20'); -- ROWEEN, Charm Grass Necklace
INSERT INTO `mob_drop_db_re` (`mob_id`,`nameid`,`rate`) VALUES('2677','28382','100'); -- C2_ROWEEN, Charm Grass Necklace
INSERT INTO `mob_drop_db_re` (`mob_id`,`nameid`,`rate`) VALUES('1692','1695','20'); -- BREEZE, Delicate Foxtail Model
INSERT INTO `mob_drop_db_re` (`mob_id`,`na
@cydh
cydh / special_item_obtain.pm
Last active October 9, 2019 14:59
special_item_obtain::src/Nerwork/Receive.pm a clean lines for https://github.com/OpenKore/openkore/pull/2932
use constant {
TYPE_BOXITEM => 0x0,
TYPE_MONSTER_ITEM => 0x1,
};
sub special_item_obtain {
my ($self, $args) = @_;
my $item_name = itemNameSimple($args->{nameID});
my $holder = bytesToString($args->{holder});
@cydh
cydh / reflect_damage_gvg_bg_adjustment.diff
Created November 15, 2019 00:53
swapped reflect damage calculation after GVG/BG damage adjustment
src/map/battle.cpp | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/src/map/battle.cpp b/src/map/battle.cpp
index 64cf60bce..ac9c041c3 100644
--- a/src/map/battle.cpp
+++ b/src/map/battle.cpp
@@ -5032,27 +5032,6 @@ struct block_list *battle_check_devotion(struct block_list *bl) {
static void battle_calc_attack_gvg_bg(struct Damage* wd, struct block_list *src,struct block_list *target,uint16 skill_id,uint16 skill_lv)
{
@cydh
cydh / soullink_star_30holy_30boss.diff
Created November 15, 2019 01:20
Star Gladiator spirit increase 30% damage to boss monsters, increase 30% damage to holy element target
db/re/item_db.txt | 4 +-
src/map/script_constants.hpp | 2 +
src/map/status.cpp | 119 ++++++++++++++++++++++++++++++++++---------
src/map/status.hpp | 2 +
4 files changed, 100 insertions(+), 27 deletions(-)
diff --git a/db/re/item_db.txt b/db/re/item_db.txt
index 0cc393c1a..815b48215 100644
--- a/db/re/item_db.txt
+++ b/db/re/item_db.txt