diff options
author | Jedzkie <jedzkie13@rocketmail.com> | 2017-04-26 00:08:06 +0800 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-04-29 00:47:10 +0200 |
commit | b767de877460a7fb55c4c8a6bd8e21bcbe079b07 (patch) | |
tree | 8613b56845c68e62a2659ef11ff90b2953de5552 | |
parent | 25e4f661211fc91a64a6e18d8ffd9d16581dfaf9 (diff) | |
download | hercules-b767de877460a7fb55c4c8a6bd8e21bcbe079b07.tar.gz hercules-b767de877460a7fb55c4c8a6bd8e21bcbe079b07.tar.bz2 hercules-b767de877460a7fb55c4c8a6bd8e21bcbe079b07.tar.xz hercules-b767de877460a7fb55c4c8a6bd8e21bcbe079b07.zip |
Removal of rare_drop_announce config.
-rw-r--r-- | conf/map/battle/drops.conf | 9 | ||||
-rw-r--r-- | conf/messages.conf | 7 | ||||
-rw-r--r-- | src/map/battle.c | 1 | ||||
-rw-r--r-- | src/map/battle.h | 1 | ||||
-rw-r--r-- | src/map/mob.c | 16 | ||||
-rw-r--r-- | src/map/pc.c | 7 | ||||
-rwxr-xr-x | tools/configconverter.pl | 1 |
7 files changed, 1 insertions, 41 deletions
diff --git a/conf/map/battle/drops.conf b/conf/map/battle/drops.conf index 547a4ae4e..4dbbf8fd5 100644 --- a/conf/map/battle/drops.conf +++ b/conf/map/battle/drops.conf @@ -146,12 +146,3 @@ drops_by_luk2: 0 // 1: Only marine spheres drop items. // 2: All alchemist summons drop items. alchemist_summon_reward: 1 - -// Make broadcast ** Player1 won Pupa's Pupa Card (chance 0.01%) *** -// This can be set to any value between 0~10000. -// Note: It also announces STEAL skill usage with rare items -// 0 = don't show announces at all -// 1 = show announces for 0.01% drop chance items -// 333 = show announces for 3.33% or lower drop chance items -// 10000 = show announces for all items -rare_drop_announce: 0 diff --git a/conf/messages.conf b/conf/messages.conf index 3cebc4173..01750ee9a 100644 --- a/conf/messages.conf +++ b/conf/messages.conf @@ -468,12 +468,7 @@ 538: Hack on trade: character '%s' (account: %d) try to trade more items that he has. 539: This player has %d of a kind of item (id: %d), and tried to trade %d of them. 540: This player has been definitively blocked. -// Rare Items Drop/Steal announce -541: '%s' got %s's %s (chance: %0.02f%%) -//541: %.0s%.0sSomeone got %s -542: '%s' stole %s's %s (chance: %0.02f%%) -//542: %.0s%.0sSomeone stole %s -//543-545 FREE +//541-545 FREE // @showmobs 546: Please enter a mob name/id (usage: @showmobs <mob name/id>) 547: Invalid mob name %s! diff --git a/src/map/battle.c b/src/map/battle.c index a4e6d8dd1..cf08bf96c 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -7210,7 +7210,6 @@ static const struct battle_data { { "mob_npc_event_type", &battle_config.mob_npc_event_type, 1, 0, 1, }, { "character_size", &battle_config.character_size, 1|2, 0, 1|2, }, { "retaliate_to_master", &battle_config.retaliate_to_master, 1, 0, 1, }, - { "rare_drop_announce", &battle_config.rare_drop_announce, 0, 0, 10000, }, { "duel_allow_pvp", &battle_config.duel_allow_pvp, 0, 0, 1, }, { "duel_allow_gvg", &battle_config.duel_allow_gvg, 0, 0, 1, }, { "duel_allow_teleport", &battle_config.duel_allow_teleport, 0, 0, 1, }, diff --git a/src/map/battle.h b/src/map/battle.h index d582f3c92..a5e50407e 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -407,7 +407,6 @@ struct Battle_Config { int mob_npc_event_type; //Determines on who the npc_event is executed. [Skotlex] int character_size; // if riders have size=2, and baby class riders size=1 [Lupus] - int rare_drop_announce; // chance <= to show rare drops global announces int retaliate_to_master; //Whether when a mob is attacked by another mob, it will retaliate versus the mob or the mob's master. [Skotlex] diff --git a/src/map/mob.c b/src/map/mob.c index 4f08cf38e..52705cf4d 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2440,14 +2440,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { ditem = mob->setdropitem(md->db->dropitem[i].nameid, 1, it); - //A Rare Drop Global Announce by Lupus - if( mvp_sd && drop_rate <= battle_config.rare_drop_announce ) { - char message[128]; - sprintf (message, msg_txt(541), mvp_sd->status.name, md->name, it->jname, (float)drop_rate/100); - //MSG: "'%s' won %s's %s (chance: %0.02f%%)" - intif->broadcast(message, (int)strlen(message)+1, BC_DEFAULT); - } - // Official Drop Announce [Jedzkie] if (mvp_sd != NULL) { if ((id = itemdb->search(it->nameid)) != NULL && id->flag.drop_announce) { @@ -2591,14 +2583,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { clif->mvp_item(mvp_sd, item.nameid); log_mvp[0] = item.nameid; - //A Rare MVP Drop Global Announce by Lupus - if (rate <= battle_config.rare_drop_announce) { - char message[128]; - sprintf(message, msg_txt(541), mvp_sd->status.name, md->name, data->jname, rate/100.); - //MSG: "'%s' won %s's %s (chance: %0.02f%%)" - intif->broadcast(message, (int)strlen(message)+1, BC_DEFAULT); - } - if((temp = pc->additem(mvp_sd,&item,1,LOG_TYPE_PICKDROP_PLAYER)) != 0) { clif->additem(mvp_sd,0,0,temp); map->addflooritem(&md->bl, &item, 1, mvp_sd->bl.m, mvp_sd->bl.x, mvp_sd->bl.y, mvp_sd->status.char_id, (second_sd?second_sd->status.char_id : 0), (third_sd ? third_sd->status.char_id : 0), 1); diff --git a/src/map/pc.c b/src/map/pc.c index 6da0bf035..9ebdfa62f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5460,13 +5460,6 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl, uint16 skil //Logs items, Stolen from mobs [Lupus] logs->pick_mob(md, LOG_TYPE_STEAL, -1, &tmp_item, data); - //A Rare Steal Global Announce by Lupus - if(md->db->dropitem[i].p<=battle_config.rare_drop_announce) { - char message[128]; - sprintf (message, msg_txt(542), sd->status.name, md->db->jname, data->jname, (float)md->db->dropitem[i].p / 100); - //MSG: "'%s' stole %s's %s (chance: %0.02f%%)" - intif->broadcast(message, (int)strlen(message)+1, BC_DEFAULT); - } return 1; } diff --git a/tools/configconverter.pl b/tools/configconverter.pl index 4fafd1f64..dc511aaef 100755 --- a/tools/configconverter.pl +++ b/tools/configconverter.pl @@ -677,7 +677,6 @@ my @defaults = ( drops_by_luk => {parse => \&parsecfg_int, print => \&printcfg_int, path => "drops:", default => 0}, drops_by_luk2 => {parse => \&parsecfg_int, print => \&printcfg_int, path => "drops:", default => 0}, alchemist_summon_reward => {parse => \&parsecfg_int, print => \&printcfg_int, path => "drops:", default => 1}, - rare_drop_announce => {parse => \&parsecfg_int, print => \&printcfg_int, path => "drops:", default => 0}, base_exp_rate => {parse => \&parsecfg_int, print => \&printcfg_int, path => "exp:", default => 100}, job_exp_rate => {parse => \&parsecfg_int, print => \&printcfg_int, path => "exp:", default => 100}, multi_level_up => {parse => \&parsecfg_bool, print => \&printcfg_bool, path => "exp:", default => "false"}, |