summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
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-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
2019-03-20Fix UDT_LEVEL when show_mob_info level display is onAnnieRuru1-0/+2
2019-03-12Add constants to *getpetinfo, and add some new fieldsAnnieRuru1-21/+74
2019-03-11Deprecate *petstat script commandAnnieRuru1-1/+1
2019-03-11Merge pull request #2399 from AnnieRuru/70-needed_status_pointHaru1-2/+2
Fix *needed_status_point not support <char_id>
2019-03-11Merge pull request #2391 from AnnieRuru/64-setunitdata_phase_1Haru1-2/+10
setunitdata/getunitdata clean up. Phase 1
2019-03-11Merge pull request #2396 from AnnieRuru/67-mobattachedHaru1-0/+29
* Add *mobattached and *killmonstergid script command
2019-03-11Merge pull request #2397 from AnnieRuru/68-getmercinfoHaru1-32/+59
Add constants and MERCINFO_GID to *getmercinfo script command
2019-03-11Merge pull request #2381 from AnnieRuru/60-bg_norespawnHaru1-1/+1
Add missing documentation for disable battleground respawn
2019-03-11Add constants and MERCINFO_GID to *getmercinfo script commandAnnieRuru1-32/+59
2019-03-09Expanded getinventorylist:Dastgir1-0/+1
* getinventorylist now creates extra variable named @inventorylist_idx, which returns items corresponding inventory index.
2019-03-03Fix *needed_status_point not support <char_id>AnnieRuru1-2/+2
2019-03-02Merge pull request #2390 from AnnieRuru/63-MOB_CLONE_STARTAsheraf1-0/+2
Add MOB_CLONE_START & MOB_CLONE_END to server defined constants
2019-03-02* Add *mobattached and *killmonstergid script commandAnnieRuru1-0/+29
also fix quests_rachel, now support with *unitemote
2019-02-28* Remove all the (int) in the documentationAnnieRuru1-2/+10
- once all the strings culprit are out, now only left with int to deal with. - Please make this script command only dealing with ONE INTEGER value
2019-02-27Change return value from 0 into -1 when *getunitdata return errorAnnieRuru1-11/+11
2019-02-26Add MOB_CLONE_START & MOB_CLONE_END to server defined constantsAnnieRuru1-0/+2
2019-02-26Add missing documentation for disable battleground respawnAnnieRuru1-1/+1
- fix a minor bug that bg_create_team should return -1, as mentioned in doc/script_commands.txt
2019-02-11Change type for class variables from short to intAndrei Karas1-1/+1
2019-02-06Add new server define constant MAX_ITEM_IDAnnieRuru1-0/+1
2019-02-05Add support for barter shops for main and re clients with version 20190116Andrei Karas1-2/+2
2019-02-04Add missing check in run_script_mainAndrei Karas1-0/+3
2019-02-01Merge pull request #2307 from kisuka/checknameditemHaru1-0/+60
Added countnameditem script command.
2019-02-01Added countnameditem script command.kisuka1-0/+60
Signed-off-by: Haru <haru@dotalux.com>
2019-01-14Add support for saving/loading barter shops from sql table.Andrei Karas1-32/+70
Also allow add duplicated item id to barter shops if price is different.
2019-01-14Add barter type shop and add packet ZC_NPC_BARTER_OPENAndrei Karas1-10/+44
2018-12-16Merge pull request #2246 from Emistry/scriptcommand_pcneedstatuspointHaru1-0/+20
Implement status reduction script command.
2018-12-14Add script command getInventorySize.Andrei Karas1-0/+11
This command allow read current max inventory size.
2018-12-14Add script command expandInventoryAndrei Karas1-0/+11
This command allow adjust inventory size to positive or negative value.
2018-12-14Add script command expandInventoryResult.Andrei Karas1-0/+18
This function send to client final expand status.