summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
2019-09-22Implement getfont script command which returns player's current chat fontIbrahim Zidan1-0/+14
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-09-22Implement new script fields for items triggered on rentral status changesIbrahim Zidan1-0/+32
- 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-22Fix several issues caused by the nick partial match feature, when enabled.Haru1-8/+8
Partial match is now disabled in all the internal (source) and script lookups, while it's enabled for the lookups requested by atcommands and client. Signed-off-by: Haru <haru@dotalux.com>
2019-09-22Merge pull request #2519 from Asheraf/guildcastlesupdateHaru1-0/+5
Implementation of new guild ui client features
2019-09-22Mark some forgotten symbols as staticHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2019-09-22Merge pull request #2524 from MishimaHaruna/homunculus-fixesHaru1-1/+1
Homunculus related fixes
2019-09-22Implementation of new guild ui client featuresAsheraf1-0/+5
2019-09-19Rewrite of itemdb_searchname_array and itemdb_searchname_array_subIbrahim Zidan1-1/+1
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-26Merge pull request #2522 from MishimaHaruna/remove-inter-roundtripsHaru1-12/+8
Remove some round-trips to the inter-server
2019-08-26Fix an issue that prevents homunculus auto-vaporize on death or skill resetHaru1-1/+1
The >80% HP condition is now ignored in the cases the vaporization is forced by the server Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Merge pull request #2518 from Emistry/scriptcommand_setgetiteminfoHaru1-0/+171
Extend *set/getiteminfo script commands
2019-08-26Remove round-trip to the inter-server for the broadcast messagesHaru1-12/+8
Signed-off-by: Haru <haru@dotalux.com>
2019-08-05Extend *set/getiteminfo script commandsEmistry Haoyan1-0/+171
- additional options.
2019-07-29Update *getequiprefinerycnt script commandEmistry Haoyan1-17/+19
- allow to specify more than one equipment slots. - return the total of refine of specified equipment slots.
2019-07-28Merge pull request #2510 from Emistry/mobdb_dmg_taken_rateHaru1-0/+9
Update mob_db - DamageTakenRate field
2019-07-24Update mob_db - DamageTakenRate fieldEmistry Haoyan1-0/+9
- adjust the damage taken by monster. (default = `100 = 1x`) - ref: https://github.com/idathena/trunk/commit/e267d2e2dada6196b479a6f2f35e9d25291ef22b
2019-07-21Update script command isequippedEmistry Haoyan1-0/+4
- added missing costume equipment validation
2019-07-01Add identify script commandGuilherme Menaldo1-0/+37
Signed-off-by: Haru <haru@dotalux.com>
2019-07-01Add identifyidx script commandGuilherme Menaldo1-0/+35
Signed-off-by: Haru <haru@dotalux.com>
2019-06-30Merge pull request #2427 from Emistry/scriptcommand_setfavoriteitemHaru1-0/+45
Add *setfavoriteitemidx & *autofavoriteitem script commands - alter item favorite state
2019-06-02Merge pull request #2221 from carloshenrq/nostorageHaru1-0/+19
Mapflag nostorage and nogstorage
2019-06-02Adds buildin_getguildonline.EyesOfAHawk1-0/+63
Signed-off-by: Haru <haru@dotalux.com>
2019-06-02standardize script commands to small lettersAnnieRuru1-8/+8
Signed-off-by: Haru <haru@dotalux.com>
2019-06-03Add *setfavoriteitemidx & *autofavoriteitem script command.Emistry Haoyan1-0/+45
- 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-06-02Merge pull request #2394 from bWolfie/buildin_delitemidxHaru1-0/+43
Adds BUILDIN(delitemidx), which deletes an item at the given index.
2019-06-02Adds BUILDIN(delitemidx), which deletes an item at the given index.EyesOfAHawk1-0/+43
Signed-off-by: Haru <haru@dotalux.com>
2019-06-01Merge pull request #2380 from AnnieRuru/59-all_AllHaru1-2/+8
Standardize to "all" in script commands
2019-06-01Merge pull request #2430 from Emistry/scriptcommand_npcspeedHaru1-46/+62
Fix map-crash when floating npc use *npcspeed script command
2019-06-01Merge pull request #2471 from Emistry/scriptcommand_mesclearHaru1-0/+14
Add *mesclear script command.
2019-06-01Merge pull request #2472 from Emistry/scriptcommand_cap_valueHaru1-0/+12
Add *cap_value script command
2019-06-01Merge pull request #2474 from Emistry/scriptcommand_getmapinfoHaru1-3/+9
Update *getmapinfo script command.
2019-06-01Merge pull request #2477 from Emistry/issue_2469Haru1-1/+2
Fix *failedremovecards script command.
2019-06-01Merge pull request #2375 from AnnieRuru/58-negative_inputHaru1-25/+26
Allow *input script command to support negative input
2019-05-18Fix *failedremovecards script command.Emistry Haoyan1-1/+2
- only `type == 1` will remove the card. - fixes #2469
2019-05-15Update *getmapinfo script command.Emistry Haoyan1-3/+9
- Added parameter `MAPINFO_NPC_COUNT` to return the total number of NPC exists in the map. - Added new server define `MAX_NPC_PER_MAP`
2019-05-14Add *cap_value script commandEmistry Haoyan1-0/+12
- add `cap_value(value, min, max)` script command. - avoid the ugly nested `min()` and `max()` combo if needed.
2019-05-14Added *mesclear script command.Emistry Haoyan1-0/+14
- `*mesclear()` script command will clear the NPC dialog text and continue the script without player interaction. example: `next();`.
2019-05-06Move questinfo data from map to npc_dataAsheraf1-7/+5
this will fix the issue where having multiple `questinfo()` blocks wont work properly
2019-05-05Implement Refinery UIIbrahim Zidan1-0/+20
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-05-05Removal of refine database code from status.c and moving it respectfully to ↵Ibrahim Zidan1-1/+2
its own files Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-05-05Add script function for close roulette windowAndrei Karas1-0/+12
New script function: closeroulette()
2019-05-05Move UDT_* constants from constants.conf into script.cAndrei Karas1-0/+60
2019-05-05Add commands getunittitle and setunittitleAndrei Karas1-0/+42
This commands get/set title for non players bl
2019-05-05Extend setinitdata and getunitdata with UDT_GROUP flagAndrei Karas1-0/+23
2019-05-05Merge pull request #2425 from hemagx/hercules_signed_items_fixHaru1-6/+6
Fix an issue with named/brewed/forged items getting saved with the wrong character id
2019-05-05Merge pull request #2426 from Emistry/scriptcommand_getinventorylist_favouriteHaru1-25/+32
Expand *getinventorylist() script command - favorite field
2019-04-29Added *consolemes script commandEmistry Haoyan1-1/+61
- deprecated `*debugmes` script command. - added `*consolemes` script command which display the console message based on `type`. - allow map-server console to auto logging into text file depend on type of message.
2019-04-11Added NULL unit data validation for NPC.Emistry Haoyan1-46/+62
- script command `npcspeed`, `npcwalkto`, `npcstop`, `unitwalk`, `unitwarp`, `unitstop` are not applicable for floating npc (without coordinate/location). - Fix map-crash due to unit_data `NULL`.
2019-04-11Standardize to "all" in script commandsAnnieRuru1-2/+8
2019-04-11Add 3 pc variables just for the input limit ...AnnieRuru1-3/+6
sd->npc_amount_min and sd->npc_amount_max to limit input range and sd->npc_input_capped_range because the documentation ask for it