summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
2020-07-31[TMW2] SUMMON FIXstabler_stableJesusaves1-0/+2
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
2019-04-11Modernize coding styleAnnieRuru1-23/+21
2019-04-10Expand *getinventorylist() script commandEmistry Haoyan1-25/+32
- return an array `@inventorylist_favorite` - indicate whether an item in the inventory are located inside favorite tab or not.
2019-04-08Fix an issue with named/brewed/forged items getting saved with the wrong ↵Ibrahim Zidan1-6/+6
character id The isue was triggered by the refactoring of old undocumented code that relied on the overflow behavior during assignment from int32 to int16 and from uint16 to int16, and by a subsequent clamping to SMALLINT range operated by the SQL server. Credits: Haru <haru@dotalux.com> Fixes #2409 Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-04-07Merge pull request #2415 from AnnieRuru/76-showscriptHaru1-7/+7
Add optional parameter for *showscript to send target to SELF only
2019-04-07Merge pull request #2367 from AnnieRuru/54-MAX_ITEM_IDHaru1-0/+1
Add new server define constant MAX_ITEM_ID
2019-04-07Rename clif_charnameack into clif_blname_ackAndrei Karas1-5/+5
2019-04-07Merge pull request #2398 from AnnieRuru/69-getpetinfoHaru1-22/+75
Deprecate *petstat and add CONSTANTS to *getpetinfo
2019-04-07Merge pull request #2408 from AnnieRuru/73-UDT_LEVELHaru1-0/+2
Fix UDT_LEVEL when show_mob_info level display is on
2019-04-07Merge pull request #2388 from AnnieRuru/61-gettimestrHaru1-10/+22
Add optional parameter for *gettimestr
2019-04-07Merge pull request #2401 from dastgirp/feature/getinventorylistHaru1-0/+1
Expanded getinventorylist:
2019-03-30Add optional parameter for *showscript to send target to SELF onlyAnnieRuru1-7/+7
- also remove the useless script_pushint
2019-03-23white space editAnnieRuru1-8/+8
2019-03-23Add optional parameter for *gettimestrAnnieRuru1-2/+14