summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
AgeCommit message (Collapse)AuthorFilesLines
2020-07-26Merge pull request #2795 from Emistry/atcommand_itemHaru1-54/+55
Enable item atcommand to have optional parameters
2020-07-19Enable item atcommand to skip optional parametersEmistry Haoyan1-6/+6
- these parameters are optional for item creation, could just use default values.
2020-07-19Update item atcommands codesEmistry Haoyan1-50/+51
- update code format
2020-07-06Add NoPet mapflagEmistry Haoyan1-0/+2
- allow to set nopet mapflag at any maps. - mapflag to disable pet, and force return to egg.
2020-06-22Remove/move unnecessarily calling clif_send_petstatus()Kenpachi Developer1-6/+2
2020-06-22Call pet->set_hunger() in ACMD(pethungry) instead of directly assigning the ↵Kenpachi Developer1-1/+1
value
2020-06-22Update pet's egg data in ACMD(petrename)Kenpachi Developer1-0/+9
2020-06-22Implement intimacy display in pet egg's item description windowKenpachi Developer1-1/+1
2020-06-01fix motd on load/unload npc.Andrei Karas1-0/+3
2020-05-10Merge pull request #2705 from Kenpachi2k13/string_var_sizeHaru1-2/+6
Cap string variable value length and unify corresponding SQL columns size
2020-05-09Adjust size of fields holding a string variable's value to ↵Kenpachi Developer1-2/+6
SCRIPT_STRING_VAR_LENGTH + 1 Also exclude NULL-terminator from string variable value length in inter-server communication.
2020-05-04Merge pull request #2062 from AnnieRuru/36-PCBLOCK_COMMANDSHaru1-2/+2
Fix *atcommand cannot be use when PCBLOCK_COMMANDS is true
2020-04-08Use pc_(un)hide() in ACMD(hide)Kenpachi Developer1-33/+4
2020-04-05Merge pull request #2637 from Kenpachi2k13/fakename_fixHaru1-17/+39
Fix/extend @fakename
2020-04-05Apply code style to ACMD(pethungry) functionKenpachi Developer1-17/+27
2020-04-05Apply code style to ACMD(petfriendly) functionKenpachi Developer1-18/+26
2020-04-05Apply code style to ACMD(makeegg) functionKenpachi Developer1-24/+31
2020-04-05Add pet_set_hunger() functionKenpachi Developer1-1/+1
2020-04-05Add enum for pet intimacy levels and use its constantsKenpachi Developer1-1/+1
2020-04-05Add enum for pet hunger levels and use its constantsKenpachi Developer1-2/+2
2020-03-14Add pc_autocast_clear() function callsKenpachi Developer1-0/+2
2020-03-13Apply code style to ACMD(fakename) functionKenpachi Developer1-16/+22
2020-03-13Implement display options in ACMD(fakename) functionKenpachi Developer1-2/+18
2020-03-08Refactor code using directions to use enum unit_dirskyleo1-11/+31
This removes a lot of duplicated code, especially related to people not using the arrays dirx and diry. Assertions for whenever these arrays are used have been added as well, to ensure valid index range. Some trailing white space has been removed as well.
2020-02-09Merge pull request #2586 from Asheraf/madostatueffectHaru1-2/+9
Implement support for switching madogear type
2020-02-09Update ACMD(unloadnpcfile) path verificationKenpachi Developer1-9/+11
2020-02-09Update ACMD(reloadnpc) path verificationKenpachi Developer1-9/+11
2020-02-09Applied code style and added some minor code improvements to ↵Kenpachi Developer1-19/+72
src/map/atcommands.c. * Applied code style to touched @commands. * Added file path validation where fopen() is used to make sure a TXT file is passed. * Added new messages for file name validation to conf/messages.conf. * increased MAX_MSG to be able to use the new messages.
2020-02-09Applied code style and some minor improvements.Kenpachi Developer1-56/+62
* Added new message 1517 (Script could not be unloaded.) * Applied code style to several functions I touched. * Added some minor improments to the function where I applied code style.
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer1-17/+25
(non-permanent monster spawns) [Issue #2530] Mobs spawned by NPC will be removed on @reloadnpc, @unloadnpc, and @unloadnpcfile. Additionally OnNPCUnload NPC label was added, to revert other changes made by NPC. For example set/removed mapflags or added mob drops.
2020-02-09Update Duel System CooldownEmistry Haoyan1-6/+8
- Able to set cooldown in "seconds" format. - New `duel_time_interval` value will be applied to any existing cooldown if new value is reloaded in-game using `@reloadbattleconf`. - Display the cooldown tick before can create new duel.
2020-01-29Implement support for switching madogear typeAsheraf1-2/+9
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2020-01-12Adds buildin_resetfeel, buildin_resethate and acmd_hatereset.EyesOfAHawk1-0/+10
2019-11-06Dehardcode Status IconsAsheraf1-1/+1
2019-10-05Update dropall atcommandEmistry Haoyan1-5/+11
- The correct amount of dropped items should be displayed. - Included skipped amount.
2019-09-23Merge pull request #2535 from HerculesWS/itemdb_violationHaru1-3/+3
Fixed several issues in itemdb_search_name function
2019-09-22Fix several issues caused by the nick partial match feature, when enabled.Haru1-25/+25
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-19Rewrite of itemdb_searchname_array and itemdb_searchname_array_subIbrahim Zidan1-3/+3
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-09-18Add at command for change char sexAndrei Karas1-0/+13
New at command: @changecharsex
2019-08-26Remove round-trip to the inter-server for the broadcast messagesHaru1-3/+5
Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Remove round-trip to the inter-server for the whisper-to-gm messagesHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2019-07-28Merge pull request #2504 from Emistry/atcommand_refineHaru1-20/+61
Update refine atcommand
2019-07-15Update refine atcommandEmistry Haoyan1-20/+61
- list of costume and shadow equipments - refine all equipments option
2019-07-10Disable refresh atcommand when talk with NPC.Emistry Haoyan1-1/+5
- using `@refresh` during NPC conversation will caused player stucked due to unable to close the NPC dialog that no longer visible.
2019-07-01Add identifyall atcommandGuilherme Menaldo1-8/+20
Signed-off-by: Haru <haru@dotalux.com>
2019-06-30Merge pull request #2476 from Emistry/atcommand_reloadnpcHaru1-0/+33
Add new atcommand *reloadnpc
2019-06-02Merge pull request #2221 from carloshenrq/nostorageHaru1-2/+13
Mapflag nostorage and nogstorage
2019-05-18Add new atcommand *reloadnpcEmistry Haoyan1-0/+33
- `@reloadnpc <path>` - unloads all NPCs in a file and reload it again. - Be aware that mapflags and monster spawned directly are not removed.
2019-05-05Implement Refinery UIIbrahim Zidan1-0/+17
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>