summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
2017-09-17Add support for bitmask arrays in the item_db Loc fieldHaru1-0/+9
Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Add support for bitmask arrays in the item_db Upper fieldHaru1-0/+10
Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Move other view-related variables to `sd->status.look`Haru1-4/+4
The following variables are now moved to `sd->status.look` (from `sd->status`): `head_top`, `head_mid`, `head_bottom`, `robe` Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a Subtype (part 2)Haru1-1/+1
`sd->status.shield` is renamed to `sd->status.look.shield` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->has_shield`, of boolean type (to detect the presence of a shield) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a weapon SubtypeHaru1-1/+1
`sd->status.weapon` is renamed to `sd->status.look.weapon` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->weapontype` (holding the currently equipped weapon type, considering both hands at once) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Split 'View' in two different fields in the item databaseHaru1-2/+2
- 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-58/+113
Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Add item subtype (weapon/ammunition type) constantsHaru1-0/+37
Signed-off-by: Haru <haru@dotalux.com>
2017-07-30Implementation of RoDEXKirieZ1-0/+181
2017-07-27Fix possible buffer overflows with snprintf.Andrei Karas1-1/+1
2017-07-12Merge pull request #1790 from mekolat/channel2Haru1-3/+5
Allow to use channelmes without attached player
2017-07-11merge meko/set-sd2gumi1-4/+5
2017-07-11Added getcalendartime script commandKirieZ1-0/+96
Signed-off-by: Haru <haru@dotalux.com>
2017-07-11Added time limit parameter to setquestKirieZ1-4/+6
Signed-off-by: Haru <haru@dotalux.com>
2017-07-11Merge pull request #1788 from mekolat/type2Haru1-0/+64
new buildin: getdatatype()
2017-07-10fix setting pc var on another pcgumi1-4/+5
2017-07-04Merge pull request #1773 from dastgir/bug/item-optionssmokexyz1-6/+6
Item option fixes
2017-06-28Fix a compile error on ARM (Raspberry Pi 3)Haru1-8/+17
According to the C specifications, va_list isn't necessarily a pointer (it can be an array of pointers, or just about anything). As such, we can't cast NULL to va_list. Fixes #1793 Related to 5fd40de233d3a897284f771338cbf8e657182261 Signed-off-by: Haru <haru@dotalux.com>
2017-06-25fix guild leader change in 2017 clients. Based on rathena commit:Andrei Karas1-1/+1
commit b51617cb730cdc6d91bc03df16c887a060323f3a Author: Lemongrass3110 <lemongrass@kstp.at> Date: Sat Jun 3 17:03:56 2017 +0200 Added support for 2017's guild leader change
2017-06-24make buildin_recovery more versatilegumi1-14/+48
2017-06-24Merge pull request #1765 from mekolat/swap2Haru1-4/+7
fix for #1761
2017-06-24Merge pull request #1775 from dastgir/bug/card_removeHaru1-77/+43
Fixes remove card bug
2017-06-24allow removechannelhandler to be called with attached ridgumi1-1/+2
2017-06-24allow addchannelhandler to be called with attached ridgumi1-1/+2
2017-06-24allow channelmes to be called without attached ridgumi1-1/+1
2017-06-21add getdatatype() buildingumi1-0/+64
2017-06-09fix another memory leak introduced by 5ceccb7gumi1-0/+2
2017-06-09WhitespaceDastgir1-35/+33
2017-06-09Fixed a bug where removing a card from successremovecards andDastgir1-44/+12
failedremovecards were also removing item options.
2017-06-08Corrected Documentation of getequipoption.Dastgir1-6/+6
2017-06-05fix loss of reference in buildin_swapgumi1-4/+7
2017-06-05fix memory leak introduced by 5ceccb7gumi1-0/+4
2017-06-03flag misceffect() as deprecatedgumi1-1/+1
2017-06-03flag specialeffect2() as deprecatedgumi1-1/+1
2017-06-03allow to use specialeffect() on any unit, and to send to any playergumi1-10/+26
2017-06-03Merge pull request #1684 from Smokexyz/refine-updateHaru1-8/+26
Enriched refine chance correction
2017-06-03Merge pull request #1747 from mekolat/param2Haru1-8/+14
patch for readparam()
2017-06-03Merge pull request #1753 from mekolat/string2Haru1-0/+38
new buildins: isstr, getarrayindex
2017-06-03Merge pull request #1736 from mekolat/group2Haru1-0/+40
new buildin: add_group_command
2017-06-01add buildin getarrayindex()gumi1-0/+17
2017-06-01add buildin isstr()Andrei Karas1-0/+21
2017-05-28add buildin add_group_command()gumi1-0/+40
2017-05-28flag the pow() buildin as deprecatedgumi1-1/+1
2017-05-28add exponentiation operatorgumi1-0/+6
2017-05-28allow to pass actual params to getparamgumi1-8/+14
2017-05-27Merge pull request #1722 from Smokexyz/mmo_charstatus-fixHaru1-1/+9
Dismemberment of `storage_data` from `mmo_charstatus`.
2017-05-22Add storage_data reception, parsing and sending to/from the map-server.Smokexyz1-1/+9
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-05-21Refine rate correction from kRO.smokexyz1-8/+26
Normal Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941553&curpage=1 Enriched Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941565&curpage=1 Event Normal Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941558&curpage=1 Event Enriched Ores: http://ro.gnjoy.com/news/probability/View.asp?category=4&seq=1941567&curpage=1
2017-05-12add channel handler eventsgumi1-0/+51
2017-05-09Merge pull request #1699 from Jedzkie/11-SummerCostumeHaru1-0/+1
Implemented Official Summer 2 Costume