summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2017-12-05Add all left Ragnarok zero shuffle packets.Andrei Karas1-0/+174
2017-12-02Add non shuffle packets for kro zero clients (only in packets.h)Andrei Karas1-0/+37
2017-12-02Add shuffle packets for kro zero clients 2017-10-19aRagexe to 2017-11-13bRagexe.Andrei Karas1-0/+47
2017-12-02Add comments to packets.h for possible shuffle packets with known stable sizes.Andrei Karas1-521/+521
2017-12-02Split normal packets and shuffle packets into separate files.Andrei Karas4-7041/+7080
Normal packets in packets.h Shuffle packets in map/packets_shuffle.h Info: shuffle packets for 2013 clients and older still in packets.h because most of it mixed between shuffle and non shuffle packets.
2017-12-02Add missing cutin packet value comment.Andrei Karas1-0/+1
2017-12-02Add missing kick reasons into clif_authfail_fd.Andrei Karas1-0/+2
2017-12-02Add packets for ragexeRE client from 20171108 to 20171129.Andrei Karas1-0/+144
2017-12-02Add new packet keys for ragexeRE clients + packet keys for all released zero ↵Andrei Karas1-505/+208
clients.
2017-12-02Use skill inf value as int32 in all packets.Andrei Karas1-4/+2
Before some packets had skill inf as int16 + unknown int16 field.
2017-11-28Fix invisible NPCs (such as FAKE_NPC) showing up as NoviceHaru1-1/+1
Use the correct view data (INVISIBLE_CLASS) when initializing new NPCs. The issue was introduced in #1893 Fixes #1916 Signed-off-by: Haru <haru@dotalux.com>
2017-11-26Fix handling of the special case of SplashRange < 0 meaning AREA_SIZEHaru1-3/+6
This restores the behavior that was broken in 2b4bfa5d0. Fixes #1911 Signed-off-by: Haru <haru@dotalux.com>
2017-11-24Allow using the skill DB accessors on non-skill attacks (skill_id = 0)Haru3-54/+188
This suppresses an assertion in the skill DB accessors when called with `skill_id = 0` (such as during normal attacks). In such case, they'll now return an appropriate zero value, as it happened before 2b4bfa5d0. Fixes #1909 Signed-off-by: Haru <haru@dotalux.com>
2017-11-18Merge pull request #1901 from MishimaHaruna/sql-bind-typesHaru2-6/+6
Correct and sanitize SQL bind types
2017-11-18Merge pull request #1903 from Asheraf/skill_scaleHaru5-0/+52
Implement skill scale packet for client versions >= 20151223.
2017-11-18Merge pull request #1902 from MishimaHaruna/getiteminfo-fixHaru2-31/+90
getiteminfo() / setiteminfo() fixes
2017-11-18Pass the correct types and sizes to the StmtBind functionsHaru2-6/+6
Fixes #1531 (and other similar issues) Signed-off-by: Haru <haru@dotalux.com>
2017-11-18Merge pull request #1896 from MishimaHaruna/skill_id_idxHaru15-244/+634
Skill ID / IDX fixes
2017-11-18Merge pull request #1469 from dastgir/2016-3_IOT_NONEHaru1-26/+44
Fixes #1397
2017-11-16Implement skill scale packet for client versions >= 20151223.Asheraf5-0/+52
2017-11-12Add ITEMINFO_VIEWSPRITE support to getiteminfo() / setiteminfo().Haru2-0/+8
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().Haru2-0/+8
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() buildinsHaru2-31/+74
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-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)Haru12-34/+32
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-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-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 Karas2-0/+12
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/fixpacketsHaru8-17/+121
Fix boss flag and add 2017-10-25 client packets
2017-11-04Merge pull request #1894 from Asheraf/qtypeHaru1-18/+24
update qtype constants to support new 2017 client icons.
2017-11-04Merge pull request #1865 from dastgir/2017-1_equipoption_modHaru1-15/+20
setequipoption Modification
2017-11-02update qtype constants to support new 2017 client icons.Asheraf1-18/+24
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 Karas6-15/+35
also fix boss_monster flag for works as mvp and not like mini boss. unhide boss flag if hp bar disabled.
2017-10-23Fix warning with gcc-7.Andrei Karas1-1/+1
2017-10-22Fix an incorrect null check in BUILDIN(logmes)Haru1-2/+3
The incorrect check would cause the `logmes()` script command to never log to database (but rather output a backtrace to the console) Signed-off-by: Haru <haru@dotalux.com>
2017-10-21Fix various warnings on Visual Studio 2017Haru2-19/+17
Fixes #1867 Signed-off-by: Haru <haru@dotalux.com>
2017-10-21Merge pull request #1833 from Emistry/mapflag_noautolootHaru6-0/+10
Add NoAutoloot mapflag
2017-10-21Merge pull request #1825 from HerculesWS/cardfixHaru1-32/+3
Remove separate cardfix definition for pre-re/re
2017-10-22Add NoAutoloot mapflagEmistry Haoyan6-0/+10
- Enable server to disable autoloot settings for certain maps.
2017-10-21Merge pull request #1854 from Asheraf/skillHaru1-1/+2
Change skill_init_unit_layout to report skill id instead of index
2017-10-21Add names for some unnamed enums.Andrei Karas1-3/+3
Need for packet parser.
2017-10-21Add rodex 2017 packets.Andrei Karas7-11/+131
2017-10-21Add packets for 64 bit exp.Andrei Karas7-57/+127
Also update some functions for support 64 bit exp calculation.
2017-10-21Add packets and keys for new clients.Andrei Karas2-0/+163
2017-10-21Change skill_init_unit_layout to report skill id instead of indexAsheraf1-1/+2