summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-08Change returning error-code in unit->walktoxy to obey code-style guidelinesskyleo1-7/+10
2020-03-08Refactor code using directions to use enum unit_dirskyleo1-13/+13
This removes a lot of duplicated code, especially related to people not using the arrays dirx and diry. Assertions for whenever these arrays are used have been added as well, to ensure valid index range. Some trailing white space has been removed as well.
2020-03-08Added Item Bound Type constantsEmistry Haoyan1-0/+7
- improve readability.
2020-02-09Added pc_itemskill_clear() function.Kenpachi Developer1-6/+5
2020-02-09Applied code style to BUILDIN(itemskill).Kenpachi Developer1-23/+29
2020-02-09Added itemskill option flags to the script constants.Kenpachi Developer1-0/+6
2020-02-09Added a new option flag to itemskill() script command to be able to ↵Kenpachi Developer1-2/+3
forcefully cast skill on on invoking character.
2020-02-09Added a new option flag to itemskill() script command, to be able to cast a ↵Kenpachi Developer1-1/+2
skill without cast time.
2020-02-09Fixed skill conditions check and <flag> parameter in itemskill() script command.Kenpachi Developer1-7/+18
* itemskill() script command should check for the skill's conditions and also consumes them. SP are not consumed. * The same applies to Hocus-pocus skill. Conditions should be checked and consumed, SP are not consumed. * This was bugged for more than 6 years now. See linked bug report and commits. Related bug: * https://herc.ws/oldboard/tracker/issue-7210-itemskill-command-does-not-check-for-required-items/ Related commits: * https://github.com/HerculesWS/Hercules/commit/b864056b8d088660fca9129bddad477732ed8df9 * https://github.com/HerculesWS/Hercules/commit/07272f7a16db87970583286db03167ca79604a69
2020-02-09Merge pull request #2586 from Asheraf/madostatueffectHaru1-3/+16
Implement support for switching madogear type
2020-02-09Merge pull request #2619 from dastgirp/getunits/fixHaru1-0/+7
Crash fixes
2020-02-09Merge pull request #2590 from Kenpachi2k13/issue#2530Haru1-58/+91
Change unload NPC behavior to kill mobs that were spawned by unloaded NPC (non-permanent monster spawns) [Issue #2530]
2020-02-09Add script command achievement_iscompleted to check for achievement statusAsheraf1-0/+18
2020-02-09Add new script commands cloakonnpc/cloakoffnpcAsheraf1-0/+52
2020-02-09Applied code style to touched script commands.Kenpachi Developer1-58/+91
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer1-3/+3
(non-permanent monster spawns) [Issue #2530] Mobs spawned by NPC will be removed on @reloadnpc, @unloadnpc, and @unloadnpcfile. Additionally OnNPCUnload NPC label was added, to revert other changes made by NPC. For example set/removed mapflags or added mob drops.
2020-02-09Add script commands for expanded barter shopsAndrei Karas1-27/+294
2020-02-09Add expanded barter shop constantAndrei Karas1-0/+1
2020-01-29Implement support for switching madogear typeAsheraf1-3/+16
2020-01-25Added a check in getunits to not proceed if mapname is invalid.Dastgir1-0/+7
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2020-01-12Merge pull request #2604 from Kenpachi2k13/issue#1861Haru1-123/+159
Add flag to ignore mapflag restrictions in warpparty() and warpguild() script commands.
2020-01-12Merge pull request #2606 from Ridley8819/pcblocknpcHaru1-0/+7
Adding PCBLOCK_NPC to setpcblock script command
2020-01-12Adds buildin_resetfeel, buildin_resethate and acmd_hatereset.EyesOfAHawk1-0/+34
2020-01-09Moved variable declarations out of the for loops, as requested.Kenpachi Developer1-40/+27
2020-01-09Adding PCBLOCK_NPC to setpcblock script commandRidley1-0/+7
2020-01-08Added missing argument qualifier to the definitions of `warpparty()` and ↵Kenpachi Developer1-2/+2
`warpguild()`.
2020-01-08Re-added mapflag restrictions to warpguild() and introduced a flag to ↵Kenpachi Developer1-6/+30
disable them as requested.
2020-01-07Re-added mapflag restrictions to warpparty() and introduced a flag to ↵Kenpachi Developer1-9/+33
disable them as requested.
2020-01-05Applied code style to warpparty() and warpguild() script commands.Kenpachi Developer1-116/+125
2020-01-05Removed nowarp and noreturn mapflag restrictions from warpparty() and ↵Kenpachi Developer1-16/+8
warpguild() script commands.
2019-12-12Add script function specialeffectnumAndrei Karas1-0/+51
2019-11-17Merge pull request #2577 from Asheraf/dehardcodestatusiconsHaru1-2/+1
Dehardcode Status Icons
2019-11-17Merge pull request #2569 from guilherme-gm/fix-huld-rHaru1-0/+12
Makes HULD .po files read \r as a control character
2019-11-17Merge pull request #2566 from Helianthella/guildHaru1-7/+108
add getguildinfo()
2019-11-06Dehardcode Status IconsAsheraf1-2/+1
2019-10-27Makes HULD .po files read \r as a control characterGuilherme Menaldo1-0/+12
This fixes loading .po files of NPCs that has multi-line mes split with \r.
2019-10-20deprecate buildin_getguildmasteridgumi1-1/+1
2019-10-20deprecate buildin_getguildmastergumi1-1/+1
2019-10-20deprecate buildin_getguildnamegumi1-1/+1
2019-10-20add buildin_getguildinfogumi1-4/+105
2019-10-20Merge pull request #2547 from guilherme-gm/201910-dehardcode-dbHaru1-1/+2
Dehardcode DB files path
2019-10-18Merge pull request #2492 from dastgirp/huld/splitHaru1-40/+83
Split HULD translations to per NPC file instead of one large file
2019-10-18Merge pull request #2540 from dastgirp/fix/buffer-overflow-npcshopdelHaru1-3/+5
Fixed heap-buffer-overflow on npcshopdelitem
2019-10-05Dehardcodes db files base path so the db folder can be easily movedGuilherme Menaldo1-1/+2
2019-10-02Fixed MultiLine support for translationsDastgir1-16/+25
2019-10-02Load translations from a directory rather than a fileHaru1-24/+58
2019-10-02Fixed heap-buffer-overflow on npcshopdelitemDastgir1-3/+5
npcshopdelitem now moves data within structure size.
2019-09-23Merge pull request #2336 from Asheraf/lapineddukddakHaru1-0/+37
Implementation of LapineDdukDdak System
2019-09-23Merge pull request #2536 from MishimaHaruna/compile-fixesHaru1-1/+1
Compile fixes