From c600af3ad4cdce4bf8f6f153c2599fca9902d426 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 19 Jul 2013 01:33:10 +0200 Subject: Added support for apostrophes (') in libconfig's setting names Special thanks to Ind for pointing me in the right direction and testing the patch. Signed-off-by: Haru --- 3rdparty/libconfig/libconfig.c | 2 +- 3rdparty/libconfig/scanner.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/libconfig/libconfig.c b/3rdparty/libconfig/libconfig.c index 4cc272c9f..e2c583310 100644 --- a/3rdparty/libconfig/libconfig.c +++ b/3rdparty/libconfig/libconfig.c @@ -540,7 +540,7 @@ static int __config_validate_name(const char *name) for(++p; *p; ++p) { - if(! (isalpha((unsigned char)*p) || isdigit((unsigned char)*p) || strchr("*_-", (int)*p))) + if(! (isalpha((unsigned char)*p) || isdigit((unsigned char)*p) || strchr("*_-'", (int)*p))) return(CONFIG_FALSE); } diff --git a/3rdparty/libconfig/scanner.c b/3rdparty/libconfig/scanner.c index c2eb7d188..118fcf8ad 100644 --- a/3rdparty/libconfig/scanner.c +++ b/3rdparty/libconfig/scanner.c @@ -399,7 +399,7 @@ static yyconst flex_int32_t yy_ec[256] = 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 1, 6, 7, 1, 1, 1, 1, 8, + 1, 2, 1, 6, 7, 1, 1, 1, 26, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 19, 1, 20, 1, 1, 21, 22, 23, 23, 23, 24, 25, -- cgit v1.2.3-60-g2f50 From fabedc8b22fdad8b6e2154c1c1f03eb2b6aac359 Mon Sep 17 00:00:00 2001 From: Kisuka Date: Thu, 18 Jul 2013 17:41:55 -0700 Subject: Changed npcdb_checkid to use MAX_NPC_CLASS2_START and END. --- src/map/npc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/npc.h b/src/map/npc.h index 16e6fe74c..48c27b297 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -99,7 +99,7 @@ enum actor_classes //Checks if a given id is a valid npc id. [Skotlex] //Since new npcs are added all the time, the max valid value is the one before the first mob (Scorpion = 1001) -#define npcdb_checkid(id) ( ( (id) >= 46 && (id) <= 125) || (id) == HIDDEN_WARP_CLASS || ( (id) > 400 && (id) < MAX_NPC_CLASS ) || (id) == INVISIBLE_CLASS || ( (id) > 10000 && (id) < 10049 ) ) +#define npcdb_checkid(id) ( ( (id) >= 46 && (id) <= 125) || (id) == HIDDEN_WARP_CLASS || ( (id) > 400 && (id) < MAX_NPC_CLASS ) || (id) == INVISIBLE_CLASS || ( (id) > MAX_NPC_CLASS2_START && (id) < MAX_NPC_CLASS2_END ) ) #ifdef PCRE_SUPPORT void npc_chat_finalize(struct npc_data* nd); -- cgit v1.2.3-60-g2f50 From 7e58225a477f3f7018434de0d227638bc3bd2b34 Mon Sep 17 00:00:00 2001 From: jaBote Date: Fri, 19 Jul 2013 20:43:51 +0200 Subject: Update script_commands.txt Added some neat info Yommy gave us :D --- doc/script_commands.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index ccb45e5e1..2e8afe5dd 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1063,6 +1063,19 @@ command, use the script command in the following format: This will display 3 different lines while only consuming a single line in the relevant script file. +If you're using a client from 2011-10-10aRagexe.exe onwards, you can also +use automatic navigation and open URLs in browser by using some HTML-like +labels. For example: + + mes "go to [Hat Maker]izlude,131,148, to make hats"; + +Will make the [Hat Maker] text clickable in the client and start a navigation +to that point. + + mes "You can Googlehttp://www.google.com/ anything"; + +Clicking Google will open the browser and point to Google website. + --------------------------------------- *next; -- cgit v1.2.3-60-g2f50 From fe946e819d935ca92208e32b6b2766ec92b30601 Mon Sep 17 00:00:00 2001 From: Mysteries Date: Sat, 20 Jul 2013 22:02:15 -0400 Subject: Fixed Bug #7550 http://hercules.ws/board/tracker/issue-7550-baby-mage-inheriting-priest- class-skills-re-mode-pre-re/ - My other commit isn't read to release yet, so I rather just push this through now. Thanks jTynne! --- db/pre-re/skill_tree.conf | 2 +- db/re/skill_tree.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/pre-re/skill_tree.conf b/db/pre-re/skill_tree.conf index 45aea7a20..19712da50 100644 --- a/db/pre-re/skill_tree.conf +++ b/db/pre-re/skill_tree.conf @@ -1950,7 +1950,7 @@ Baby_Swordsman: { inherit: ( "Swordsman" ); } Baby_Magician: { - inherit: ( "Priest" ); + inherit: ( "Magician" ); } Baby_Archer: { inherit: ( "Archer" ); diff --git a/db/re/skill_tree.conf b/db/re/skill_tree.conf index 28908c0e7..4e4aa3c11 100644 --- a/db/re/skill_tree.conf +++ b/db/re/skill_tree.conf @@ -1947,7 +1947,7 @@ Baby_Swordsman: { inherit: ( "Swordsman" ); } Baby_Magician: { - inherit: ( "Priest" ); + inherit: ( "Magician" ); } Baby_Archer: { inherit: ( "Archer" ); -- cgit v1.2.3-60-g2f50 From 8b00d9bd079514a1c307ef5d2e6614055e8f874e Mon Sep 17 00:00:00 2001 From: malufett Date: Sun, 21 Jul 2013 21:06:43 +0800 Subject: Fixed Bug#7558 -Where 'bLongAtkDef' is not working properly with physical attack. Fixed Bug#7530 -Where Masquerades affect boss monsters. Signed-off-by: malufett --- src/map/battle.c | 2 +- src/map/status.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/map/battle.c b/src/map/battle.c index 2016efa3b..7563df975 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1133,7 +1133,7 @@ int battle_calc_cardfix(int attack_type, struct block_list *src, struct block_li if( wflag&BF_SHORT ) cardfix = cardfix * (100 - tsd->bonus.near_attack_def_rate) / 100; else // BF_LONG (there's no other choice) - cardfix = cardfix * (100 - tsd->bonus.near_attack_def_rate) / 100; + cardfix = cardfix * (100 - tsd->bonus.long_attack_def_rate) / 100; if( tsd->sc.data[SC_PROTECT_DEF] ) cardfix = cardfix * (100 - tsd->sc.data[SC_PROTECT_DEF]->val1) / 100; diff --git a/src/map/status.c b/src/map/status.c index 0d8bedc5e..58e844529 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -6940,6 +6940,14 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val case SC_ELECTRICSHOCKER: case SC_MAGNETICFIELD: + // Masquerades + case SC__ENERVATION: + case SC__GROOMY: + case SC__LAZINESS: + case SC__UNLUCKY: + case SC__WEAKNESS: + case SC__IGNORANCE: + return 0; } } -- cgit v1.2.3-60-g2f50