summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-03-07Change execution order in pc_isequip() functionKenpachi Developer1-17/+18
Validating, if the item is disabled by the map's zone, should be done prior to the validation of the character's status changes. If not, equipment, enabled by Super Novice Spirit, is able to bypass the map zone restriction.
2020-03-07Add execution of unequip script when entering a zone where item is restrictedKenpachi Developer1-0/+59
In official servers, an item's unequip script is executed when entering a zone where the item is restricted, even if the item won't be unequipped.
2020-02-23Remove unequip_restricted_equipment dependency from OnEquipScript zone ↵Kenpachi Developer1-4/+14
validation The execution of the OnEquipScript should be prevented, regardless of the unequip_restricted_equipment configuration, if the item is restricted in that zone.
2020-02-23Remove unequip_restricted_equipment dependency from OnUnequipScript zone ↵Kenpachi Developer1-13/+5
validation The execution of the OnUnequipScript should be prevented, regardless of the unequip_restricted_equipment configuration, if the item is restricted in that zone.
2020-02-10HPM Hooks UpdateHercules.ws1-2/+1
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2020-02-10Fix warnings in the HPMHookGeneratorHaru1-2/+4
Signed-off-by: Haru <haru@dotalux.com>
2020-02-09HPM Hooks UpdateHaru5-0/+69
Signed-off-by: Haru <haru@dotalux.com>
2020-02-09Converted packet ZC_AUTORUN_SKILL to structure.Kenpachi Developer2-13/+26
2020-02-09Added skill_is_item_skill() function.Kenpachi Developer4-10/+24
2020-02-09Added pc_itemskill_clear() function.Kenpachi Developer6-22/+37
2020-02-09Moved the WZ_EARTHSPIKE check for TK_SPTIME skill from ↵Kenpachi Developer3-10/+17
skill_check_condition_castbegin() to pc_useitem().
2020-02-09Implemented the consumption of 10 SP when using Earth Spike Scroll while ↵Kenpachi Developer1-2/+5
SC_EARTHSCROLL is active.
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 Developer5-4/+15
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 Developer4-2/+18
skill without cast time.
2020-02-09Fixed skill conditions check and <flag> parameter in itemskill() script command.Kenpachi Developer5-49/+98
* 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 #2627 from Kenpachi2k13/issue#2073Haru1-26/+41
Change NPC ID validation in npc_scriptcont()
2020-02-09Merge pull request #2626 from skyleo/homunculus_ghost_fixHaru1-1/+1
Fix Homunculi being partially vaporized.
2020-02-09Merge pull request #2624 from Kenpachi2k13/issue#1311Haru1-2/+5
Merge pre-RE/RE case SP_VARCASTRATE in pc_readparam() function
2020-02-09Merge pull request #2623 from skyleo/rifle_atk_fixHaru1-0/+1
Fix W_RIFLE damage calculation being too low than intended
2020-02-09Merge pull request #2622 from Kenpachi2k13/mob_viewdata_fixHaru1-0/+4
Make mob DB field ViewData->HairStyleId defaulting to 1 instead of 0.
2020-02-09Merge pull request #2586 from Asheraf/madostatueffectHaru10-17/+61
Implement support for switching madogear type
2020-02-09Merge pull request #2619 from dastgirp/getunits/fixHaru2-1/+11
Crash fixes
2020-02-09Merge pull request #2617 from Kenpachi2k13/issue#2607Haru1-0/+1
Added an initial dmg_taken_rate value to clone spawns.
2020-02-09Merge pull request #2618 from Kenpachi2k13/issue#2558Haru1-18/+25
Updated PR_STRECOVERY to only cure status effects if defence element is not Undead.
2020-02-09Added an initial dmg_taken_rate value to clone spawns.Kenpachi Developer1-0/+1
Mobs, spawned by mob_clone_spawn() function were invulnerable, because their dmg_taken_rate was never set and thus became 0. Now, dmg_taken_rate will be set 100 to remove that invulnerability.
2020-02-09HPM Hooks UpdateHercules.ws1-1/+1
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2020-02-09Merge pull request #2590 from Kenpachi2k13/issue#2530Haru17-672/+1094
Change unload NPC behavior to kill mobs that were spawned by unloaded NPC (non-permanent monster spawns) [Issue #2530]
2020-02-09HPM Hooks UpdateHercules.ws5-0/+34
Signed-off-by: HerculesWSAPI <dev@herc.ws>
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-09Add a function to send PACKET_ZC_STATE_CHANGE to a single targetAsheraf2-0/+29
2020-02-09Update PACKET_ZC_STATE_CHANGE to use struct formatAsheraf2-38/+39
2020-02-09Update ACMD(unloadnpcfile) path verificationKenpachi Developer1-9/+11
2020-02-09Update ACMD(reloadnpc) path verificationKenpachi Developer1-9/+11
2020-02-09Define MAX_DIR_PATH for WIN32, tooKenpachi Developer2-4/+10
2020-02-09Add is_file() functionKenpachi Developer2-0/+41
2020-02-09Applied code style and added some minor code improvements to src/map/mob.c.Kenpachi Developer1-337/+472
2020-02-09Applied code style and added some minor code improvements to src/map/npc.c.Kenpachi Developer1-73/+124
2020-02-09Applied code style to touched script commands.Kenpachi Developer1-58/+91
2020-02-09Applied code style and added some minor code improvements to ↵Kenpachi Developer2-20/+73
src/map/atcommands.c. * Applied code style to touched @commands. * Added file path validation where fopen() is used to make sure a TXT file is passed. * Added new messages for file name validation to conf/messages.conf. * increased MAX_MSG to be able to use the new messages.
2020-02-09Applied code style and some minor improvements.Kenpachi Developer3-123/+144
* Added new message 1517 (Script could not be unloaded.) * Applied code style to several functions I touched. * Added some minor improments to the function where I applied code style.
2020-02-09Added missing changes to HPMHooking.Defs.inc.Kenpachi Developer1-14/+16
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer13-101/+177
(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-09HPM Hooks UpdateHercules.ws5-0/+300
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2020-02-09Enable packet ZC_SE_CASHSHOP_OPEN for main and re clientsAndrei Karas2-2/+2
2020-02-09Dont save barter and expanded barter entries into db if amount is -1Andrei Karas1-1/+4
2020-02-09Add script commands for expanded barter shopsAndrei Karas2-27/+295
2020-02-09Add expanded barter shop packetsAndrei Karas4-1/+168