summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
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/madostatueffectHaru8-9/+53
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-09Merge pull request #2590 from Kenpachi2k13/issue#2530Haru11-613/+948
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-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-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-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer10-59/+97
(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-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
2020-02-09Add npc functions for expanded barter shopsAndrei Karas4-7/+365
2020-02-09Add expanded barter shop constantAndrei Karas2-0/+2
2020-02-09Add packet CZ_NPC_EXPANDED_BARTER_CLOSEAndrei Karas4-0/+18
2020-02-09Update keys and shuffle packetsAndrei Karas5-20/+36
2020-02-09Update messages tableAndrei Karas3-11/+194
2020-02-09Merge pull request #2248 from guilherme-gm/201810-asurafixHaru1-10/+24
Minor fixes to Asura Strike
2020-02-09Update Duel System CooldownEmistry Haoyan3-26/+13
- Able to set cooldown in "seconds" format. - New `duel_time_interval` value will be applied to any existing cooldown if new value is reloaded in-game using `@reloadbattleconf`. - Display the cooldown tick before can create new duel.
2020-02-09Merge pull request #2596 from dastgirp/skill_idx_refactorHaru2-43/+49
Changed logic of skill_get_index
2020-02-09Apply code style to npc_scriptcont() functionKenpachi Developer1-23/+32
2020-02-08Fixed the number of cells that 'Asura Strike' caster walks when it failsGuilherme G. Menaldo1-8/+18
2020-02-08Makes Asura Strike caster not change look direction at the end of the skillGuilherme G. Menaldo1-1/+4
2020-02-08Fixed duplicated 'Skill Failed' message on Asura StrikeGuilherme G. Menaldo1-1/+2
2020-02-08Change NPC ID validation in npc_scriptcont()Kenpachi Developer1-7/+13
npc_scriptcont() will now validate the NPC ID - if SECURE_NPCTIMEOUT is _not_ defined or - if SECURE_NPCTIMEOUT is defined and the charcters idle timer is still running.
2020-02-08Fix Homunculi being partially vaporized.skyleo1-1/+1
Vanilmirth for example would get incompletely vaporized when using HVAN_EXPLOSION, if the owner died due to it, and then it would be killed at the end of it. This produced a bug which made it not ressurectable but callable, once it was called it would be dead though and you'd be unable to control it, requiring you to ressurect it after that. This bug got introduced by 0eca88efc69becc591428fbb6b9fddd9237afd3d .
2020-02-06Merge pre-RE/RE case SP_VARCASTRATE in pc_readparam() functionKenpachi Developer1-2/+5
2020-02-06Fix W_RIFLE damage calculation being too low than intendedskyleo1-0/+1
Rifle type weapons had a broken call to battle_calc_base_damage2 since they were passing the flag value 18 and flag&16 != 0 as stated by the documentation shall only be the case when no gun or bow is equipped. This bug existed since 2006 and got introduced by the commit e24d467f1ae47475e3441d7453f549e22f46f541 .