summaryrefslogtreecommitdiff
path: root/src/map/script.c
AgeCommit message (Collapse)AuthorFilesLines
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.
2018-12-14Add script command expandInventoryAckAndrei Karas1-0/+21
It send initial response for inventory expanding request.
2018-12-14Add inventory size field into db and using it in server.Andrei Karas1-37/+35
2018-12-12Add script command servicemessage.Andrei Karas1-0/+24
This command will show colored message in chat. This message will be not logged to file and will be not visible over head.
2018-12-12Add script command for insert cards into equipped items.Andrei Karas1-0/+51
enchantitem(<equip_pos>, <card_slot>, <card_id>)
2018-11-14Use an enum as flag for status->heal() and related functionsHaru1-14/+14
This introduces the `enum status_heal_flag`. No functional changes are made. Signed-off-by: Haru <haru@dotalux.com>
2018-11-13Merge pull request #2289 from EyesOfAHawk/buildin_getnpcidHaru1-21/+12
Remove type argument from buildin_getnpcid.
2018-11-13Remove type argument from buildin_getnpcid.EyesOfAHawk1-21/+12
2018-11-13Merge pull request #2304 from Helianthella/data-to-stringHaru1-0/+59
add data_to_string()
2018-11-13Merge pull request #2105 from Helianthella/getunits3Haru1-11/+3
break the loop in buildin_getunits when the max is reached
2018-11-07break the loop in buildin_getunits when the max is reachedgumi1-11/+3
2018-10-22add buildin_data_to_string and buildin_string_to_datagumi1-0/+59
2018-10-22Merge pull request #2279 from Helianthella/promptHaru1-98/+24
deprecate buildin_prompt, bake it into buildin_select
2018-10-22Add script command itempreview for update preview window with given item.Andrei Karas1-0/+12
2018-10-22Merge pull request #2251 from Asheraf/pr3Haru1-0/+12
Add new type for mercenary class to setquestinfo()
2018-10-22Merge pull request #2250 from Asheraf/pr2Haru1-12/+1
change showevent icon validation to use function from questinfo
2018-10-21Merge pull request #2172 from dastgirp/enhance/getiteminfoHaru1-0/+21
Updated getiteminfo and setiteminfo.
2018-10-21Updated getiteminfo and setiteminfo.Dastgir1-0/+21
Added ITR_TRADE (Trade restriction) for both script commands
2018-10-11add constants for max menu length and optionsgumi1-14/+16
2018-10-11bake buildin_prompt into buildin_select and clarify the difference between ↵gumi1-87/+11
the two
2018-10-07Merge pull request #2239 from guilherme-gm/201810-assertion_berserkHaru1-1/+3
Fixes an assertion error when sc_end is called for SC_BERSERK
2018-10-07Merge pull request #2240 from Helianthella/getd-constHaru1-1/+3
allow buildin_getd to work with constants and params
2018-10-07Merge pull request #2238 from Helianthella/varofpcHaru1-80/+13
fix setting char/account variables of another player
2018-10-05Implement status reduction script command.Emistry Haoyan1-0/+20
- for stat reduction support. - return the amount of status point required to increase a status.
2018-10-04Add script commands for show camera info window and change camera parameters.Andrei Karas1-0/+30
New script commands: camerainfo, changecamera
2018-10-03Add new type for mercenary class to setquestinfo()Asheraf1-0/+12
2018-10-03Add script command for remove special effect.Andrei Karas1-0/+45
New script command: removespecialeffect *removespecialeffect(<effect number>{, <send_target>{, <unit id>{, <account id>}}}) *removespecialeffect(<effect number>{, <send_target>{, "<NPC Name>"{, <account id>}}})
2018-10-02change showevent icon validation to use function from questinfoAsheraf1-12/+1
2018-10-01use the regular pc->setregistry to set vars of another chargumi1-103/+12
this will prevent further errors, and will allow setting special variables such as `#CASHPOINTS`
2018-10-01fix setting char/account variables of another playergumi1-2/+26
2018-10-01allow buildin_getd to work with constants and paramsgumi1-1/+3
this is highly discouraged, but it should still work
2018-10-01Fixes an assertion error when sc_end is called for SC_BERSERKGuilherme G. Menaldo1-1/+3
2018-09-24Merge pull request #2193 from Helianthella/mesAsheraf1-3/+7
buildin_mes shorthand
2018-09-23Merge pull request #2218 from Asheraf/questinfo_fixHaru1-5/+14
Fix wrong validation for quests in setquestinfo
2018-09-23Add support for item amount range in setquestinfoAsheraf1-5/+14
2018-09-19Update inventory packet for 2018-09-12 RE.Andrei Karas1-2/+2
2018-08-29fix set_reg no longer being able to handle C_PARAMgumi1-1/+1
closes #2200
2018-08-26make it legal to not pass arguments to buildin_mesgumi1-3/+7
2018-08-26Merge pull request #2164 from mekolat/addvariableHaru1-66/+121
always set the type to C_NAME when adding variables through script->add_str
2018-08-24Merge pull request #2146 from mekolat/debugmesHaru1-4/+13
bake sprintf into debugmes
2018-08-24Merge pull request #2176 from 4144/updatepacketsHaru1-0/+40
Update packets to 2018-08-08
2018-08-24Merge pull request #2154 from mekolat/isfunctionHaru1-6/+46
improve is_function()
2018-08-23Add script command msgtable and msgtable2.Andrei Karas1-0/+40
New script commands: msgtable msgId [, color] msgtable2 msgId, param [, color]
2018-07-30push constants as C_NAME in the script buffergumi1-2/+10
2018-07-30always set the type when doing script->add_strgumi1-64/+111