summaryrefslogtreecommitdiff
path: root/src/map/pc.c
AgeCommit message (Collapse)AuthorFilesLines
2020-04-05Merge pull request #2657 from Kenpachi2k13/autocast_clean_upHaru1-16/+13
Clean up auto-cast related code
2020-04-05Merge pull request #2658 from Kenpachi2k13/new_status_changesHaru1-0/+4
Add new status changes and update related items
2020-03-14Remove IT_DELAYCONSUME related auto-cast codeKenpachi Developer1-5/+0
First of all: In official servers, skill casting item are consumed immediately and thus IT_DELAYCONSUME should not be used for those items And additionally these code blocks are obsolete, because of the way how skill casting items work. * If the item won't check the skill's requirements, the code block to delete the item of type IT_DELAYCONSUME isn't even executed. * If the item does check the skill's requirements, the check is done prior to the skill casting which would be the same as using IT_USABLE.
2020-03-14Remove map_session_data->state.itemskill_* and use ↵Kenpachi Developer1-4/+0
map_session_data->autocast.itemskill_* instead
2020-03-14Remove itemskill_id and itemskill_lv helper variables, since they are not ↵Kenpachi Developer1-2/+0
used anymore
2020-03-14Remove map_session_data->state.abra_flag and use ↵Kenpachi Developer1-3/+4
map_session_data->autocast.type instead
2020-03-14Add pc_autocast_clear() function callsKenpachi Developer1-3/+3
2020-03-14Rename function pc_itemskill_clear() to pc_autocast_clear()Kenpachi Developer1-3/+3
2020-03-14Add map_session_data->autocast.itemskill_* assignmentsKenpachi Developer1-0/+4
2020-03-14Add map_session_data->autocast.skill_id/_lv assignmentsKenpachi Developer1-0/+2
2020-03-14Add map_session_data->autocast.type assignmentsKenpachi Developer1-0/+1
2020-03-14Add SC_VITALIZE_POTION status changeKenpachi Developer1-0/+4
2020-03-09Merge pull request #2648 from Kenpachi2k13/itemskill_fixHaru1-1/+1
Fix itemskill() script command
2020-03-09Merge pull request #2642 from Kenpachi2k13/zone_disabled_items_fixHaru1-222/+258
Fix (un)equip script execution for map zone restrcited items
2020-03-07Apply code style to pc_isequip() functionKenpachi Developer1-52/+66
2020-03-07Apply code style to pc_equipitem() functionKenpachi Developer1-97/+109
2020-03-07Apply code style to pc_unequipitem() functionKenpachi Developer1-68/+75
2020-03-07Change execution order in pc_isequip() functionKenpachi Developer1-17/+18
Validating, if the item is disabled by the map's zone, should be done prior to the validation of the character's status changes. If not, equipment, enabled by Super Novice Spirit, is able to bypass the map zone restriction.
2020-03-06Rename itemskill_no_conditions to itemskill_check_conditionsKenpachi Developer1-1/+1
2020-02-23Remove unequip_restricted_equipment dependency from OnEquipScript zone ↵Kenpachi Developer1-4/+14
validation The execution of the OnEquipScript should be prevented, regardless of the unequip_restricted_equipment configuration, if the item is restricted in that zone.
2020-02-23Remove unequip_restricted_equipment dependency from OnUnequipScript zone ↵Kenpachi Developer1-13/+5
validation The execution of the OnUnequipScript should be prevented, regardless of the unequip_restricted_equipment configuration, if the item is restricted in that zone.
2020-02-18Add new return values to pc_setpos() functionKenpachi Developer1-9/+17
* 3 - No character data. (Parameter sd is a NULL pointer.) * 4 - Character is jailed.
2020-02-09Added pc_itemskill_clear() function.Kenpachi Developer1-0/+21
2020-02-09Moved the WZ_EARTHSPIKE check for TK_SPTIME skill from ↵Kenpachi Developer1-0/+14
skill_check_condition_castbegin() to pc_useitem().
2020-02-09Merge pull request #2624 from Kenpachi2k13/issue#1311Haru1-2/+5
Merge pre-RE/RE case SP_VARCASTRATE in pc_readparam() function
2020-02-06Merge pre-RE/RE case SP_VARCASTRATE in pc_readparam() functionKenpachi Developer1-2/+5
2020-01-29Implement support for switching madogear typeAsheraf1-2/+10
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