summaryrefslogtreecommitdiff
path: root/src/map/unit.c
AgeCommit message (Collapse)AuthorFilesLines
2019-05-06Merge pull request #2453 from Emistry/scriptcommand_unitwarpHaru1-1/+1
Update unitwarp script command.
2019-05-05Add missing checks for prevend flagAndrei Karas1-0/+1
2019-05-01Update unitwarp script command.Emistry Haoyan1-1/+1
- allow NPC to warp to non-walkable cell. Just like `*movenpc`
2018-12-12Remove typedef from clr_type.Andrei Karas1-4/+4
2018-11-16Merge pull request #2322 from MishimaHaruna/fix-allychat-leaveguildHaru1-0/+1
Fix allychat leaveguild
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-08-04Fixed defense overflow exploitDastgir1-1/+1
* The defense penalty for being attacked by many enemies at the same time can no longer make DEF go negative * Fixed two potential overflow exploits When being hit by a lot of monsters, your DEF will become negative and then eventually overflow, making you almost invincible. On official servers the simultaneous attacker count is limited to 22. So at max, your def is reduced by ((22-2)*5%) = 100%. So it should neither be able to make your DEF negative nor cause an overflow. Merge from https://github.com/rathena/rathena/commit/590f42cd15c58de78cff8be6053109852375bce1#diff-d96b6365b4bdad78139e676d6e7e3295R4589
2018-07-24Implemented Title System.Dastgir1-0/+1
2018-07-24Implementation of the official Achievement System.smokexyz1-0/+1
Source: http://ro.gnjoy.com/news/update/View.asp?seq=163&curpage=1 Script Commands - ``` achievement_progress(<ach_id>,<obj_idx>,<progress>,<incremental?>{,<char_id>}); ``` Includes an achievement_db.conf generator that reads from the item_db, mob_db (server side) and achievement_list.lub files to determine valid achievement entries based on item/monster availability. Achievements containing unsupported entries are commented out. This feature, although renewal-only in official servers, is capable of being used in pre-renewal mode on Hercules. Does not include the title system yet. A big thanks to - @MishimaHaruna for constantly reviewing. @4144 for all the support. @Asheraf for a lot of official information. Co-authored-by: "Dastgir" <dastgirp@gmail.com>
2018-07-12Split btype and item_id parameters in function clif_skill_fail.Andrei Karas1-10/+10
2018-07-01Change functions to static where possible (Part 4 - map)Haru1-53/+53
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-06-02Merge pull request #842 from AnnieRuru/request_6Haru1-1/+1
Add new *pcblock script command
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-05-04Add setpcblock & checkpcblock script commandsAnnieRuru1-1/+1
thanks to @MishimaHaruna for the updated syntax
2018-04-03Merge pull request #1965 from dastgir/2018/3-hateffectHaru1-0/+1
Implemented HatEffect
2018-03-01Fix use after free with option "delay_battle_damage: false".Andrei Karas1-5/+11
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/+2
All official features work including the autokick for inactive members And the system is completely customizable.
2017-08-20Ignore hidden units in the cell stack limit checksHaru1-1/+1
- This improves the Dancer Quest experience as well as other cases of hidden NPCs blocking off certain cells - Fixes #1135 Signed-off-by: Haru <haru@dotalux.com>
2017-05-22Add storage_data reception, parsing and sending to/from the map-server.Smokexyz1-0/+2
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-04-20Made prevent_logout effect on log-in optionalJedzkie1-0/+10
kRO does not prevent players from logging out after connecting to its zone servers. Credits to @secretdataz of rAthena
2017-03-10Merge pull request #1509 from 4144/fixwarnsmokexyz1-4/+5
Fix assert in unit_resume_running.
2017-02-19Merge pull request #1457 from Ridley8819/unitIbrahem Hossam1-1/+1
Fixes Range Exploit
2017-01-14Fix assert in unit_resume_running.Andrei Karas1-4/+5
Fix issue from http://herc.ws/board/topic/13719-map-error-need-help-here/
2016-10-28Fixed copyright year for 2016Lemongrass31101-1/+1
2016-10-22Implemented SU_SV_ROOTTWIST Skill.Dastgir Pojee1-0/+1
Duration: (5+(2*SkillLv)) seconds. Cannot be used on Boss Monsters. Effect is cancelled when Heaven's Drive or Trample is used. Enemies trapped on roots receive poison property damage.
2016-10-22Implemented SU_LOPE Skill.Dastgir Pojee1-1/+1
Skill Cannot be Used on GvG/Battlegrounds. Cast time of Emergency Call doubles. Moves to Another Position by performing High Jump: Lv 1: Move 6 cells Lv 2: Move 10 cells Lv 3: Move 14 cells
2016-10-22Implemented SU_HIDE Skill.Dastgir Pojee1-0/+2
Transforms into Bush.
2016-10-03Fixes Range ExploitRidley1-1/+1
issue#841 Original Commit by Playtester on rAthena, https://github.com/rathena/rathena/commit/6f74f67da060a063183e1147dfc893c9454af853 * Players will no longer get +2 range server-sided when using a target spell * This will prevent players from modifying the client to get extra range
2016-09-21Fixed a wrong check in the SA_FREECAST handling codeHaru1-2/+2
- Don't skip the check for Free Cast's absence unless the cast skill's INF2_FREE_CAST_* flags aren't unset. - Follow-up to 19a06cae9a03ae7c390db18ca95b74bd6033dc4e - Fixes #1439 Signed-off-by: Haru <haru@dotalux.com>
2016-09-19Add missing checks into unit.cAndrei Karas1-31/+69
2016-09-13Corrected a wrong check that allowed walking while casting guild skillsHaru1-3/+11
- The check was originally meant to have guild skills ignore SA_FREECAST (and always block movements) - Since 8953417 - Fixes #1428 Signed-off-by: Haru <haru@dotalux.com>
2016-07-19Add skill atributes for allow moving while casting skill.Andrei Karas1-6/+8
New SkillInfo attributes: FreeCastReduced - allow move while casting with slowdown FreeCastNormal - allow move while casting with normal speed
2016-07-14Simplify clif_skillcasting and rename to clif_useskill.Andrei Karas1-2/+2
2016-04-27Fix unit_data unitialisation.Andrei Karas1-4/+13
Introduce method unit->init_ud.
2016-04-23Changed map_session_data::chatID to int (and renamed to chat_id)Haru1-1/+1
- Chat IDs are signed integers. - Resolves various warnings, depending on the compiler settings. Signed-off-by: Haru <haru@dotalux.com>
2016-02-19Fix all known warnings from compiler flags -Wformat*Andrei Karas1-2/+2
Add all missing -Wformat flags into configure.
2016-01-17Merge pull request #1077 from csnv/masterHaru1-1/+15
Fixes monsters not taking rude attack when OFFICIAL_WALKPATH is used.
2016-01-12Whitespace cleanup (removed alignment tabs or trailing whitespace at line end)Haru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-01-09Fixes monsters not taking rude attack when OFFICIAL_WALKPATH is used.Jorge C1-1/+15
Rude attack was not checking for this setting.
2016-01-06Replaced the remaining explicit casts with BL_CAST/BL_UCASTHaru1-5/+10
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Replaced some explicit casts with BL_UCASTHaru1-53/+61
- Replaced safe casts (bl type already checked) Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_NPC to struct npc_data as per style guidelineshemagx1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_ELEM to struct elemental_data as per style guidelineshemagx1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_PET to struct pet_data as per style guidelineshemagx1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_MER to struct mercenary_data as per style guidelineshemagx1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_HOM to struct homun_data as per style guidelineshemagx1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_MOB to struct mob_data as per strly guidelineshemagx1-9/+10
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_PC to struct map_session_data as per style guidelineshemagx1-7/+7
Signed-off-by: Haru <haru@dotalux.com>