summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
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
2017-05-04Merge pull request #1717 from mekolat/vault2Haru1-0/+2
expose the bank vault to the script engine
2017-04-29Merge pull request #1712 from mekolat/canuse2Haru1-0/+91
add permission checking buildins, expose PC permission constants
2017-04-27Merge pull request #1711 from mekolat/checkoption2Haru1-8/+32
allow checkoption et al to check another player
2017-04-25expose bank vault to the script enginegumi1-0/+2
2017-04-25add permission checking buildinsgumi1-0/+91
add has_permission() add can_use_command() expose PC permission constants
2017-04-25Merge pull request #1689 from Jedzkie/2-GiantFlyWingHaru1-58/+65
Implemented official Giant Fly Wing Effect
2017-04-24allow checkoption et al to check another playergumi1-8/+32
2017-04-24Removed hard coded values on @cashmount and setcashmount.Jedzkie1-9/+17
2017-04-24Fix some issues in the unit controlling script commandsHaru1-110/+101
- Fixes some issues detected by coverity (UDT_TYPE not working in getunitdata, invalid comparisons due to type mismatch) - Fixes some incorrect typecasts This is a follow-up to a6ca899ac (PR #1584) Signed-off-by: Haru <haru@dotalux.com>
2017-04-23Implemented official Giant Fly Wing EffectJedzkie1-58/+65
Update the *warpparty script commmand, credits to Dastgir Coding-style fixes & whitespace adjustments in warpparty part in script.c
2017-04-23Merge pull request #1584 from Smokexyz/masterHaru1-0/+1600
Implementation of unit controlling script commands.
2017-04-19Implemented Official Summer 2 CostumeJedzkie1-0/+1
Added summer2_ignorepalette configuration
2017-04-13add missing _pc in set_reggumi1-4/+4
2017-04-12fix 1b0d3bd "add getvariableofpc() buildin"gumi1-1/+0
2017-04-12fix a16fbb3 "allow character and account variables to reference another ↵gumi1-26/+139
registry"
2017-04-11Fixes a minor typo in buildin_setequipoptionsmokexyz1-2/+2
Related to the order of the arguments.