summaryrefslogtreecommitdiff
path: root/src/map/pc.c
AgeCommit message (Collapse)AuthorFilesLines
2018-07-01Change functions to static where possible (Part 4 - map)Haru1-264/+346
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-07-01Merge pull request #2115 from marky291/patch-2Haru1-5/+5
Documentation typos in pc.c
2018-07-01Documentation in pc.cMark Hester1-5/+5
2018-06-29Fix packet 836 (search in stores).Andrei Karas1-1/+1
Added item options fields into this packet. Updated other things for support for report item options in vending. Buying store not supported for now.
2018-06-18Merge pull request #2064 from 4144/updatepacketsHaru1-5/+7
update packets and message table for clients 20180530 to 20180612
2018-06-14Fix compilation for packet version smaller than 20090805.Andrei Karas1-5/+7
2018-06-06Fix typo on pc.c documentationMark Hester1-1/+1
2018-06-03Conversion of exp.txt to libconfigSmokexyz1-176/+207
2018-06-02Merge pull request #842 from AnnieRuru/request_6Haru1-2/+7
Add new *pcblock script command
2018-06-02Merge pull request #2038 from 4144/msiHaru1-16/+39
Improve msgstring table usage
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-05-29Add autogenerated messages list headers with original strings and translation.Andrei Karas1-1/+24
Also add packet version checks for used messages.
2018-05-29Fix wrong values in clif_messages enum.Andrei Karas1-15/+15
Also use official constant names with custom prefix in clif_messages enum.
2018-05-04Add setpcblock & checkpcblock script commandsAnnieRuru1-2/+7
thanks to @MishimaHaruna for the updated syntax
2018-04-23Move job related checks from pc_read_skill_tree into separate function.Andrei Karas1-2/+8
2018-04-23Move death penalty job check from pc_dead into separate function.Andrei Karas1-2/+9
2018-04-23Move job related code from pc_resetskill into separate function.Andrei Karas1-14/+26
2018-04-23Move from pc_checkbaselevelup sc start related code into separate function.Andrei Karas1-12/+20
2018-04-23Split pc_calc_skilltree into 3 functions.Andrei Karas1-18/+40
2018-04-23Split pc_delspiritball into two functions.Andrei Karas1-5/+14
Move job mask related code into pc_delspiritball_sub.
2018-04-23Split pc_addspiritball into two functions.Andrei Karas1-1/+9
Move job mask related code into pc_addspiritball_sub.
2018-04-08Merge pull request #2006 from Jedzkie/MessageFixesHaru1-5/+40
Message Fixes
2018-04-08Added new items for item checksJedzkie1-0/+3
2018-04-08Update Skill/Item messagesJedzkie1-5/+37
2018-04-07Add an option to prevent item usage when storage is openJedzkie1-5/+5
In official servers, you can't open boxes and use usable/consumables items when the storage is open. Fixes #1806
2018-04-03Merge pull request #1965 from dastgir/2018/3-hateffectHaru1-0/+1
Implemented HatEffect
2018-02-19Changed Kafrapoints calculation.Normynator1-19/+27
Kafrapoints should now be used correctly. Issue #1540 Changed opening braces according to coding styl. Changed some lines according to coding styl. new-line-before-return ? more styling code changes changes in coding style coding style changes Fixed message output on acted cash. Removed unsupported and not needed var ret. Update pc.c Update atcommand.c Coding style added function description added return validation used wrong method in validation Fixed typo in clif.c Moved temp var to block start
2018-02-10Clean up trailing whitespace and non-indent tabsHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2018-02-09Implemented hatEffect.Dastgir1-0/+1
Allows the player to have hatEffect specialeffects. Base taken from rAthena
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares1-0/+7
All official features work including the autokick for inactive members And the system is completely customizable.
2017-12-23Add support for new drop packet 0xadd for zero clientsAsheraf1-2/+2
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 2)Haru1-12/+11
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/appropriateHaru1-10/+17
This includes some renamed local variables, in order to minimize the cases of unsafe variable reuse. Signed-off-by: Haru <haru@dotalux.com>
2017-10-21Fix various warnings on Visual Studio 2017Haru1-9/+9
Fixes #1867 Signed-off-by: Haru <haru@dotalux.com>
2017-10-21Add packets for 64 bit exp.Andrei Karas1-27/+59
Also update some functions for support 64 bit exp calculation.
2017-09-21Convert some functions from int32 types to int64.Andrei Karas1-27/+27
This mainly need for base and job exp, because now they using int64 type.
2017-09-17Fix a typo in the constant ITEMUPPER_THIRDUPPERHaru1-1/+1
Was: ITEMUPPER_THURDUPPER Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Move other view-related variables to `sd->status.look`Haru1-45/+45
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-11/+24
`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-26/+32
`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-52/+53
- 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-07-30Implementation of RoDEXKirieZ1-0/+3
2017-07-11Removed 'NO MSG' message in clients < 20101123. Follow up ↵Jedzkie1-2/+1
https://github.com/HerculesWS/Hercules/commit/60f9a68f90d495323e9e4533c7a1573ca5d86e71
2017-06-25Add packet 0xabd for send job and base levels to party members.Andrei Karas1-0/+20
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-25Fix vending list packet for 2016 clients. Based on rathena commit:Andrei Karas1-0/+29
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-53/+66
Dismemberment of `storage_data` from `mmo_charstatus`.
2017-05-22Add storage_data reception, parsing and sending to/from the map-server.Smokexyz1-53/+66
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-04Merge pull request #1695 from Jedzkie/7-CashFoodFixHaru1-26/+3
Cash Foods Update
2017-05-04Merge pull request #1717 from mekolat/vault2Haru1-0/+15
expose the bank vault to the script engine
2017-04-29Fixes #1721Jedzkie1-1/+1
Signed-off-by: Jedzkie <jedzkie13@rocketmail.com>