summaryrefslogtreecommitdiff
path: root/src/map/pc.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2020-01-01Add support for auto exp insurance itemsAsheraf1-0/+17
2020-01-01Fix pc_have_item_chain should get the chain id from cacheAsheraf1-6/+6
2019-11-17Merge pull request #2577 from Asheraf/dehardcodestatusiconsHaru1-13/+13
Dehardcode Status Icons
2019-11-06Dehardcode Status IconsAsheraf1-13/+13
2019-10-22Fix Steal accidentally being able to steal cards from certain mobsHaru1-2/+4
Cards are now blocked by item type rather than item drop slot position, since cards no longer have a fixed position in the drop list (regression in ed72a947a6c97804c1eef5b80bfa49d99f7d7586) Signed-off-by: Haru <haru@dotalux.com>
2019-10-20Merge pull request #2547 from guilherme-gm/201910-dehardcode-dbHaru1-6/+3
Dehardcode DB files path
2019-10-05Dehardcodes db files base path so the db folder can be easily movedGuilherme Menaldo1-6/+3
2019-10-02Moved hardcoded messages from source to messages.confDastgir1-5/+5
Fixes #1282
2019-09-22Remove the hardcoded checks in pc_rental_expire and use OnRentalEndScript ↵Ibrahim Zidan1-64/+0
field in item database for those items instead Fixes #140 Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-09-22Implement new script fields for items triggered on rentral status changesIbrahim Zidan1-4/+15
- OnRentalStartScript triggered when a rental item is added to inventory - OnRentalEndScript triggered when a rental period end/expire of the item Related #140 Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-09-22Merge pull request #2524 from MishimaHaruna/homunculus-fixesHaru1-15/+14
Homunculus related fixes
2019-08-26Update Siegfried Tokens support.Emistry Haoyan1-0/+24
- allow player to revive if inventory consists of any type of siegfried tokens listed in the `ITMCHAIN_SIEGFRIED`.
2019-08-26Merge pull request #2522 from MishimaHaruna/remove-inter-roundtripsHaru1-2/+52
Remove some round-trips to the inter-server
2019-08-26Prevent pets, homunculi etc. from being loaded if the character doesn't have ↵Mathy1-12/+11
a client attached to it (e.g. is autotrading). Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Fix an issue that prevents homunculus auto-vaporize on death or skill resetHaru1-3/+3
The >80% HP condition is now ignored in the cases the vaporization is forced by the server Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Remove round-trip to the inter-server for the broadcast messagesHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Remove round-trip to the inter-server for the whisper-to-gm messagesHaru1-0/+50
Signed-off-by: Haru <haru@dotalux.com>
2019-08-05Fix equipment auto bonusEmistry Haoyan1-1/+1
- fix auto bonus doesn't trigger for costume/shadow gears, due to `pos` always `0`. - fixes #1355
2019-07-28Update Homunculus obtain EXP from masterEmistry Haoyan1-0/+5
- homunculus will obtain a portion or full EXP from master. - fixes #2313
2019-07-24If error happend in pc_statusup then send back to client increase valueAndrei Karas1-12/+11
2019-06-03Add *setfavoriteitemidx & *autofavoriteitem script command.Emistry Haoyan1-0/+7
- set an item as favorite item or not based inventory index. - if an item is set to favorite item, it will be moved into favorite tab, else move out from favorite tab. - only non-equipped item can adjust the favorite item state.
2019-05-05Add missing checks for prevend flagAndrei Karas1-5/+5
2019-04-07Merge pull request #2402 from AnnieRuru/71-bodystyle_crashHaru1-1/+9
Fix @bodystyle crash client
2019-04-07Rename clif_charnameack into clif_blname_ackAndrei Karas1-1/+1
2019-03-11Fix atcommand "@jobchange" when the player changing from 3rd jobAnnieRuru1-0/+7
having alternate body style into non-3rd job, crashing the client
2019-03-11Apply temporary fix so Job_Super_Novice_E no longer crash clientAnnieRuru1-1/+2
2019-02-11Change type for class variables from short to intAndrei Karas1-3/+3
2018-12-16Merge pull request #2298 from guilherme-gm/201810-abracadabraHaru1-0/+4
Fixes delayed-consume items not being consumed after using Abracadabra
2018-12-16Merge pull request #2327 from HerculesWS/change_shortgroup_tobool_in_s_add_dropHaru1-13/+11
Change short group to bool is_group in s_add_drop
2018-12-14Add script command expandInventoryAndrei Karas1-0/+18
This command allow adjust inventory size to positive or negative value.
2018-12-14Add inventory size field into db and using it in server.Andrei Karas1-42/+40
2018-12-14Add packt ZC_INVENTORY_EXPANSION_INFOAndrei Karas1-0/+2
2018-12-12Remove typedef from clr_type.Andrei Karas1-3/+3
2018-12-12Add some missing checks for inventory index variable.Andrei Karas1-0/+1
2018-11-20Change short group to bool is_group in s_add_dropskyleo1-13/+11
current checks for empty entries assumed that if id and group is 0 that it is empty, while in fact ITMCHAIN_ORE has group 0 as value, for easier checks and more aesthetic code short group has been replaced, id's are now always written into short id and bool is_group decides if it's an item or a group.
2018-11-16Merge pull request #2322 from MishimaHaruna/fix-allychat-leaveguildHaru1-2/+6
Fix allychat leaveguild
2018-11-14Extend status->heal() with a flag to allow reviving a dead characterHaru1-2/+1
This adds `STATUS_HEAL_ALLOWREVIVE` to `enum status_heal_flag`. Fixes an issue caused by a hack in the resurrection code, that would make characters respawn with 2 HP instead of 1. Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Use an enum as flag for status->heal() and related functionsHaru1-5/+5
This introduces the `enum status_heal_flag`. No functional changes are made. Signed-off-by: Haru <haru@dotalux.com>
2018-11-13Fixed code that assumed the character to be already on a map, on loginHaru1-2/+5
Signed-off-by: Haru <haru@dotalux.com>
2018-11-13Replace sd->channels with a VECTORHaru1-0/+1
This removes some shady array compaction code and prepares the ground for some further fixes. Signed-off-by: Haru <haru@dotalux.com>
2018-10-21Merge pull request #2208 from dastgirp/issue/2177Haru1-8/+6
Changes the item price to 1 if it is 0
2018-10-20Fixes delayed-consume items not being consumed after using ↵Guilherme G. Menaldo1-0/+4
Abracadabra/Improvised Song
2018-10-13Fixed Issue #2177Dastgir1-8/+6
If Item Price is 0, it is now changed to 1.
2018-10-07Merge pull request #2227 from Helianthella/validatezenyHaru1-14/+16
only update zeny achievements and logs for non-zero transactions
2018-10-02Fix getting achievement reward packets order.Andrei Karas1-1/+1
Also split achievement reward function to parts.
2018-09-28only update zeny achievements and logs for non-zero transactionsgumi1-14/+16
2018-09-19Update cart packet for 2018-09-12 RE.Andrei Karas1-3/+3
2018-07-30always set the type when doing script->add_strgumi1-35/+36
2018-07-28Add packet ZC_GROUP_ISALIVE.Andrei Karas1-1/+9