summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
2018-06-02Merge pull request #2038 from 4144/msiHaru1-1/+4
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-0/+3
Also add packet version checks for used messages.
2018-05-29Fix wrong values in clif_messages enum.Andrei Karas1-1/+1
Also use official constant names with custom prefix in clif_messages enum.
2018-05-21add support for global lookups in buildin_getunitsgumi1-19/+69
2018-05-04Implementation of Private AirShipAsheraf1-1/+31
2018-05-04Quick Fix *getunitdataAnnieRuru1-1/+1
- this script command always return false; even it is on true condition
2018-05-01Merge pull request #2019 from Asheraf/mskillconfHaru1-0/+54
Convert mob_skill_db into libconf format
2018-04-19Convert mob_skill_db into libconf formatAsheraf1-0/+54
2018-04-11*delwall now give a friendly warning to remind non-existent wallAnnieRuru1-2/+8
2018-04-08Merge pull request #2009 from MishimaHaruna/sprintf-hooking-fixHaru1-5/+5
Fix HPMHooking compilation when sprintf() is a macro
2018-04-03Merge pull request #1965 from dastgir/2018/3-hateffectHaru1-0/+39
Implemented HatEffect
2018-04-02Rename script->sprintf() to script->sprintf_helper()Haru1-5/+5
This prevents compile errors in HPMHooking in case sprintf is defined as a macro by the C library Fixes #2003 Signed-off-by: Haru <haru@dotalux.com>
2018-03-28don't throw a warning in buildin_getmapinfo when the map is not foundgumi1-2/+2
2018-02-15expose script_sprintf to pluginsgumi1-0/+1
2018-02-10Clean up trailing whitespace and non-indent tabsHaru1-10/+10
Signed-off-by: Haru <haru@dotalux.com>
2018-02-09Implemented hatEffect.Dastgir1-0/+39
Allows the player to have hatEffect specialeffects. Base taken from rAthena
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares1-18/+127
All official features work including the autokick for inactive members And the system is completely customizable.
2018-01-25Implementation of 'constants.inc' fileMurilo Pereti Tavares1-0/+1
This file will help to make constants that are only accessible on src to be accessible on scripts too.
2018-01-14Merge pull request #1939 from Asheraf/zero_drop_packetHaru1-7/+7
Add support for new drop packet 0xadd for zero clients
2017-12-23Add support for new drop packet 0xadd for zero clientsAsheraf1-7/+7
2017-12-11Add support for packet ZC_PROGRESS_ACTORAsheraf1-0/+23
2017-11-18Merge pull request #1902 from MishimaHaruna/getiteminfo-fixHaru1-31/+65
getiteminfo() / setiteminfo() fixes
2017-11-18Merge pull request #1896 from MishimaHaruna/skill_id_idxHaru1-2/+2
Skill ID / IDX fixes
2017-11-18Merge pull request #1469 from dastgir/2016-3_IOT_NONEHaru1-26/+44
Fixes #1397
2017-11-12Add ITEMINFO_VIEWSPRITE support to getiteminfo() / setiteminfo().Haru1-0/+7
Adds the ability to query an item's view sprite, lost with #1828 Fixes #1895 Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Add ITEMINFO_MATK support to getiteminfo() / setiteminfo().Haru1-0/+7
This item info type was documented in commit 315d632e69c60d2996872c9330164133101befdf, but never implemented. Signed-off-by: Haru <haru@dotalux.com>
2017-11-12Add type constants for the getiteminfo()/setiteminfo() buildinsHaru1-31/+51
Replacements are as follows: 0 => ITEMINFO_BUYPRICE 1 => ITEMINFO_SELLPRICE 2 => ITEMINFO_TYPE 3 => ITEMINFO_MAXCHANCE 4 => ITEMINFO_SEX 5 => ITEMINFO_LOC 6 => ITEMINFO_WEIGHT 7 => ITEMINFO_ATK 8 => ITEMINFO_DEF 9 => ITEMINFO_RANGE 10 => ITEMINFO_SLOTS 11 (Subtype, for weapons and ammunitions) => ITEMINFO_SUBTYPE 11 (ViewSprite, for other item types) => ITEMINFO_VIEWSPRITE (NOT AVAILABLE YET) 12 => ITEMINFO_ELV 13 => ITEMINFO_WLV 14 => ITEMINFO_VIEWID 15 => ITEMINFO_MATK (NOT AVAILABLE YET - this was documented but never implemented) Calls to getiteminfo() and setiteminfo() have been replaced with the newly introduced constants. Other constants (such as W_ weapon subtypes) in related code have been replaced as well, to improve code readability. This fixes an issue in the Eden Tutorial script "Tutorial Goal", where ITEMINFO_ATK was accidentally used instead of ITEMINFO_WEIGHT. Note: calls to getiteminfo or setiteminfo with numeric type arguments in third party scripts must be replaced with the respective constants. The use of numeric literals is no longer recommended, and those values may change in the future without notice. See the getiteminfo documentation for details. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Fix/clarify various incorrect modulo operationsHaru1-1/+1
Most relevantly, `skill_lv%11 - 1` is not a valid skill item requirement index, since it can return -1 depending on the skill_lv. It was replaced with `(skill_lv - 1) % MAX_SKILL_ITEM_REQUIRE`, which always returns a value in the 0 ~ MAX_SKILL_ITEM_REQUIRE range. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 2)Haru1-1/+1
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-04Refresh npc after changing fields in setunitdata.Andrei Karas1-1/+2
2017-11-04Add into setunitdata/getunitdata new options UDT_ROBE and UDT_BODY2.Andrei Karas1-0/+10
2017-11-04Add view_data related fields to npc into setunitdata/getunitdata.Andrei Karas1-0/+37
2017-11-04Merge pull request #1894 from Asheraf/qtypeHaru1-18/+24
update qtype constants to support new 2017 client icons.
2017-11-04Merge pull request #1865 from dastgir/2017-1_equipoption_modHaru1-15/+20
setequipoption Modification
2017-11-02update qtype constants to support new 2017 client icons.Asheraf1-18/+24
2017-10-23Fix warning with gcc-7.Andrei Karas1-1/+1
2017-10-22Fix an incorrect null check in BUILDIN(logmes)Haru1-2/+3
The incorrect check would cause the `logmes()` script command to never log to database (but rather output a backtrace to the console) Signed-off-by: Haru <haru@dotalux.com>
2017-10-21Merge pull request #1833 from Emistry/mapflag_noautolootHaru1-0/+3
Add NoAutoloot mapflag
2017-10-22Add NoAutoloot mapflagEmistry Haoyan1-0/+3
- Enable server to disable autoloot settings for certain maps.
2017-10-20Merge pull request #1852 from mekolat/getmapinfo2mekolat1-0/+78
2017-10-20Merge pull request #1843 from mekolat/logmes2mekolat1-9/+31
2017-10-20Modified setequipoption to allow removal of equip options.Dastgir1-15/+20
2017-10-05add buildin_getmapinfogumi1-0/+78
2017-10-04add buildin_dressroomEdwin1-0/+49
2017-09-21allow buildin_logmes to log to the atcommand tablegumi1-9/+31
2017-09-19allow buildin_getgroupid to take a GIDMurilo_Bio1-7/+15
2017-09-18fix rogue whitespaces in rodex buildinsgumi1-3/+3
2017-09-18deprecate buildin_useatcmdgumi1-1/+1
2017-09-17Add support for bitmask arrays in the item_db Loc fieldHaru1-0/+9
Signed-off-by: Haru <haru@dotalux.com>