summaryrefslogtreecommitdiff
path: root/npc
AgeCommit message (Collapse)AuthorFilesLines
2016-11-20Replaced some unsupported symbols in AegisNames (step 2)Haru61-285/+285
This removes the remaining unsupported symbols (despite they being official names) in AegisNames: The apostrophe (`'`) sign is suppressed. The full replacement rules (cumulative with the step 1 commit) are thus: - Any apostrophe is suppressed. - Any non-`[A-Za-z0-9_]` character is replaced with an underscore (`_`). - If the replaced symbol is at a word boundary (beginning or end of the string, or next to another underscore), it is suppressed instead. - If the replacement causes an AegisName conflict, underscores are appended appropriately. Signed-off-by: Haru <haru@dotalux.com>
2016-11-20Replaced some unsupported symbols in AegisNames (step 1)Haru1-1/+1
This removes some unsupported symbols (despite they being official names) in AegisNames. The replacement rules used are: - Any non-`[A-Za-z0-9_']` character is replaced with an underscore (`_`). - If the replaced symbol is at a word boundary (beginning or end of the string, or next to another underscore), it is suppressed instead. - If the replacement causes an AegisName conflict, underscores are appended appropriately. Signed-off-by: Haru <haru@dotalux.com>
2016-11-20Propageted the AegisName fix to scripts and pre-re databaseHaru8-92/+93
This commit just propagates the AegisName changes to the pre-re database and to the (re) scripts. Two issues are fixed as a side-effect: - The ghost_palace script was referring the non-existing constant(s): Thanatos_Two-Handed_Staff == (Thanatos_Two) - (Handed_Staff) == 0. Paired with the script engine's inability to differentiate between constants and player variables, that produced a very subtle issue. - The item RAG203 is sold by a NPC (Rebellion Weapon Vending). Due to a pair of swapped AegisName constants (RAG203 and RAG203_), the slotted version was sold by the NPC instead of hte non-slotted one (the issue was actually fixed in the previous commit, although the description of the fix is here - these two commits are only split for legibility purposes but they're to be considered indivisible). Signed-off-by: Haru <haru@dotalux.com>
2016-10-30Re-added the taekwon jobchange quest to the pre-renewal scripts ↵Haru2-2/+4
configuration, fixed a typo in the script - Caused by 0a097048 - Related: da4f4033 (resolved the same issue for renewal) Signed-off-by: Haru <haru@dotalux.com>
2016-10-22Implemented SU_BASIC_SKILL Skill of SummonerDastgir Pojee1-2/+3
Added Function for Basic Skills check.
2016-10-18close2 in eye_of_hellion.txtRidley1-1/+1
followup 2f06704ee introduced in 6006bca05 when the script was rewritten.
2016-10-16Merge pull request #1473 from Ridley8819/0hpHaru12-32/+38
Fix cases were player were executed
2016-10-16Fixes cases where player were executedRidley12-36/+42
On Aegis players set their HP to 0 by script are still alive. Since we don't want to copy this, scripts that set HP to 0 and expects the player to stay alive are changed. Additionally some scripts where changed where the HP were set to 1% instead to 1 HP and also the percentheal -100 with intended death set into close2. In megingard_seal.txt a end; was missing.
2016-10-16Merge pull request #1472 from Asheraf/getcharidIbrahem Hossam75-318/+318
Change *getcharid to use constants
2016-10-16Change *getcharid to use constantsAsheraf75-318/+318
2016-10-08Fixes wrong warp of izludeDastgir Pojee1-1/+6
2016-10-04Added support to Para_Team_Mark_ item in Eden Group.AtlantisRO14-30/+50
2016-10-03followup 805a2b3bRidley1-13/+15
added missing end; and parantheses
2016-10-03Initial dimensional gap commit (#1431)Ridley6-2/+639
* Initial Dimensional Gap NPC's
2016-10-02Update Intro (Renewal) (#1427)Ridley4-10093/+10366
* Update Intro (Renewal) - Conversion while Playing from kRO - New starting Map: iz_int 18 27 (Requires New kRO MAP) - iz_int01 - iz_int04 and int_land01 - int_land04 are added, but not used - the rest of the script was updated to latest script standards - x/y span for duplicates with OnTouch - Fixed wrong getarg - removed +"" in warp
2016-09-11removed unnecessary lines (thx to Aleos)Ridley88196-128/+139
added missing mapflags for c_tower2_ and c_tower3_
2016-09-10Merge pull request #1385 from Asheraf/saras_memoryhemagx12-1050/+962
Cleanup Sara's memory instance Closes #1385 as merged
2016-09-10Cleanup Sara's memory instanceAsheraf9-320/+260
* Now it follow Hercules coding style * Various improvments to HULD support
2016-09-09Followup 0a097048 #1419Ridley88192-2/+4
Fix issue#[1418](https://github.com/HerculesWS/Hercules/issues/1418) .conf format
2016-09-02Merge pull request #1414 from skyleo/minor_quest_fixesIbrahem Hossam1-4/+4
Fixed Mixed Solution No.3 Arc never being assigned and repositioning
2016-09-02change *strcharinfo to use constantsAsheraf225-4493/+4493
2016-09-01Fixed Mixed Solution No.3 Arc never being assigned and occurrence of ↵skyleo1-4/+4
questlog errors in map.
2016-08-29*strnpcinfo now uses constantsAsheraf79-1857/+1857
- NPC_NAME for the whole npc name including hidden part - NPC_NAME_VISIBLE for the visible part of the npc name - NPC_NAME_HIDDEN for the hidden part of the npc name - NPC_NAME_UNIQUE for the npc unique name - NPC_MAP for npc map
2016-08-26Implementation of Ghost palace instance based on iROAsheraf11-1/+865
* Added ghost palace instance script * Add needed monster, item and quest database entries * Added mapflags for instance map (1@spa)
2016-08-21Removed some of the leftover calls to menu() in custom scriptsHaru16-2074/+2047
Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported npc config to libconfigHaru21-980/+1023
Ported to modern Hercules and cleaned up from Panikon's commits: ca009582cb22340951aa3e86c044ec1dca05df36, 6d6adf9bab2ba6f4274395018b8def566b880197 Signed-off-by: Haru <haru@dotalux.com>
2016-08-17Nightmare Clock Tower DungeonRidley88193-2/+180
- added mobs and (updated) skills - added quests_aldebaran.txt - iro dialogues - all items are already in available in item_db.conf - maps are already available in mapcache, index and .conf - Updated item effect for Pocket_Watch_ and Pocket_Watch__, and their combo with Memorize_Book and Pocket_Watch__ Closes #1389 as merged Signed-off-by: Haru <haru@dotalux.com>
2016-08-13Added missing close;skyleo1-0/+1
2016-08-09Merge pull request #1392 from skyleo/script_fixesDastgir3-6/+7
Fixes to Doctor Quest, Crazy Uproar Quest, Kafra HQ's Potato Trader
2016-08-08Fixed a variable name typo that Kafra Headquarter's Potato Trader always ↵skyleo1-3/+3
enter you into the lottery. And fixed a scope typo that broke the correct display of a menu.
2016-08-08Added missing changequest at one quest route in Luoyang Doctor Quest. ↵skyleo1-0/+1
(Questlog wouldn't be cleaned before)
2016-08-08Fixed wrong requirements for Crazy Uproar Quest. Alchemists & Blacksmiths ↵skyleo1-3/+3
needed to be JLVL 15 or higher.
2016-08-02Sara's Memory Instance implementationRidley88192-0/+1868
* implementation of Sara's memory instance * Update and add missing Sara's memory monster database * Update and add missing Sara's memory quest database
2016-08-01Update Old Glastheim announces to use C_colorAsheraf1-22/+22
* now announce commands use constant colors instead of hexadecimal. * added new color C_SPRINGGREEN
2016-07-21Update OGH change donpcevent to npctalkAsheraf1-417/+84
change all old glast heim ontalk syntaxes to npctalk
2016-07-21Followup d5d646c (#1374)Ridley1-5/+5
* Followup d5d646c74cb3a04f6758996a0ab99e760fd92ddd missing ( ) in npctalk and unittalk
2016-07-20Old Glast Heim and Nightmare Glast Heim implementationRidley88193-848/+2049
-- adding glast heim Monsters/Items/Quests full entries -- corrected already existed glast heim items/quest/monsters entries -- added Old Glast Heim Enchanter -- Changed .MyMobs to 'MyMobs -- Added H.U.L.D suppot
2016-07-10HULD-compliance: updated npc/battleground/Haru12-1480/+1485
Signed-off-by: Haru <haru@dotalux.com>
2016-07-10HULD-compliance: updated npc/airports/Haru7-935/+971
- Simplifies translations by reducing 376 strings (2200 lines) Signed-off-by: Haru <haru@dotalux.com>
2016-07-10Fixed a typo in the alchemist.txt scriptHaru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-07-10Fixes Mystery Burglary QuestRidley88191-1/+1
-NPC checked for wrong quest and therefore didn't do anything on that part of the quest.
2016-06-26Fixed a typo in the last edit of alchemist.txt (missing comma)Haru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Fixed some script errorsHaru6-10/+10
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Replaced _() with _$() in scripts, where appropriateHaru2-9/+9
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Proof-of-concept best scripting practices for HULD (draft)Haru1-102/+159
- Replaced hardcoded item names with getitemname() Only the npc/jobs/2-2/alchemist.txt script was modified, as a proof of concept. Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Proof-of-concept best scripting practices for HULDHaru1-676/+776
- `mes` strings are split by sentences: each string contains one and only one sentence. Line-break hints are specified with \r (and for readability the string is split in multiple lines with parse-time concatenation, without using the '+' operator) - When sentences need concatenation (variable names or values), sprintf is used, so that the generated translatable string is still one and only one. The `_()` macro is used inside sprintf, to mark the string as translatable. - `select()` / `prompt()` entries are in separate entries, separated by commas, where possible (it makes their translation easier) - This makes it easier to translate NPCs to languages with different sentence ordering (and with longer or shorter sentences). In the generated .pot, sentecnes will no longer span across several strings. Only the npc/jobs/2-2/alchemist.txt script was modified, as a proof of concept. Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Re-implemented BUILDIN(sprintf)Haru1-0/+18
- The function now checks its arguments, rather than passing them to the system implementation (safer against arbitrary memory access or wrong variable type) - Implemented positional ('%1$d') specifiers (POSIX style) - See script_commands.txt for details about the supported format specifiers. Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Corrected various translation/text encoding issuesHaru16-335/+316
- The generated translation file now loads cleanly without encoding conversion errors Signed-off-by: Haru <haru@dotalux.com>
2016-06-21Merge pull request #1318 from AtlantisRO/masterDastgir2-0/+40
Added missed npc Scamp in renewal location of izlude from Shadow Rekember quest.
2016-06-20Added missed npc Scamp in renewal location of izlude from Shadow Rekember quest.AtlantisRO2-0/+40