summaryrefslogtreecommitdiff
path: root/src/map/script-fun.cpp
AgeCommit message (Collapse)AuthorFilesLines
2018-03-23Fix NPC script softlockv18.3.22Freeyorp1-0/+11
When an NPC called destroy; from an attached script, npc_id, and associated state, was not properly cleared. This meant that the server considered the PC to still be in conversation, preventing many actions including walking, but with an invalid NPC. This clears state for the specific case of the a PC attached to the script instance that called destroy. It is still not safe to call destroy; if other players may be attached to it.
2018-03-08fix some out-of-memory reads in script builtinsgumi1-3/+3
2018-02-17remove unused variablesgumi1-1/+0
2018-01-29fix the nullpo check in builtin_getcharidv18.1.29.1gumi1-1/+4
2018-01-29cowardly abort script if sd is missingv18.1.29gumi1-77/+100
2018-01-28make the player stand while attacking with overridesgumi1-0/+3
2018-01-28allow to specify charges for magic overridegumi1-2/+2
2018-01-03remove mob timers, make areatimer only work on PCgumi1-10/+0
2018-01-01release v18.1.1v18.1.1gumi1-1/+4
2016-11-26Merge pull request #226 from mekolat/settilesv16.11.27mekolat1-0/+33
Implement SMSG_MAP_SET_TILES_TYPE
2016-05-13implement SMSG_MAP_SET_TILES_TYPE, add builtin sendcollisionmekolat1-0/+33
2016-05-12allow to use npctalk on non-script npcsmekolat1-3/+3
2016-05-01allow foreach to have a targetmekolat1-3/+12
2016-05-01allow addtimer to have a targetmekolat1-2/+14
2016-05-01revert attachrid modification for now, will be deprecated soon enoughmekolat1-11/+1
2016-05-01Merge pull request #216 from mekolat/aggravatemekolat1-26/+8
simplify `aggravate` builtin
2016-05-01Merge pull request #217 from mekolat/overridemekolat1-14/+24
override modifications
2016-05-01make builtin_overrideattack take no charge, allow to dischargemekolat1-14/+24
2016-04-30simplify `aggravate` builtinmekolat1-26/+8
2016-04-28Make getmap take target_idwushin1-2/+8
2016-04-25yay! another bug! (move assert in builtin_explode)v16.4.25.2mekolat1-1/+3
2016-04-25allow setarray and cleararray to have no block listv16.4.25.1mekolat1-10/+12
2016-04-25fix compilation errorv16.4.25mekolat1-1/+1
2016-04-25use map_id_is_XXX in script-fun where appropriatemekolat1-16/+66
2016-04-24always return a value in builtin_getv16.4.24.1mekolat1-0/+8
2016-04-24check for null pointer where npc_dialog_mes is usedmekolat1-0/+6
2016-04-24fix npc gender for ManaPlusmekolat1-0/+1
2016-04-23forbid puppet creation if name already existsmekolat1-1/+7
2016-04-23make `get` return -1 when getting a param failsmekolat1-2/+4
2016-04-15improvements, cleanup, bug fixesmekolat1-62/+140
2016-04-15add new builtins for npc commandsmekolat1-5/+209
add requestitem builtin add requestlang builtin add camera builtin send a force-close on close when no npc dialog add clear builtin
2016-04-15Fake a response on no BLwushin1-1/+5
2016-04-15default getarg valuemekolat1-2/+9
2016-04-15builtin_voidmekolat1-1/+8
2016-04-15add builtin_call and builtin_getargmekolat1-4/+84
2016-04-15add chr and ord builtinsmekolat1-0/+16
2016-04-15add more params, allow get/set to use char idmekolat1-2/+26
2016-04-15allow to get another player's account varsmekolat1-1/+11
2016-04-15do not bind trigger detection to map cellsmekolat1-1/+6
2016-04-15convert unhandled types for scope varsmekolat1-5/+5
2016-04-15add type 3 to foreachmekolat1-0/+3
2016-04-15add being id parameter to sc_check, sc_end, getpvpflag and strcharinfomekolat1-8/+24
2016-04-15fix compilation errorsmekolat1-2/+2
2016-04-15make addnpctimer attach to the target npc instead of oidmekolat1-1/+1
2016-04-15replicate magic-v2's line_of_sightmekolat1-2/+6
2016-04-15misc modificationsmekolat1-1/+24
2016-04-15add builtin_distancemekolat1-0/+32
2016-04-15remove hardcoded shit from builtin_injure and add builtin_targetmekolat1-34/+60
2016-04-15allow to get mob/npc params and add more params to readparammekolat1-3/+11
2016-04-15remove ugly workaroundmekolat1-5/+1