summaryrefslogtreecommitdiff
path: root/src/map/clif.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-21Add rodex 2017 packets.Andrei Karas1-3/+92
2017-10-21Add packets for 64 bit exp.Andrei Karas1-18/+55
Also update some functions for support 64 bit exp calculation.
2017-09-21Split packets and packets keys.Andrei Karas1-1/+2
2017-09-21Change char server packets for 20170830 and newer clients.Andrei Karas1-2/+2
2017-09-19remove trailing whitespaces from sourcegumi1-7/+7
2017-09-19Fix compile errors with some specific PACKETVER valuesHaru1-3/+5
- PACKETVER <= 3 - PACKETVER == 20071106 - PACKETVER >= 20141016 && PACKETVER <= 20141022 - PACKETVER >= 20160921 Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Move other view-related variables to `sd->status.look`Haru1-4/+4
The following variables are now moved to `sd->status.look` (from `sd->status`): `head_top`, `head_mid`, `head_bottom`, `robe` Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a Subtype (part 2)Haru1-2/+2
`sd->status.shield` is renamed to `sd->status.look.shield` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->has_shield`, of boolean type (to detect the presence of a shield) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a weapon SubtypeHaru1-2/+2
`sd->status.weapon` is renamed to `sd->status.look.weapon` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->weapontype` (holding the currently equipped weapon type, considering both hands at once) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Split 'View' in two different fields in the item databaseHaru1-2/+2
- The field was used both for sprite view IDs and for weapon or ammunition subtypes. Now the fields 'ViewSprite' and 'Subtype' are used respectively. Signed-off-by: Haru <haru@dotalux.com>
2017-09-05Adjust rodex packet versions based on tests.Andrei Karas1-1/+1
2017-08-13Reported rodex bug fixes.Andrei Karas1-1/+2
2017-08-11Fix some wrong packet versions in rodex code.Andrei Karas1-4/+4
Also replace some numbers to constants.
2017-08-11Whitespace fixesHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2017-08-11Fix various issues detected by coverity in rodex-related codeHaru1-1/+1
Follow-up to 544da439e81ff78ec102b754e16b6cc0a28a6d0a Signed-off-by: Haru <haru@dotalux.com>
2017-07-30Implementation of RoDEXKirieZ1-0/+516
2017-07-27Fix possible buffer overflows with snprintf.Andrei Karas1-1/+1
2017-06-25Adjust packet version based on client tests.Andrei Karas1-7/+7
Thanks to Asheraf.
2017-06-25fix guild leader change in 2017 clients. Based on rathena commit:Andrei Karas1-2/+11
commit b51617cb730cdc6d91bc03df16c887a060323f3a Author: Lemongrass3110 <lemongrass@kstp.at> Date: Sat Jun 3 17:03:56 2017 +0200 Added support for 2017's guild leader change
2017-06-25Add packet 0xabd for send job and base levels to party members.Andrei Karas1-7/+35
Also improve packets send on base level change. Based on commit from rathena: commit 816d8ab2d0934f823a1d26f7fcac244f8245f14b Author: Lemongrass3110 <lemongrass@kstp.at> Date: Mon Jun 5 23:07:09 2017 +0200 Fixed party window for 2017 clients Thanks to @mrdiablo for his help again!
2017-06-25Add packet 0xa44 for party info. Based on rathena commit:Andrei Karas1-9/+31
commit 816d8ab2d0934f823a1d26f7fcac244f8245f14b Author: Lemongrass3110 <lemongrass@kstp.at> Date: Mon Jun 5 23:07:09 2017 +0200 Fixed party window for 2017 clients Thanks to @mrdiablo for his help again!
2017-06-25Fix style in clif_party_info.Andrei Karas1-15/+16
2017-06-25Add packet 0x0a43 for party member info. Based on rathena commit:Andrei Karas1-11/+25
commit 816d8ab2d0934f823a1d26f7fcac244f8245f14b Author: Lemongrass3110 <lemongrass@kstp.at> Date: Mon Jun 5 23:07:09 2017 +0200 Fixed party window for 2017 clients Thanks to @mrdiablo for his help again!
2017-06-25Fix style in clif_party_member_info.Andrei Karas1-13/+14
2017-06-25Add packet 0x0aa5 for 2016 clients for guild members list. Based on rathena ↵Andrei Karas1-15/+27
commit: commit 9412ebb9f7b009e3ae3b69e5eb1ae8a3d341a5f2 Author: Lemongrass3110 <lemongrass@kstp.at> Date: Sat Jun 3 14:08:06 2017 +0200 Added support for 2016's guild packets Thanks to @mrdiablo for his help.
2017-06-25Fix style in function clif_guild_memberlist.Andrei Karas1-20/+20
2017-06-25Add packet 0x0a84 for guild basic info. Based on rathena commit:Andrei Karas1-4/+15
commit 9412ebb9f7b009e3ae3b69e5eb1ae8a3d341a5f2 Author: Lemongrass3110 <lemongrass@kstp.at> Date: Sat Jun 3 14:08:06 2017 +0200 Added support for 2016's guild packets Thanks to @mrdiablo for his help.
2017-06-25Fix style in function clif_guild_basicinfo.Andrei Karas1-24/+25
2017-06-25Fix vending list packet for 2016 clients. Based on rathena commit:Andrei Karas1-2/+10
commit 9716233c842f731df3fed5281370e324b5f5f024 Author: Lemongrass3110 <lemongrass@kstp.at> Date: Mon May 8 23:40:05 2017 +0200 Introducing the equip preview window Fixes some bugs for 2016-09-21 onward, where you can preview how a item would like if you put it on. This works on other people's vending and on your own inventory. Thanks to @Rytech2 and @hazimjauhari90
2017-06-25Add packet 0x0a37 ZC_ITEM_PICKUP_ACK_V7 based on rathena commit:Andrei Karas1-1/+7
commit 9716233c842f731df3fed5281370e324b5f5f024 Author: Lemongrass3110 <lemongrass@kstp.at> Date: Mon May 8 23:40:05 2017 +0200 Introducing the equip preview window Fixes some bugs for 2016-09-21 onward, where you can preview how a item would like if you put it on. This works on other people's vending and on your own inventory. Thanks to @Rytech2 and @hazimjauhari90
2017-05-27Merge pull request #1722 from Smokexyz/mmo_charstatus-fixHaru1-18/+26
Dismemberment of `storage_data` from `mmo_charstatus`.
2017-05-22Add storage_data reception, parsing and sending to/from the map-server.Smokexyz1-18/+26
Remove loading and saving of storage_data through char.c Re-declaration of structure storage_data as a vector. Re-code of portions in the map-server using storage_data. A new approach is taken by saving the loaded storage data from sql into memory for the duration of the session, thereby removing the need of querying the database to re-load all items everytime a storage save routine is issued from the map-server. Saving of storage items is done through a new function that significantly reduces the number of queries compared to char_memitemdata_tosql(), and therefore run-time speed. This method potentially reduces the number of update and delete queries from MAX_STORAGE (which could be >= 600) times to literally 1. Storage items are stored in a dynamically allocated array and handled accordingly. struct mmo_charstatus size reduces by 34,800 bytes. Update pc_checkitem() with masks for item checks. `sd->state.itemcheck` has been changed to `sd->itemcheck` of type `enum pc_checkitem_types` `battle/items.conf` has been updated to reflect configuration changes. Further updates to assert a successful reception of storage data in related functions.
2017-05-09Merge pull request #1699 from Jedzkie/11-SummerCostumeHaru1-19/+21
Implemented Official Summer 2 Costume
2017-04-26Merge pull request #1673 from Smokexyz/IROHaru1-4/+4
Fixes an issue where the unequipped items with options do not re-calculate status.
2017-04-24Followup 0aa15b4 with style fixes.Smokexyz1-4/+4
2017-04-23Added the correct PACKETVER Date for MSG_NPC_WORK_IN_PROGRESS message.Jedzkie1-15/+25
2017-04-23Coding-style Fixes and White space adjustmentsJedzkie1-21/+19
2017-04-19Added oktoberfest_ignorepalette configurationJedzkie1-2/+2
2017-04-19Implemented Official Summer 2 CostumeJedzkie1-1/+5
Added summer2_ignorepalette configuration
2017-04-17Fix wrong level check for MC_CHANGECART skillJedzkie1-16/+13
2017-04-16Fix issue #1685Smokexyz1-1/+1
Where the item in a vending list would display incorrect option information.
2017-04-14Fixes issue #1681Smokexyz1-2/+2
2017-04-09Merge pull request #1598 from Smokexyz/IROHaru1-46/+46
Implementation of Item Options System.
2017-04-04Implementation of Item Options System.Smokexyz1-46/+46
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-1/+2
2017-03-20Fix npc text input For 2015 clients (Fixes #1640).Andrei Karas1-1/+6
Based on ragemu commit: commit a7ff9d064b238f5c2c4947f41eeaa0bfe331f2e6 Author: athron98 <athron.poster@gmail.com> Date: Mon May 23 20:36:43 2016 +0700 input fix
2017-03-14Fixed MVP exp message issue for clients 2013-12-23cRagexe and newerEmistry Haoyan1-0/+8
- Fixed MVP exp message issue clients 2013-12-23cRagexe and newer. - Gravity remove packet MVP exp message - Credit to https://github.com/rathena/rathena/commit/85749e84b91087960e868e30a7a052b0c0cdce5b
2017-02-26Added option to show classchange only to one player (#1587)Guilherme G. M1-2/+6
* Added option to show classchange only to one player
2017-02-24Merge pull request #1585 from guilherme-gm/disguise-fixRidley1-0/+12
Fixes disguise position de-synchronization