summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
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-29Merge pull request #2081 from EyesOfAHawk/buildin_setparamHaru1-2/+45
Adds setparam(), change optional param for readparam()
2018-06-25Merge pull request #2077 from AnnieRuru/39-pre-incrementHaru1-2/+2
Fix pre-increment / pre-decrement operator error
2018-06-25Merge pull request #2075 from guilherme-gm/rodex-scriptHaru1-1/+1
Fixed rodex_sendmail_acc script command and rodex examples
2018-06-22Merge pull request #1924 from Asheraf/instance3Haru1-13/+35
Update Instance generating behaviour
2018-06-18Merge pull request #2064 from 4144/updatepacketsHaru1-1/+3
update packets and message table for clients 20180530 to 20180612
2018-06-15always give a return value in buildin_getunitsgumi1-0/+2
2018-06-15fix whitespaces in script.cgumi1-2/+2
2018-06-15add buildin_setparamgumi1-0/+38
Co-authored-by: "Wolfie" <ryan.tana55@gmail.com>
2018-06-15allow to pass an account id to buildin_readparamgumi1-4/+9
Co-authored-by: "Wolfie" <ryan.tana55@gmail.com>
2018-06-14Split enum zc_ui_types by supported packet versions.Andrei Karas1-0/+2
Also fixed clif_open_ui for old clients.
2018-06-14Fix pre-increment / pre-decrement operator errorAnnieRuru1-2/+2
eg: if (1) ++.@i;
2018-06-13Add cz enum for types in packet 0x0a68.Andrei Karas1-1/+1
2018-06-10Fixed rodex_sendmail_acc script command and rodex examplesGuilherme G. Menaldo1-1/+1
2018-06-05Update buildin instance_create to follow official behaviourAsheraf1-13/+35
2018-06-03Merge pull request #2004 from Asheraf/stylistHaru1-0/+12
Implementation of stylist ui
2018-06-02Fix map flag pvp_nocalcrank if use at or script command for enable pvp.Andrei Karas1-2/+4
Fixes #2056
2018-06-02Implementation of stylist uiAsheraf1-0/+12
2018-06-02Merge pull request #842 from AnnieRuru/request_6Haru1-3/+95
Add new *pcblock script command
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-04Add setpcblock & checkpcblock script commandsAnnieRuru1-3/+95
thanks to @MishimaHaruna for the updated syntax
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>