From f6abfb47831311a79bc448b2716a58b3d1f2853d Mon Sep 17 00:00:00 2001 From: milky-milk Date: Wed, 13 May 2015 13:46:36 +0500 Subject: Fixed defending aura bug in pre-renewal (http://hercules.ws/board/tracker/issue-8560-pre-renewal-defending-aura-bug/) --- src/map/battle.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/map/battle.c b/src/map/battle.c index 6573ca703..d7ffb4ca1 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3001,8 +3001,14 @@ int64 battle_calc_damage(struct block_list *src,struct block_list *bl,struct Dam #endif if(sc->data[SC_DEFENDER] && +#ifdef RENEWAL ((flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON) || skill_id == CR_ACIDDEMONSTRATION)) damage = damage * ( 100 - sc->data[SC_DEFENDER]->val2 ) / 100; +#else + (flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON)) // In pre-re Defender doesn't reduce damage from Acid Demonstration + damage = damage * ( 100 - sc->data[SC_DEFENDER]->val2 ) / 100; +#endif + #ifndef RENEWAL if(sc->data[SC_GS_ADJUSTMENT] && (flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON)) -- cgit v1.2.3-60-g2f50 From 7113dbbc642a444ccb32c6f53cde69e3b93df906 Mon Sep 17 00:00:00 2001 From: Dastgir Date: Mon, 28 Sep 2015 16:38:04 +0530 Subject: Added Missing ScriptCommands in the doc. Corrected sleep/sleep2 parameter list. Changed bg_join_team return values. --- doc/script_commands.txt | 52 ++++++++++++++++++++++++++++++++++++++++++------- src/map/script.c | 2 +- 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 146e58a45..546122475 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4457,6 +4457,14 @@ they will also have their skills reset upon 'changesex'. --------------------------------------- +*changecharsex; + +This command is exactly same as changesex, with an exception that, +character sex will be changed instead of account sex. +Requires client 2014-10-22 or greater. + +--------------------------------------- + *getexp ,; This command will give the invoking character a specified number of base @@ -4985,8 +4993,8 @@ Returns the item_id of a random item picked from the item container specified. T are different item containers and they are specified in 'db/(pre-)re/item_group.conf'. Example: - getitem groupranditem 603,1; - getitem groupranditem Old_Blue_Box,1; + getitem groupranditem(603),1; + getitem groupranditem(Old_Blue_Box),1; --------------------------------------- @@ -6499,8 +6507,8 @@ Example 4: --------------------------------------- -*sleep {}; -*sleep2 {}; +*sleep ; +*sleep2 ; *awake ""; These commands are used to control the pause of a NPC. @@ -8793,18 +8801,48 @@ following: ---------------------------------------- -*bg_getareausers(,,,,,); +*bg_getareausers(,"",,,,); Retrieves amount of players belonging to given battle group on given map within an specified rectangular area. ---------------------------------------- -*bg_updatescore "",,; +*bg_updatescore "",,; This command will force the update of the displayed scoreboard. It is only usable when the map is defined as a Type 2 Battleground: -mapflag%TAB%%TAB%battleground%TAB%2 +mapflag%TAB%%TAB%battleground%TAB%2 + +---------------------------------------- + +*bg_create_team "",,; + +This command will create a new BG Team. +When player dies, they will be respawned map_name,X,Y as mentioned. + +Command will return -1 if BG Creation is failed, +else it will return the BG ID(Also known as TeamID). + +---------------------------------------- + +*bg_join_team {,}; + +This command will make the attached player join to Team with ID as mentioned. +If account_id is provided, command will look for that player, instead of the attached player. + +Command will return -1 if Player is not found, 0 if join is failed, 1 upon successful. + +---------------------------------------- + +*bg_match_over ""{,}; + +This command will end the battleground Arena +(Arena Name as referred to, in conf/battlegrounds.conf) +If Cancelled is not provided, it will set the join delay, as mentioned in conf/battlegrounds.conf +else, it will just destroy the Teams and queue's. + +Command will return 0 when successful, else it will return 1. --------------------------------------- //===================================== diff --git a/src/map/script.c b/src/map/script.c index 30f0bad85..face34d30 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19169,7 +19169,7 @@ BUILDIN(bg_join_team) { sd = script->rid2sd(st); if( !sd ) - script_pushint(st, 1); + script_pushint(st, -1); else script_pushint(st,bg->team_join(team_id, sd)?0:1); -- cgit v1.2.3-60-g2f50 From ca014e193703f71678a38be8b687637d45ac81f5 Mon Sep 17 00:00:00 2001 From: Milk Date: Wed, 7 Oct 2015 16:30:44 +0500 Subject: Deleted dublicate --- src/map/battle.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/map/battle.c b/src/map/battle.c index d7ffb4ca1..a511650a2 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3003,12 +3003,11 @@ int64 battle_calc_damage(struct block_list *src,struct block_list *bl,struct Dam if(sc->data[SC_DEFENDER] && #ifdef RENEWAL ((flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON) || skill_id == CR_ACIDDEMONSTRATION)) - damage = damage * ( 100 - sc->data[SC_DEFENDER]->val2 ) / 100; #else (flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON)) // In pre-re Defender doesn't reduce damage from Acid Demonstration +#endif damage = damage * ( 100 - sc->data[SC_DEFENDER]->val2 ) / 100; -#endif - + #ifndef RENEWAL if(sc->data[SC_GS_ADJUSTMENT] && (flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON)) -- cgit v1.2.3-60-g2f50 From ce6e0f537fe2f513bb8881d07b37d0d6211e654b Mon Sep 17 00:00:00 2001 From: ossi0110 Date: Wed, 21 Oct 2015 12:24:32 +0200 Subject: Fixed Typos (+1 squashed commits) Squashed commits: [18d0374] Fixed Quest Log Packet for 2014-10-22 + Clients Added log Folder to be able to capture Map Server Logs see map-server.conf for it Added save folder to be able to dump unknown packets --- log/empty.txt | 0 save/empty.txt | 0 src/common/HPMDataCheck.h | 3 ++ src/map/clif.c | 70 ++++++++++++++++++++++++++++------------------- src/map/packets_struct.h | 48 ++++++++++++++++++++++++++++++++ src/map/quest.c | 8 +++++- 6 files changed, 100 insertions(+), 29 deletions(-) create mode 100644 log/empty.txt create mode 100644 save/empty.txt diff --git a/log/empty.txt b/log/empty.txt new file mode 100644 index 000000000..e69de29bb diff --git a/save/empty.txt b/save/empty.txt new file mode 100644 index 000000000..e69de29bb diff --git a/src/common/HPMDataCheck.h b/src/common/HPMDataCheck.h index 923b6ccbf..c60bec4c8 100644 --- a/src/common/HPMDataCheck.h +++ b/src/common/HPMDataCheck.h @@ -492,6 +492,7 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { { "packet_itemlist_equip", sizeof(struct packet_itemlist_equip), SERVER_TYPE_MAP }, { "packet_itemlist_normal", sizeof(struct packet_itemlist_normal), SERVER_TYPE_MAP }, { "packet_maptypeproperty2", sizeof(struct packet_maptypeproperty2), SERVER_TYPE_MAP }, + { "packet_mission_info_sub", sizeof(struct packet_mission_info_sub), SERVER_TYPE_MAP }, { "packet_monster_hp", sizeof(struct packet_monster_hp), SERVER_TYPE_MAP }, { "packet_notify_bounditem", sizeof(struct packet_notify_bounditem), SERVER_TYPE_MAP }, { "packet_npc_market_open", sizeof(struct packet_npc_market_open), SERVER_TYPE_MAP }, @@ -499,6 +500,8 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { { "packet_npc_market_result_ack", sizeof(struct packet_npc_market_result_ack), SERVER_TYPE_MAP }, { "packet_package_item_announce", sizeof(struct packet_package_item_announce), SERVER_TYPE_MAP }, { "packet_party_leader_changed", sizeof(struct packet_party_leader_changed), SERVER_TYPE_MAP }, + { "packet_quest_list_header", sizeof(struct packet_quest_list_header), SERVER_TYPE_MAP }, + { "packet_quest_list_info", sizeof(struct packet_quest_list_info), SERVER_TYPE_MAP }, { "packet_roulette_close_ack", sizeof(struct packet_roulette_close_ack), SERVER_TYPE_MAP }, { "packet_roulette_generate_ack", sizeof(struct packet_roulette_generate_ack), SERVER_TYPE_MAP }, { "packet_roulette_info_ack", sizeof(struct packet_roulette_info_ack), SERVER_TYPE_MAP }, diff --git a/src/map/clif.c b/src/map/clif.c index bbd2f8c7f..124288635 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -15477,41 +15477,55 @@ void clif_parse_PartyTick(int fd, struct map_session_data* sd) /// Sends list of all quest states (ZC_ALL_QUEST_LIST). /// 02b1 .W .L { .L .B }*num +/// 097a .W .L { .L .B .L