summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
AgeCommit message (Collapse)AuthorFilesLines
2020-02-09Moved the WZ_EARTHSPIKE check for TK_SPTIME skill from ↵Kenpachi Developer1-0/+2
skill_check_condition_castbegin() to pc_useitem().
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/+1
2019-09-23Merge pull request #2336 from Asheraf/lapineddukddakHaru1-1/+13
Implementation of LapineDdukDdak System
2019-09-23Merge pull request #2535 from HerculesWS/itemdb_violationHaru1-1/+11
Fixed several issues in itemdb_search_name function
2019-09-23Implementation of LapineDdukDdak SystemAsheraf1-0/+12
2019-09-23Increase default max allowed item id to int32 maxAsheraf1-1/+1
2019-09-23Merge pull request #2529 from Asheraf/itemcombolibconfHaru1-2/+2
Convert item combo db to use libconfig
2019-09-22Implement new script fields for items triggered on rentral status changesIbrahim Zidan1-0/+2
- 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-19Rewrite of itemdb_searchname_array and itemdb_searchname_array_subIbrahim Zidan1-1/+11
Rewrote item name checks in both functions to be more readable Changed flag to be enum item_name_search_flag and made itemdb_searchname_array_sub respect flag given to parent function Corrected item count returned by parent function when dbmap search is performed Fixed a memory violation caused by the old code when dbmap search is performed Fixed dbmap searching having static array size which did not adhire to the size passed to the function Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-08-31Convert item combo db to use libconfigAsheraf1-2/+2
2019-08-26Update Siegfried Tokens support.Emistry Haoyan1-1/+1
- allow player to revive if inventory consists of any type of siegfried tokens listed in the `ITMCHAIN_SIEGFRIED`.
2019-06-03Add *setfavoriteitemidx & *autofavoriteitem script command.Emistry Haoyan1-1/+2
- 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-05Implement Refinery UIIbrahim Zidan1-0/+1
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-01-14Fix search item by name if id bigger than MAX_ITEMDBAndrei Karas1-0/+1
2018-12-12Add support for 4 bytes item id fields in main clients.Andrei Karas1-3/+3
From now all supported clients from some version can use item id up to 2 147 483 648.
2018-11-27Add support for int32 item id fields in zero client 20181114.Andrei Karas1-3/+3
2018-07-19Add new constant MAX_ITEM_ID for maximum allowed item id.Andrei Karas1-3/+21
For clients older than 2018-07-04 Re maximum supported and enabled id is 65535 (0xffff). For newer clients miximum id is 2147483648. Enabled by default 131072 (0x20000)
2018-07-19Changed MAX_ITEMDB to 0xFFFF.Andrei Karas1-1/+11
Also add ifndef to other defines near it.
2018-07-19Replace item id shorts to int in map server.Andrei Karas1-7/+7
2018-06-29Fix packet 836 (search in stores).Andrei Karas1-4/+4
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-05-312012-2018 !Maytichai Saowa1-1/+1
2018-04-08Added new items for item checksJedzkie1-0/+3
2017-12-23Add support for new drop packet 0xadd for zero clientsAsheraf1-0/+4
2017-09-17Fix a typo in the constant ITEMUPPER_THIRDUPPERHaru1-1/+1
Was: ITEMUPPER_THURDUPPER Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Add support for parsing arrays of constants as bitmasks in the item_dbHaru1-0/+1
Fields marked as constant bitmasks will support the following syntaxes: Field: 10 // Decimal value Field: 0xA // Hexadecimal value Field: "FOO" // Constant Field: [2, 8] // Array of decimal values Field: [0x2, 0x8] // Array of hexadecimal values Field: ["FOO", "BAR"] // Array of constants Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Split 'View' in two different fields in the item databaseHaru1-2/+4
- The field was used both for sprite view IDs and for weapon or ammunition subtypes. Now the fields 'ViewSprite' and 'Subtype' are used respectively. Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Reimplement getiteminfo/setiteminfo in a safer and more maintainable wayHaru1-3/+0
Signed-off-by: Haru <haru@dotalux.com>
2017-05-04Merge pull request #1695 from Jedzkie/7-CashFoodFixHaru1-13/+0
Cash Foods Update
2017-04-29Fixes #994Jedzkie1-2/+1
2017-04-25Removal of cashfood_use_interval setting.Jedzkie1-13/+0
2017-04-21Update GX Poison itemsJedzkie1-14/+8
2017-04-21Update Rune Knight Runes & OresJedzkie1-18/+10
2017-04-04Implementation of Item Options System.Smokexyz1-1/+23
Allows the infusing of equipments with bonus item options. This feature is constrained to clients of packet versions greater than or equal to `20150226`. Item Options and their effects are defined server-side in `db/item_options.conf` and client side in `data/luafiles514/lua files/datainfo/addrandomoptionnametable.lub` The ID of the option must tally with the correct index of the description provided in the client side lua file to avoid bugs. IT_OPT_* keys and MAX_ITEM_OPTIONS macro are also exported from the source as constants. An additional flag `disable_options` has been added to sql, and as `DisableOptions: true/false (boolean, defaults to false !!for equipments only!!)` to item_db.conf files. Script commands documentation is also included. SQL file updates are included. Credits: [Smokexyz](https://github.com/Smokexyz) Style and Script Fixes by [Asheraf](https://github.com/Asheraf) Initial design Idea by [secretdataz](https://github.com/secretdataz)
2016-12-03Clarify some Job Class vs MapID confusion (1/2)Haru1-1/+1
This commit ensures that `sd->status.class` and related variables only contain Job Classes (i.e. the client-compatible values, where High Novice 4001) and are never checked against the bitmask-based MapID values. As a rule of thumb, from now on, when a variable is named `class`, it is intended to contain a Job Class ID and not a MapID. The type of such variable shall be a signed `int16` or `int`. To ensure that related third party code is also verified when this commit is merged, the variable `struct mmo_charstatus::class_ (i.e. `sd->status.class_`) is renamed to `class`. Some issues in related lines are also fixed, including: - A wrong check in the char server would prevent the correct detection of babies in code related to the family exp sharing. - Baby Arch Bishops would not be affected by Eucharistica. - A wrong check would cause the `questinfo()` script command not to display its information for most classes (except 1-1 classes). - Map IDs and Job Classes were mixed up in `itemdb_jobid2mapid()` and `itemdb_jobmask2mapid()` for 1-1 classes (causing currently no harm, since they just happen to coincide). - The Baby Sura class would not cause parties to be marked as containing a monk type character (for SLS Team Up purposes). - Baby Geneticists would bypass the cart check when trying to equip ammunitions. - Baby Mechanics would bypass the Mado Gear check when trying to equip ammunitions. - Transcendent Shadow Chasers would lose the Stalkers' ability to clone transcendent skills. Signed-off-by: Haru <haru@dotalux.com>
2016-11-20Synchronized the AegisNames to the in-source ITEMID_ constantsHaru1-14/+14
Some missing items were copied to the pre-renewal database. In general, when an item ID is hardcoded in source, it's preferable that the item exists in both databases. Signed-off-by: Haru <haru@dotalux.com>
2016-10-22Implemented SU_LUNATICCARROTBEAT Skill.Dastgir Pojee1-0/+2
Atk +(200+100*SkillLv)%. When 1 Carrot is consumed, Add's a chance to stun enemy. Lv1-2: 3x3 AoE Lv3-4: 5x5 AoE Lv5: 7x7 AoE Added Item Constants in itemdb.h
2016-03-20Dropped typedef from DBMapHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Dropped typedefs from union DBKey and struct DBDataHaru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Added definitions of struct itemlistHaru1-0/+8
- To be used in various non-clif functions that right now take client data buffers directly. Signed-off-by: Haru <haru@dotalux.com>
2016-02-23Corrected some warnings in Visual StudioHaru1-1/+1
- Changed literal 1L values used in unit64 bit-shift operations to 1ULL. - Follow-up to f606519c3b611573ade246ec82db26437bf03668 (reported by zackdreaver) Signed-off-by: Haru <haru@dotalux.com>
2016-02-21Changing Job field to 'int64'Dastgir1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-02-21New format for Job field in job_db.confDastgir1-2/+4
2016-02-17Replaced some now unnecessary includes with forward declarations in header filesHaru1-1/+1
Added some forgotten <stdio.h> and "common/conf.h" includes to .c files, that were previously masked by the above. Signed-off-by: Haru <haru@dotalux.com>
2016-02-17Removed unnecessary typedefs from libconfigHaru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-01-16Added OneClickIdentify packetDastgir1-0/+2
2016-01-09Corrected various zero-argument function definitionsHaru1-1/+1
- Functions should always specify their arguments, even if they take none. In C, not specifying arguments is different than specifying (void). Signed-off-by: Haru <haru@dotalux.com>
2016-01-08Cleaned up the pilebunker item checkHaru1-0/+1
- Follow-up to e3da170660e8c52ec5657c086057085ef20e382f - Removed redundant checks for sd->equip_index[EQI_HAND_R] validity - Added itemid_is_pilebunker macro - Restored correct indentation of the return instruction Signed-off-by: Haru <haru@dotalux.com>
2016-01-07Skill Update:Jedzkie1-0/+3
- According to this kRO's Patch Note: https://rathena.org/board/topic/101392-4082015-maintenance/ • Mechanic's Pile Bunker added 3 new weapons.
2016-01-06Fixed #1071Jedzkie1-1/+5
Change the official message for NC_MAGICDECOY.