Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added skill_duration mapflag. (#2171)
* Added skill_duration mapflag. * This mapflag sets a skill unit time limit to n% of original duration. * Implemented mapflags for Hunter's Traps in GVG, BG, and Novice Guild maps. Signed-off-by: Cydh Ramdh <cydh@pservero.com>
- Loading branch information
Showing
with
797 additions
and 8 deletions.
- +4 −1 conf/msg_conf/map_msg.conf
- +10 −0 doc/mapflags.txt
- +3 −0 doc/script_commands.txt
- +549 −0 npc/mapflag/skill_duration.txt
- +121 −0 npc/re/mapflag/skill_duration.txt
- +1 −0 npc/re/scripts_mapflags.conf
- +1 −0 npc/scripts_mapflags.conf
- +13 −4 src/map/atcommand.cpp
- +25 −0 src/map/map.cpp
- +10 −0 src/map/map.hpp
- +23 −1 src/map/npc.cpp
- +14 −0 src/map/script.cpp
- +1 −0 src/map/script_constants.hpp
- +21 −2 src/map/skill.cpp
- +1 −0 src/map/skill.hpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,121 @@ | ||
| //===== rAthena Mapflag ====================================== | ||
| //= Sets skill time limit on specified map. | ||
| //===== Structure ============================================ | ||
| //= mapname skill_duration skill_name,percentage | ||
| //============================================================ | ||
|
|
||
| //============================================================ | ||
| // Gloria Castles | ||
| //============================================================ | ||
| te_prtcas01 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_prtcas01 mapflag skill_duration HT_LANDMINE,400 | ||
| te_prtcas01 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_prtcas01 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_prtcas01 mapflag skill_duration HT_SANDMAN,400 | ||
| te_prtcas01 mapflag skill_duration HT_FLASHER,400 | ||
| te_prtcas01 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_prtcas01 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_prtcas01 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_prtcas01 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| te_prtcas02 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_prtcas02 mapflag skill_duration HT_LANDMINE,400 | ||
| te_prtcas02 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_prtcas02 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_prtcas02 mapflag skill_duration HT_SANDMAN,400 | ||
| te_prtcas02 mapflag skill_duration HT_FLASHER,400 | ||
| te_prtcas02 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_prtcas02 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_prtcas02 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_prtcas02 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| te_prtcas03 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_prtcas03 mapflag skill_duration HT_LANDMINE,400 | ||
| te_prtcas03 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_prtcas03 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_prtcas03 mapflag skill_duration HT_SANDMAN,400 | ||
| te_prtcas03 mapflag skill_duration HT_FLASHER,400 | ||
| te_prtcas03 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_prtcas03 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_prtcas03 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_prtcas03 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| te_prtcas04 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_prtcas04 mapflag skill_duration HT_LANDMINE,400 | ||
| te_prtcas04 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_prtcas04 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_prtcas04 mapflag skill_duration HT_SANDMAN,400 | ||
| te_prtcas04 mapflag skill_duration HT_FLASHER,400 | ||
| te_prtcas04 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_prtcas04 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_prtcas04 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_prtcas04 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| te_prtcas05 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_prtcas05 mapflag skill_duration HT_LANDMINE,400 | ||
| te_prtcas05 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_prtcas05 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_prtcas05 mapflag skill_duration HT_SANDMAN,400 | ||
| te_prtcas05 mapflag skill_duration HT_FLASHER,400 | ||
| te_prtcas05 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_prtcas05 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_prtcas05 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_prtcas05 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| //============================================================ | ||
| // Kafragaten Castles | ||
| //============================================================ | ||
| te_aldecas1 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_aldecas1 mapflag skill_duration HT_LANDMINE,400 | ||
| te_aldecas1 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_aldecas1 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_aldecas1 mapflag skill_duration HT_SANDMAN,400 | ||
| te_aldecas1 mapflag skill_duration HT_FLASHER,400 | ||
| te_aldecas1 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_aldecas1 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_aldecas1 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_aldecas1 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| te_aldecas2 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_aldecas2 mapflag skill_duration HT_LANDMINE,400 | ||
| te_aldecas2 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_aldecas2 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_aldecas2 mapflag skill_duration HT_SANDMAN,400 | ||
| te_aldecas2 mapflag skill_duration HT_FLASHER,400 | ||
| te_aldecas2 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_aldecas2 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_aldecas2 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_aldecas2 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| te_aldecas3 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_aldecas3 mapflag skill_duration HT_LANDMINE,400 | ||
| te_aldecas3 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_aldecas3 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_aldecas3 mapflag skill_duration HT_SANDMAN,400 | ||
| te_aldecas3 mapflag skill_duration HT_FLASHER,400 | ||
| te_aldecas3 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_aldecas3 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_aldecas3 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_aldecas3 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| te_aldecas4 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_aldecas4 mapflag skill_duration HT_LANDMINE,400 | ||
| te_aldecas4 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_aldecas4 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_aldecas4 mapflag skill_duration HT_SANDMAN,400 | ||
| te_aldecas4 mapflag skill_duration HT_FLASHER,400 | ||
| te_aldecas4 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_aldecas4 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_aldecas4 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_aldecas4 mapflag skill_duration HT_TALKIEBOX,400 | ||
|
|
||
| te_aldecas5 mapflag skill_duration HT_SKIDTRAP,400 | ||
| te_aldecas5 mapflag skill_duration HT_LANDMINE,400 | ||
| te_aldecas5 mapflag skill_duration HT_ANKLESNARE,400 | ||
| te_aldecas5 mapflag skill_duration HT_SHOCKWAVE,400 | ||
| te_aldecas5 mapflag skill_duration HT_SANDMAN,400 | ||
| te_aldecas5 mapflag skill_duration HT_FLASHER,400 | ||
| te_aldecas5 mapflag skill_duration HT_FREEZINGTRAP,400 | ||
| te_aldecas5 mapflag skill_duration HT_BLASTMINE,400 | ||
| te_aldecas5 mapflag skill_duration HT_CLAYMORETRAP,400 | ||
| te_aldecas5 mapflag skill_duration HT_TALKIEBOX,400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -18,3 +18,4 @@ npc: npc/re/mapflag/night.txt | ||
| npc: npc/re/mapflag/restricted.txt | ||
| npc: npc/re/mapflag/town.txt | ||
| npc: npc/re/mapflag/reset.txt | ||
| npc: npc/re/mapflag/skill_duration.txt | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -28,3 +28,4 @@ npc: npc/mapflag/battleground.txt | ||
| npc: npc/mapflag/skill_damage.txt | ||
| npc: npc/mapflag/town.txt | ||
| npc: npc/mapflag/nocostume.txt | ||
| npc: npc/mapflag/skill_duration.txt | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.