summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-09Code cleanup: replaced `DBIterator` function calls with macros where possible. gepard19841-5/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-03* fixed job change level not being recorded for 2nd -> 3rd class ↵lordttseven1-2/+4
(bugreport:5383). the fix should be self-regenerating on existing 3rd job characters git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15653 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-01Enabled `DB_OPT_RELEASE_DATA` for atcommands `DBMap`s so they are able to ↵gepard19841-16/+4
free data automatically (as pointed out by Wildcard). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-27* Merged changes up to eAthena 15075.eathenabot1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15631 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-19Fixed `/lb` and `/nlb` commands displaying additional nickname (bugreport:5351).gepard19841-5/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15615 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-17Added Wildcard's fix for @hide gms on @pvp'd pvp mapsshennetsind1-15/+11
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15596 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-17Fixed missing parenthesis in @who code, removed unused variable in is_atcommandshennetsind1-2/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15590 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-14Updated `@marry` and `@divorce` to use standard charcommand invocation ↵gepard19841-46/+24
(`#command target`) if used remotely. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15579 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-14Merged `@kill` and `@die`, since `@kill` was just a remote version of `@die`.gepard19841-39/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-14Merged code of `@whomap` commands into `@who`.gepard19841-232/+63
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15577 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-14Merged code of `@who`, `@who2` and `@who3` commands. gepard19841-200/+62
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15576 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-13 - Added `libconfig` (configuration file library: ↵gepard19841-920/+667
http://www.hyperrealm.com/libconfig/): - Updated VS9/10 project files. - Updated `configure` & `Makefile`s. - New GM, Commands & Permissions system: - '''This is a backwards compatibility breaking update''', please read tid:58877 - Replaced GM levels with Player Groups. - Commands permissions & other privileges now depend on group, not GM level. - `@help` command improvements: requires "commandname" param and shows more detailed info about commands. - Modified GM whisper system to deliver messages basing on permissions, not GM level. - Remote trade request is now possible only if player is allowed to use `@trade` command as well. - Added a proper permission to use `/changemaptype` command. - `clif_displaymessage` is now capable of displaying multiline messages. - All `ACMD_FUNC`s are static now, and the only way to invoke them is with `is_atcommand()`; all client commands (starting with `/`) are now translated into corresponding atcommands (with exception of `/kick` used on monster, as there is no atcommand to kill single monster). - Removed nonsense "bot check" triggering when player blocked (`/ex`) Server. - Merged `@monster`, `@monsterbig` and `@monstersmall`. - Improved flow of atcommand execution to avoid revealing info about online players or existing commands to non-privileged players. - Merged `atcommand` and `charcommand` script functions (`charcommand` is aliased to `atcommand`). - Fixed `atcommand` script function reading unknown memory area (possible access violation). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-09Follow up r15557, modified it so that @ban only checks for @unban if the ↵shennetsind1-6/+19
overall time is negative (before 1d-1h for example would fail). Credit goes to Gepard! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15558 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-09@ban is no longer able to reduce the length of a ban unless you can also ↵shennetsind1-1/+6
@unban, special thanks to brian for the suggestion! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-09Added minor autolootitem code improvement. saves from scenarios like:shennetsind1-0/+6
Kill a monsters on a aoe, with 10 drops looking up a empty autolootitem array -- 100 times ? -- (10 per loot with AUTOLOOITEM_SIZE as 10). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15556 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-31 * Added display name to warps created with `@addwarp`, so their name is ↵gepard19841-2/+6
visible in `@mapinfo 2` (bugreport:1491). * `@mapinfo 2` now also displays unique NPC name if it's different than display name. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15534 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-31 * Fixes and improvements related to MVP rewards (bugreport:1259):gepard19841-2/+2
- removed obsolete (since r1!) ExpPer column from mob_db - official way to drop MVP rewards (always starts from first slot) - added MAX_MVP_DROP as define for max possible MVP reward slots * Updated mob_db SQL scripts. * Removed some renewal only monsters from pre-RE mob_db (were commented out anyway). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-30- Removed more trailing tabs.brianluau1-5/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-30- Removed trailing tabs, and fixed some spacing.brianluau1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-22Minor cleanups, mostly reducing scopes.xazax-hun1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15504 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-20Merged TXT removal branch back to trunk.gepard19841-9/+1
* TXT save engine is removed and no longer supported. * See also tid:53926, tid:57717. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15503 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-18Extended @alootid command to support multiple items (default: 10).gepard19841-21/+76
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15489 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-17Enabled Mersenne Twister MT19937 as random number generator instead of ↵gepard19841-8/+9
standard `rand()` function (follow-up to r14865, r14870). - It fixes issues caused by RAND_MAX being only 32k in Windows system (bugreport:1927, bugreport:86). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-17* Merged changes up to eAthena 15061.eathenabot1-17/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15477 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-17* Merged changes ONLY eAthena 15002.eathenabot1-0/+1
[ai4rei] * Preparation clean up in clif.h - Synced function declarations and argument names with clif.c including whitespace. - Removed orphaned function declarations. - Removed include to storage.h and put it into .c files that need it instead. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-14fixed bug with @homevolution not refreshing homun's skill tree (4th skill ↵shennetsind1-1/+1
missing), bugreport:49 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-12fixed bug with aliases of the @commands command from working properly; ↵shennetsind1-7/+24
bugfix by xantara. bugreport:5225 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15434 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-12Fixed bug with @commands/@charcommands not displaying aliases shennetsind1-5/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15433 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-11fix to bug on import of atcommand_athena, bugreport:5207shennetsind1-3/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15431 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-11Picklog improvements:gepard19841-26/+6
- now it is finally possible to log every item players gain or lose - added 3 log types: `I` for auctioned items, `B` for buying shop transactions and `X` for all other items transactions that don't fall into another category (for detailed explanation on all log types read `conf/log_athena.conf`) - it also fixes items being logged as picked up/gained by player when in fact they were dropped on the ground due to full inventory git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-10Xantara's fix for bugreport:5201, bugreport:5222 and bugreport:5227 ↵shennetsind1-7/+9
(@command related stuff) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15418 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04*Added 2 new accessory skills.Chilly01231-4/+27
*Reverted some mob changes from 15387. *Updated @go list and locations. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15388 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04Fixed atcommand aliases memory leak, bugreport:5200shennetsind1-3/+18
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15383 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-04fixed @hide from not refreshing users who did not know about the @hide, ↵shennetsind1-0/+2
bugreport:2266 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15376 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-03Fixed atcommand system not being case insensitive since r15346, thanks to keikunshennetsind1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-03Follow up r15343, added trimming to each individual aliases, allows the ↵shennetsind1-1/+1
following: BEFORE: aliases had to be [wat,wut] with no spacing NOW: spacing is trimmed, you can for example [ wat , wut ] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15357 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-01Added new @/# command aliases pattern, all aliases can now be ↵shennetsind1-370/+375
modified/added/removed in the front-end within atcommand_conf (no longer hardcoded). The aliases pattern was defined in this topic: tid:56343 atcommand_conf file rewrite/update belongs to Jguy and BrianL git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-31Fixed "#cmd" nick exploit, bugreport:5188shennetsind1-4/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-26minor @spiritball bugfix, bugreprot:2751shennetsind1-2/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-24* Merged changes up to eAthena 15040 (follow up to r15245, fixed some errors).brianluau1-13/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15248 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-24* Merged changes up to eAthena 15040.eathenabot1-14/+14
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-23- Replaced tabs with spaces in @go, follow up to r15070. (bugreport:5156)brianluau1-4/+10
- BuildBot: enabled the Ubuntu_x64 builder, follow up to r15217. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15226 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-19* Merged changes up to eAthena 15036.eathenabot1-2/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15167 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-17- Replaced log_config.enable_logs constants with LOG_ enums that existed ↵brianluau1-6/+6
since r9599. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15150 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-14- Updated msg_athena.conf to include castle counts up to 34. (bugreport:1522)brianluau1-18/+18
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15107 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-13- Fixed hidden GMs being processed in the PVP ranking timerepoque111-0/+21
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-12Corrected an event mob being summoned in Endless tower (bugreport:4942)jmanfffreak1-1/+5
Added @go locations for new maps (not official, but they're there) (bugreport:4457) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15070 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-10Added client feedback to @cash and @pointscalciumkid1-4/+15
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15056 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-09New Battle Config: gm.conf/atcommand_max_stat_bypass for bugreport:3301shennetsind1-11/+14
-- Allows you to choose whether your gms can bypass your server's max stat limit or not. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15046 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-09@command log bug fix, bugreport:4010shennetsind1-8/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15036 54d463be-8e91-2dee-dedb-b68131a5f0ec