summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
AgeCommit message (Collapse)AuthorFilesLines
2017-04-09Merge pull request #1598 from Smokexyz/IROHaru1-3/+3
Implementation of Item Options System.
2017-04-04Implementation of Item Options System.Smokexyz1-3/+3
Allows the infusing of equipments with bonus item options. This feature is constrained to clients of packet versions greater than or equal to `20150226`. Item Options and their effects are defined server-side in `db/item_options.conf` and client side in `data/luafiles514/lua files/datainfo/addrandomoptionnametable.lub` The ID of the option must tally with the correct index of the description provided in the client side lua file to avoid bugs. IT_OPT_* keys and MAX_ITEM_OPTIONS macro are also exported from the source as constants. An additional flag `disable_options` has been added to sql, and as `DisableOptions: true/false (boolean, defaults to false !!for equipments only!!)` to item_db.conf files. Script commands documentation is also included. SQL file updates are included. Credits: [Smokexyz](https://github.com/Smokexyz) Style and Script Fixes by [Asheraf](https://github.com/Asheraf) Initial design Idea by [secretdataz](https://github.com/secretdataz)
2017-04-04Add missing non shuffle packets for 2014 - 2015 years.Andrei Karas1-1/+1
2017-03-21Fix map server auth packet for clients >= 20160330.Andrei Karas1-2/+6
2017-02-06Fixes named items having their names changed when near other players/name's ↵KirieZ1-0/+9
owner. Fixes #1206
2016-05-14Replaced 'int' with 'int32' (guaranteed size) in all packed structsHaru1-45/+45
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'char' (except 'char[]') with 'int8' (guaranteed size) in all ↵Haru1-11/+11
packed structs Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'short' with 'int16' (guaranteed size) in all packed structsHaru1-202/+202
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'unsigned int' with 'uint32' (guaranteed size) in all packed structsHaru1-62/+62
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'unsigned short' with 'uint16' (guaranteed size) in all packed structsHaru1-39/+39
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'unsigned char' with 'uint8' (guaranteed size) in all packed structsHaru1-77/+77
Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Refactored the chat message packet processing functionsHaru1-0/+13
- Split the processing of public chat messages and whisper messages in two functions, to make them more straightforward. Signed-off-by: Haru <haru@dotalux.com>
2016-04-16Rewrite client interface for login server (part 1)hemagx1-1/+6
Rewritten incoming/outgoing packet handlers to use structs instead of manipulating the WFIFO buffer bytes directly Signed-off-by: Haru <haru@dotalux.com>
2016-03-19Updated Entity PacketsDastgir1-0/+3
2016-02-24Edited npc->market_buylist() to use the new struct itemlistHaru1-2/+1
- The npc-side code no longer depends on the client data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Added const qualifier to various variable/argument pointersHaru1-0/+1
- This is necessary for compatibility with a const RP2PTR/RFIFO2PTR Signed-off-by: Haru <haru@dotalux.com>
2016-01-12Whitespace cleanup (removed alignment tabs or trailing whitespace at line end)Haru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2015-12-25Implemented NoViewIDDastgir1-1/+1
(http://herc.ws/board/topic/10020-official-mapflag-to-disable-viewid/) Closes #926 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-25Added New ViewEquip packetDastgir1-1/+3
2015-12-25New Entity Packets Implemented (Thanks to Rytech)Dastgir1-10/+45
2015-12-15Added GPL-compliant header to all sources and build scriptsHaru1-2/+19
Signed-off-by: Haru <haru@dotalux.com>
2015-12-02Fixed compile errors on very old PACKETVERsHaru1-2/+6
- Fixes #903 and other similar problems Signed-off-by: Haru <haru@dotalux.com>
2015-10-21Fixed Typos (+1 squashed commits)ossi01101-0/+48
Squashed commits: [18d0374] Fixed Quest Log Packet for 2014-10-22 + Clients Added log Folder to be able to capture Map Server Logs see map-server.conf for it Added save folder to be able to dump unknown packets
2015-08-27Hotkey Rotate Packet ImplementedDastgir1-0/+19
2015-08-27Fixes Unidentified items bug in client >= 20150226Dastgir1-4/+4
2015-08-16New EquipPackets SupportDastgir1-8/+55
2015-06-19Fixed some conditionally-declared packet structures causing plugin build ↵Haru1-2/+10
failures Signed-off-by: Haru <haru@dotalux.com>
2015-06-19Removed ".." from include directivesHaru1-2/+2
- Include directives are now directory-independent. - This will allow building plugins from other directories in future. Signed-off-by: Haru <haru@dotalux.com>
2015-06-02Follow up to 712812bMysteries1-1/+1
- More link changes - Added proper link to Roulette topic
2014-11-16Whitespace cleanup (no code changes)Haru1-3/+3
This includes, and is not limited to: mixed or wrong indentation, excess whitespace (horizontal and vertical), misalignment, trailing spaces. Signed-off-by: Haru <haru@dotalux.com>
2014-11-03Introducing 2014-10-22, Roulette and Per-Char Gender!shennetsind1-1/+61
Details in http://hercules.ws/board/topic/7618-2014-10-22-roulette-and-per-char-gender/ Special Thanks to the all-mighty Yommy, Ziu and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2014-09-21Fixed Bug 8293shennetsind1-0/+8
Implemented official party-leader-changed-packet Special Thanks to kyeme! http://hercules.ws/board/tracker/issue-8293-change-party-leader/ Signed-off-by: shennetsind <ind@henn.et>
2014-08-07Fixed some MSVC incompatibilitiesHaru1-0/+1
- Resolves bugreport:8289 http://hercules.ws/board/tracker/issue-8289-compile-error-vs-2013/ - Disables some winsock-related deprecation warnings. Signed-off-by: Haru <haru@dotalux.com>
2014-07-11Fixed reserved __identifier violationsHaru1-3/+3
- Complies with CERT DCL37-C - Fixes issue #293 (special thanks to elfring) Signed-off-by: Haru <haru@dotalux.com>
2014-07-09Fixed status_calc_regen crash ↵panikon1-0/+3
issue:http://hercules.ws/board/tracker/issue-1298-mapserver-crashed-item-check/ Follow up to 7cd967f812ab741c41c416fb9f7c2a921c36e947
2014-05-13Removed trailing whitespace (sources)Haru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2014-03-29Fixed skill (visual) effects issue with packetver lower than 20110718shennetsind1-1/+1
Special Thanks to Beret. Signed-off-by: shennetsind <ind@henn.et>
2014-02-26Whisper fix, and support for 2013-12-18 Ragexe and 2013-12-30 Ragexeshennetsind1-0/+14
From Pull Request 255 (Thanks to Kiu, ossi0110, Yommy) Signed-off-by: shennetsind <ind@henn.et>
2014-02-10Fixed Bug 8017shennetsind1-6/+6
Would happen on 2014-onwards clients due to the placeholder packetver of 20140000 http://hercules.ws/board/tracker/issue-8017-monster-hp-bar-does-not-update/ Signed-off-by: shennetsind <ind@henn.et>
2014-02-02Introducing HPM Datacheckshennetsind1-3/+3
http://hercules.ws/board/topic/4283-introducing-hpm-datacheck/ Signed-off-by: shennetsind <ind@henn.et>
2014-01-23Compatibility fixes for NetBSD and SolarisHaru1-0/+4
- Fixed some warnings in NetBSD (5.x and 6.x) and Solaris (11) Signed-off-by: Haru <haru@dotalux.com>
2013-12-24Christmas Patch - 2013-12-23 Supportshennetsind1-0/+44
Info: http://hercules.ws/board/topic/3614-christmas-patch-gifto/ Signed-off-by: shennetsind <ind@henn.et>
2013-11-28Follow up fdb6de1aa34086fd4d22ae127437727f556cea3cshennetsind1-0/+26
Modified reflect code so that each reflection source can judge whether to apply or not, necessary for mechanics such as item-bonus reflect triggers even on autoguard while reflect shield does not. Re-added that "reflect shield" overhead display which I mistakenly removed in fdb6de1aa34086fd4d22ae127437727f556cea3c. Added code to refrain damage numbers from overlapping in the client, which would render them illegible. Special Thanks to kyeme, Yommy. http://hercules.ws/board/tracker/issue-7792-safety-wall-reflect-bug-body-relocation-error/ Signed-off-by: shennetsind <ind@henn.et>
2013-11-27Fixed Bug 7858shennetsind1-0/+13
Official item drop announce support, currently hardcoded list -- we'll be following up shortly with a decent way of storing it. Special Thanks to Yommy, Beret, kyeme. http://hercules.ws/board/tracker/issue-7858-monster-rare-drop-announcement/ Signed-off-by: shennetsind <ind@henn.et>
2013-11-25Fixed getareachar_skillunit v4 and minor cleanupshennetsind1-0/+45
Special thanks to Rytech for pointing it out, updated to match latest data (Thanks to Yommy) and some minor cleanup Signed-off-by: shennetsind <ind@henn.et>
2013-11-15Official Item BindOnEquip Supportshennetsind1-1/+7
Implements the 'BindOnEquip' item db field which determines whether the piece of equipment should bind to the character upon being equipped. When a character tries to equip such a item for the first time a dialog shows up asking the character to confirm whether to equip the item or not, and notifying the character that by equipping the item it will become bound to the character, and therefore unable to be used by another character. Special Thanks to Beret for all the information, Haruna for testing. Signed-off-by: shennetsind <ind@henn.et>
2013-10-29Follow-up to baef78f7954fa4e6fa2449f2c7de92a901c7f5f3Haru1-7/+7
- Corrected an issue with items showing up as Unknown on certain systems due to structure size mismatch. - Special thanks to ossi0110. Signed-off-by: Haru <haru@dotalux.com>
2013-10-27Shadows System Baseshennetsind1-14/+241
http://hercules.ws/board/topic/581-implement-the-shadows-system/ Special Thanks to Yommy for all the client data, Haru for making it possible to get it out and rosfus for the details on the feature. Shadows Feature requires packetver 20120925 or newer. ---------- Also: Updated all packets related to the shadows system, improved memory/processing of inventory/cart/storage/viewequip packets Signed-off-by: shennetsind <ind@henn.et>
2013-10-10Introducing Bank Supportshennetsind1-0/+35
http://hercules.ws/board/topic/2455-introducing-bank-support/ Thanks to Yommy, Haru! Signed-off-by: shennetsind <ind@henn.et>
2013-09-27Corrected maptypeproperty2 implementation with all the available infoHaru1-12/+12
- Fixes an issue with the 2013 clients showing an attack cursor over other players even outside PvP. Special thanks to ossi0110 for reporting the issue and running tests for me; Ind and Yommy for their assistance. - Related: issue #70 Signed-off-by: Haru <haru@dotalux.com>