summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
AgeCommit message (Collapse)AuthorFilesLines
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>
2019-05-05Fix variables shadowing refine interface variable map-server sourceIbrahim Zidan1-14/+14
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-0/+1
its own files Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-05-05Add missing checks for prevend flagAndrei Karas1-3/+3
2019-05-05Merge pull request #2425 from hemagx/hercules_signed_items_fixHaru1-3/+3
Fix an issue with named/brewed/forged items getting saved with the wrong character id
2019-04-29Update dropall atcommand drop item based on type.Emistry Haoyan1-5/+30
- Enable to drop items based on item type.
2019-04-08Fix an issue with named/brewed/forged items getting saved with the wrong ↵Ibrahim Zidan1-3/+3
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-07Rename clif_charnameack into clif_blname_ackAndrei Karas1-4/+4
2019-03-11Move local variables in atcommand.c into interfaceAndrei Karas1-0/+3
Also move defines from map.h inot mapdefines.h for fix cycle include issue.
2019-02-11Change type for class variables from short to intAndrei Karas1-1/+1
2018-12-14Add inventory size field into db and using it in server.Andrei Karas1-16/+8
2018-12-04Added mapflags 'nostorage' and 'nogstorage'Carlos Henrique1-2/+13
nostorage 1 -- blocks only @storage nostorage 2 -- blocks only openstorage(); nostorage 3 -- blocks @storage and openstorage() nogstorage 1 -- blocks only @gstorage nogstorage 2 -- blocks only guildopenstorage(); nogstorage 3 -- blocks @gstorage and guildopenstorage()
2018-11-16Merge pull request #2322 from MishimaHaruna/fix-allychat-leaveguildHaru1-29/+19
Fix allychat leaveguild
2018-11-15Merge pull request #2321 from 4144/packetlenHaru1-3/+7
Add complete packet len table
2018-11-14Use an enum as flag for status->heal() and related functionsHaru1-3/+3
This introduces the `enum status_heal_flag`. No functional changes are made. Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Use new packet tables for packets len.Andrei Karas1-3/+6
2018-11-14Add interface for packets in common.Andrei Karas1-0/+1
For now supported only packet length fields.
2018-11-13Remove a duplicate output line from the help message for the channel atcommandHaru1-3/+1
Signed-off-by: Haru <haru@dotalux.com>
2018-11-13Fix an issue that caused some guild channels not to be left when leaving ↵Haru1-7/+5
allychat - The issue was caused by an array compaction while iterating through the array members. - A visible effect was that under certain conditions (depending on the alliance size), a character that left a guild could still see allychat messages from some of the allied guilds. Signed-off-by: Haru <haru@dotalux.com>
2018-11-13Replace sd->channels with a VECTORHaru1-23/+17
This removes some shady array compaction code and prepares the ground for some further fixes. Signed-off-by: Haru <haru@dotalux.com>
2018-11-13Merge pull request #2287 from EyesOfAHawk/hcs_opt_msg_delayHaru1-2/+2
Add config for '@channel setopt MessageDelay <delay>'
2018-10-22Merge pull request #2264 from Asheraf/pr5Haru1-12/+1
update at_bodystyle allowed jobs check
2018-10-16Add config for '@channel setopt MessageDelay <delay>'.EyesOfAHawk1-2/+2
2018-10-06update at_bodystyle allowed jobs checkAsheraf1-12/+1
2018-10-05Add at command @camerainfo.Andrei Karas1-0/+19