summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
AgeCommit message (Collapse)AuthorFilesLines
2013-07-29Permission cache overhaulPiotr Hałaczkiewicz1-91/+136
* Reworked group permission caching in session data (follow-up to cd45c30ab2dcc44bfbfac283d15bb09b3d4644bc) * Removed duplicated information from session data in favor of direct pointer to group settings. * Added getters for all group data required to process permissions and related stuff. * Added new functions to PC interface and updated calls everywhere. * Extracted function to set new group for a player (used at login, group config reload, manual adjustment of group). * Moved command permission config parsing to atcommand module. * Improved dummy map session handling. * Since it's required for all map sessions to have a valid group, dummy sessions are now created by a designated function. * Updated related code that uses dummy sessions (console `gm use` and script `atcommand`, `useatcmd`). * Various minor improvements and cleanups. * Eliminated some global variables related to loading atcommand permissions for group by passing them directly to function. * Moved definition of global array holding PC permission names from header file to source file. * Streamlined destuction of atcommands database to use DBApply helper function instead of DBIterator. * Replaced hardcoded position of console dummy session with defines from mapindex.h (thx Haruna for pointing it out). * Removed fixed length restriction on group names.
2013-07-29Fixed Bug #7597 / Follow up b7171479a47490ff80bf04849f763158d6d96facshennetsind1-1/+1
http://hercules.ws/board/tracker/issue-7597-server-crash/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-29Added mercenary interfaceSusu1-3/+3
2013-07-29Added intif interfaceSusu1-10/+10
2013-07-29Added elemental interfaceSusu1-2/+2
2013-07-29Added iDuel interface (duel.c)Susu1-14/+14
2013-07-26Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-2/+2
2013-07-25Expanding script.c interfaceshennetsind1-7/+7
Hercules Renewal Phase One. Signed-off-by: shennetsind <ind@henn.et>
2013-07-23Refactored map_foreach* functions.Piotr Hałaczkiewicz1-2/+2
Removed a lot of duplicated code. Added some documentation & comments.
2013-07-17Added missing initialization of some functions in the homunculus interfaceHaru1-1/+1
- Fixes issue #7536 (thanks to jTynne for the report) http://hercules.ws/board/tracker/issue-7536-map-crash-july-15th/ - Minor corrections to the other interfaces as well (reordered initialization to follow the definitions, removed duplicate entry in the skill interface initialization, commented out some unused entries) Signed-off-by: Haru <haru@dotalux.com>
2013-07-08Fixed Bug #7493shennetsind1-1/+1
Special Thanks to quesoph http://hercules.ws/board/tracker/issue-7493-compiling-with-cygwin/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-07Fixed Bug#6503malufett1-4/+4
-where SR_GENTLETOUCH_REVITALIZE is not working properly. Fixed Bug#6547 & Bug#6141 -SC_BLOODYLUST should now work properly like as official behavior. Fixed Bug#7395 -SO_SPELLFIST should now work properly. Fixed Bug#7477 -removed hidden walkdaley that makes character stop when hit even if SC_ENDURE is active. Fixed Bug#7475 -fixed error message in SA_AUTOSPELL when cancel button is pressed. Fixed Bug#7337 -MG_CHANGECART should now work properly. Fixed Bug#7474 -SC_MAELSTROM should now work properly like as official behavior.
2013-07-05Implemented real-time server stats (in and out data and ram usage), made by ↵Matheus Macabu1-1/+1
Ai4rei; thanks! Another follow up, now to fix maximum value of chatdori setting; And fixed a bug where warping to a disable map would cause the map-server to crash. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2013-07-04- Added interface iStatus (needed to renamed it because A LOT of variables ↵Susu1-16/+16
are already called 'status')
2013-07-01Fixed Bug #7216shennetsind1-0/+2
Special Thanks to Shikazu, wouldn't have been able to identify this issue without his help! http://hercules.ws/board/index.php?app=tracker&showissue=7216 Signed-off-by: shennetsind <ind@henn.et>
2013-06-27Fixed Bug #7433shennetsind1-0/+10
http://hercules.ws/board/tracker/issue-7433-mount-and-mount2-command-bug/ Signed-off-by: shennetsind <ind@henn.et>
2013-06-27Follow up f98484699e820d8a6cd2eb656244a9178b1ecc61shennetsind1-1/+1
Signed-off-by: shennetsind <ind@henn.et>
2013-06-27Merge pull request #48 from CairoLee/mastershennetsind1-1/+3
Implemented notomb Mapflag
2013-06-27Merge pull request #54 from MatiasSW/channelbanshennetsind1-4/+10
Channel banning characters with a space in their name
2013-06-25Fixing an issue with "@channel ban" not allowing you to ban a character with ↵Matias1-4/+10
a space after the first char of their name
2013-06-25- Added chrif interfaceSusu1-8/+8
2013-06-25Implemented notomb MapflagCairoLee1-1/+3
2013-06-23Official Item Group/Package/Chainshennetsind1-21/+21
http://hercules.ws/board/topic/1244-official-item-grouppackagechain/ Also Further implemented itemdb.c/storage.c interfaces, and a minor update to db2sql plugin. Signed-off-by: shennetsind <ind@henn.et>
2013-06-20Hercules Renewal Phase One: storage.cshennetsind1-16/+15
2 new interfaces: - storage - gstorage http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind <ind@henn.et>
2013-06-15Forgot to change something.Matheus Macabu1-2/+2
Also added mail interface for HPM. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2013-06-15- HPM: Added trade interface;Matheus Macabu1-1/+24
- Moved PARTY_RECRUIT definition to mmo.h to avoid segfault; - Check if item is already at maximum refine; - Fixed that @reloadscript with one npc bug (thanks to akinari). Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2013-06-13Hercules Renewal Phase : Renewalmalufett1-4/+4
Rename SC names to eagis standard. Implement SC Configuration.(see db/sc_config.txt) Skill updates and fixes. Some code optimization. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-06-09Fixed Bug #7253shennetsind1-4/+4
Special Thanks to Beret, malufett~! http://hercules.ws/board/tracker/issue-7253-deep-sleep/ Signed-off-by: shennetsind <ind@henn.et>
2013-06-09Fixed group cache bugshennetsind1-4/+5
Special Thanks to Xgear~! Signed-off-by: shennetsind <ind@henn.et>
2013-06-09Modified @makehomunshennetsind1-6/+12
Using -1 will now revive a dead homun (finally, it now makes sense >_>) Signed-off-by: shennetsind <ind@henn.et>
2013-06-08Follow up d73783f22b2bb881aab74524d153d89a5932a199shennetsind1-4/+4
Adjusting db.c interface name to adhere with the rest (pretty much we try to make it as short as we can, and being there were no conflicts we saw no reason to maintain the 'i') Signed-off-by: shennetsind <ind@henn.et>
2013-06-08Follow up d73783f22b2bb881aab74524d153d89a5932a199shennetsind1-14/+14
Adjusting party.c interface name to adhere with the rest (pretty much we try to make it as short as we can, and being there were no conflicts we saw no reason to maintain the 'i') Signed-off-by: shennetsind <ind@henn.et>
2013-06-08Follow up d73783f22b2bb881aab74524d153d89a5932a199shennetsind1-148/+148
Adjusting pc.c interface name to adhere with the rest (pretty much we try to make it as short as we can, and being there were no conflicts we saw no reason to maintain the 'i') Signed-off-by: shennetsind <ind@henn.et>
2013-06-07Hercules Renewal Phase One : pc, party, map, timerSusu1-269/+269
Added iPc, iParty, iMap, iTimer to HPM exported interfaces
2013-05-31Fixed Atcommand Loggingshennetsind1-0/+2
http://hercules.ws/board/topic/843-commands-arent-being-logged/ Signed-off-by: shennetsind <ind@henn.et>
2013-05-30Memory Slasher - May 30 Patchshennetsind1-1/+1
http://hercules.ws/board/topic/928-memory-slasher-may-30-patch/ Signed-off-by: shennetsind <ind@henn.et>
2013-05-17Merge pull request #26 from Earisu/masterFlipp1-4/+4
HPM Update
2013-05-17Fixed 2 clang warningsshennetsind1-1/+1
Special Thanks to mkbu95! Signed-off-by: shennetsind <ind@henn.et>
2013-05-17MOTD redesignshennetsind1-53/+1
much more flexible, as per community suggestion in http://hercules.ws/board/topic/320-motd-change-suggestion/ dropped motd_type config new motd is at npc/MOTD.txt dropped @motd, @gmotd commands Signed-off-by: shennetsind <ind@henn.et>
2013-05-17- Made DB and malloc lib HPM-friendlySusu1-4/+4
- Also fixed a bug preventing the plugins to be loeaded because HPMI and HPMI_s weren't HPExport
2013-05-15Hercules Renewal Phase One: guild.c startedshennetsind1-23/+23
http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind <ind@henn.et>
2013-05-15Fixed HPM @command implementationshennetsind1-4/+2
Signed-off-by: shennetsind <ind@henn.et>
2013-05-15HPM Updateshennetsind1-91/+91
Made SQL and strlib functions HPM-friendly, special thanks to Yommy for bringing the issue up. Added partial map.c support, for the all-handy map[] array, beware that soon the whole map.c renewal design will be commit and when that happens your usage of map.c functions in plugins might require some updates. Signed-off-by: shennetsind <ind@henn.et>
2013-05-10* Implemented suggestion in topic:528, related to GMs being able to warp to ↵Matheus Macabu1-1/+1
non-walkable cells; also added configuration. * Few changes to gitignore and gitattributes. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2013-05-10Fixed Bug #7236 @mountshennetsind1-5/+5
http://hercules.ws/board/tracker/issue-7236-mount/ Signed-off-by: shennetsind <ind@henn.et>
2013-05-09Fixed @go \n problem.shennetsind1-14/+10
Special Thanks to Yommy, Fatalis. http://hercules.ws/board/topic/570-problem-on-go-text/ Signed-off-by: shennetsind <ind@henn.et>
2013-05-09Fixed Bug #7230shennetsind1-11/+16
Special Thanks to Beret! http://hercules.ws/board/tracker/issue-7230-color-in-messages/ Signed-off-by: shennetsind <ind@henn.et>
2013-05-09Fixed Ally Chat / Bug #7228shennetsind1-5/+24
http://hercules.ws/board/tracker/issue-7228-ally-channel-problems/ Signed-off-by: shennetsind <ind@henn.et>
2013-05-09Fixed Bug #7222shennetsind1-0/+3
http://hercules.ws/board/tracker/issue-7222-reloadatcommand-bug/ Signed-off-by: shennetsind <ind@henn.et>
2013-05-07Fixed Bug #7223shennetsind1-28/+25
http://hercules.ws/board/tracker/issue-7223-homunculus-s-max-level-overshooting/ src/map/homunculus.c Hercules Renewal Phase One complete. http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind <ind@henn.et>