summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-11-19Release v2017.11.19v2017.11.19Haru1-0/+41
Signed-off-by: Haru <haru@dotalux.com>
2017-11-18HPM Hooks UpdateAsheraf4-34/+34
2017-11-18Implement Homunculus autofeedingAsheraf12-23/+69
2017-11-18HPM Hooks UpdateHercules.ws5-0/+34
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-11-18Merge pull request #1901 from MishimaHaruna/sql-bind-typesHaru10-309/+362
Correct and sanitize SQL bind types
2017-11-18Merge pull request #1903 from Asheraf/skill_scaleHaru7-0/+88
Implement skill scale packet for client versions >= 20151223.
2017-11-18Constants Documentation SyncHercules.ws1-0/+20
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-11-18Merge pull request #1902 from MishimaHaruna/getiteminfo-fixHaru17-161/+308
getiteminfo() / setiteminfo() fixes
2017-11-18Correct an issue in the RODEX when MAX_SLOTS or MAX_ITEM_OPTIONS have custom ↵Haru1-68/+80
values
2017-11-18Assert on the right buffer size on the StmtBind functionsHaru1-36/+59
Signed-off-by: Haru <haru@dotalux.com>
2017-11-18Pass the correct types and sizes to the StmtBind functionsHaru10-231/+249
Fixes #1531 (and other similar issues) Signed-off-by: Haru <haru@dotalux.com>
2017-11-18Merge pull request #1896 from MishimaHaruna/skill_id_idxHaru21-515/+1012
Skill ID / IDX fixes
2017-11-18Merge pull request #1862 from AtlantisRO/standardizationHaru1-1168/+1092
Applied standardization to EndlessTower script
2017-11-18Merge pull request #1469 from dastgir/2016-3_IOT_NONEHaru1-26/+44
Fixes #1397
2017-11-16update skill db entries to support ShowSkillScaleAsheraf2-0/+34
2017-11-16Implement skill scale packet for client versions >= 20151223.Asheraf7-0/+54
2017-11-12Rewrite F_GetArmorType to reflect the fact that ITEMINFO_LOC returns a bitmaskHaru1-27/+72
The function now handles multi-slot headgears and other uncommon cases better. Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Add F_GetAmmoType global function, counterpart to F_GetWeaponType for ↵Haru1-0/+25
ammunitions Both functions have now been updated to only check the subtype if the item type is correct (IT_AMMO for F_GetAmmoType, IT_WEAPON for F_GetWeaponType) Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Add ITEMINFO_VIEWSPRITE support to getiteminfo() / setiteminfo().Haru5-1/+11
Adds the ability to query an item's view sprite, lost with #1828 Fixes #1895 Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Add ITEMINFO_MATK support to getiteminfo() / setiteminfo().Haru4-2/+10
This item info type was documented in commit 315d632e69c60d2996872c9330164133101befdf, but never implemented. Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Add type constants for the getiteminfo()/setiteminfo() buildinsHaru17-157/+216
Replacements are as follows: 0 => ITEMINFO_BUYPRICE 1 => ITEMINFO_SELLPRICE 2 => ITEMINFO_TYPE 3 => ITEMINFO_MAXCHANCE 4 => ITEMINFO_SEX 5 => ITEMINFO_LOC 6 => ITEMINFO_WEIGHT 7 => ITEMINFO_ATK 8 => ITEMINFO_DEF 9 => ITEMINFO_RANGE 10 => ITEMINFO_SLOTS 11 (Subtype, for weapons and ammunitions) => ITEMINFO_SUBTYPE 11 (ViewSprite, for other item types) => ITEMINFO_VIEWSPRITE (NOT AVAILABLE YET) 12 => ITEMINFO_ELV 13 => ITEMINFO_WLV 14 => ITEMINFO_VIEWID 15 => ITEMINFO_MATK (NOT AVAILABLE YET - this was documented but never implemented) Calls to getiteminfo() and setiteminfo() have been replaced with the newly introduced constants. Other constants (such as W_ weapon subtypes) in related code have been replaced as well, to improve code readability. This fixes an issue in the Eden Tutorial script "Tutorial Goal", where ITEMINFO_ATK was accidentally used instead of ITEMINFO_WEIGHT. Note: calls to getiteminfo or setiteminfo with numeric type arguments in third party scripts must be replaced with the respective constants. The use of numeric literals is no longer recommended, and those values may change in the future without notice. See the getiteminfo documentation for details. Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Merge pull request #1836 from Emistry/script_F_GetArmorTypeHaru1-3/+16
Update F_GetArmorType()
2017-11-05HPM Hooks UpdateHaru4-263/+399
Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Fix/clarify various incorrect modulo operationsHaru4-26/+27
Most relevantly, `skill_lv%11 - 1` is not a valid skill item requirement index, since it can return -1 depending on the skill_lv. It was replaced with `(skill_lv - 1) % MAX_SKILL_ITEM_REQUIRE`, which always returns a value in the 0 ~ MAX_SKILL_ITEM_REQUIRE range. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 2)Haru14-42/+44
Remove MAX_SKILL in favor of MAX_SKILL_DB, when referring to the maximum skill DB index. This is opposed to MAX_SKILL_ID, the maximum skill ID. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Use the skill DB accessors where possible/appropriateHaru4-64/+76
This includes some renamed local variables, in order to minimize the cases of unsafe variable reuse. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Merge pull request #1873 from AtlantisRO/Standardization-SealedShrine.txtAsheraf1-948/+931
Applied standardization to SealedShrine script
2017-11-05Merge pull request #1872 from AtlantisRO/Standardization-OrcsMemory.txtAsheraf1-377/+349
Applied standardization to OrcsMemory script
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 1)Haru2-116/+494
Rewrite skill DB accessors to clarify the difference between IDs and indexes, and to report a backtrace to the console when an invalid ID is passed. The type of the skill_id and skill_lv arguments has been changed to int. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Fix a subtle error in case skill->unit_group_newid overflowsHaru1-7/+8
The incorrect handling of the overflowed values would cause certain skill unit entries to get stuck and never get deleted correctly. A possible symptom of the issue are monsters that become immune to certain AoE spells having the UF_NOOVERLAP flag (Storm Gust, Lord of Vermillion, etc). Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Constants Documentation SyncHercules.ws1-0/+2
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-11-05HPM Hooks UpdateHercules.ws4-0/+33
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-11-05Merge pull request #1893 from 4144/npc_viewdataHaru7-16/+97
Allow set equipment and other styles to npcs, use player sprites for npcs.
2017-11-04Refresh npc after changing fields in setunitdata.Andrei Karas4-11/+31
2017-11-04Add into setunitdata/getunitdata new options UDT_ROBE and UDT_BODY2.Andrei Karas3-0/+14
2017-11-04Add view_data related fields to npc into setunitdata/getunitdata.Andrei Karas1-0/+37
2017-11-04Allow each npc use own view_data structure.Andrei Karas4-6/+16
Allow npc to use player classes (for older than 20170726 npc visible as players). View_data structure can be copied from predefined view_data lists created new if npc using player type.
2017-11-04Merge pull request #1889 from 4144/fixpacketsHaru9-17/+122
Fix boss flag and add 2017-10-25 client packets
2017-11-04Constants Documentation SyncHercules.ws1-0/+5
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-11-04Merge pull request #1894 from Asheraf/qtypeHaru3-29/+54
update qtype constants to support new 2017 client icons.
2017-11-04Merge pull request #1865 from dastgir/2017-1_equipoption_modHaru2-15/+21
setequipoption Modification
2017-11-02update qtype constants to support new 2017 client icons.Asheraf3-29/+54
2017-11-01Add support for 2017-10-25 - 2017-11-01 clients.Andrei Karas2-2/+86
2017-10-30Add monster spawn boss flag for miniboss: miniboss_monsterAndrei Karas7-15/+36
also fix boss_monster flag for works as mvp and not like mini boss. unhide boss flag if hp bar disabled.
2017-10-30HPM Hooks UpdateHercules.ws4-0/+438
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-10-30Merge pull request #1891 from 4144/listcolorHaru4-17/+125
Add ability to show char servers list with colors based on players count.
2017-10-29Changes to npc\instances\re\BuwayaCave.txt script to fit Hercules' Standards.AtlantisRO1-230/+230
- Added mesf and sprintf commands where needed. - Added _$() and _() macros where needed. - Added curly brackets, paragraph breaks, parentheses and spaces to fit Hercules' Standards. - Changed numeric arguments for constants. Signed-off-by: Ragno <ragno@atlantis-ro.net>
2017-10-29Changes to npc\instances\re\EclageInterior.txt script to fit Hercules' ↵AtlantisRO1-367/+371
Standards. - Added mesf and sprintf commands where needed. - Added _$() and _() macros where needed. - Added curly brackets, paragraph breaks, parentheses and spaces to fit Hercules' Standards. - Changed numeric arguments for constants. Signed-off-by: Ragno <ragno@atlantis-ro.net>
2017-10-29Merge pull request #1884 from AtlantisRO/Standardization-saras_memory.txtAsheraf1-515/+514
Applied standardization to saras_memory script
2017-10-29Merge pull request #1879 from AtlantisRO/Standardization-ghost_palace.txtAsheraf1-194/+213
Applied standardization to ghost_palace script