summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
AgeCommit message (Collapse)AuthorFilesLines
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
2011-12-08Fixed @reloadskilldb, bugreport:4412 and in the flow of that mercenary db is ↵shennetsind1-0/+2
now reloaded in @reloadmobdb (like homunculus db already does) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15027 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-05Merging RREmu into rAthena -- quite a few stuff yet to be renamed, but we'll ↵shennetsind1-73/+257
get it sorted. Some of the stuff included in RREmu that is now part of rAthena: - RE Drop Rate Modifier - RE Experience Rate Modifier - RE Weapon MATK - RE Shield ASPD job-specific penalty - RE Cast Time - Renewal-specific item DEF - 3.1 classes. - All-New Mounts - Official Magical Reflection - And other perks, such as fully-functional @mapflag also merged eAthena 15006 into rAthena. For Bugs, Comments and Suggestions: http://rathena.org/board/tracker/ git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15009 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-20* Applied map flag update patch provided by Daegaladh. Will mess with custom ↵L0ne_W0lf1-0/+2
restricted items. - Adds a reset mapflag which is checked when using the Neuralizer. - Syncronizes the item_noequip_db bitmasks with with skill_nocast_db. - Updates mapflags, and both skills and items which are restricted. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-10- Commiting a bunch of cleanups piled up from the past few weeks/months/years.Skotlex1-7/+9
- Updated unitwarp so that an id of "0" causes the script's rid to be warped. - Updated the Brasilis ontouchNPC warp command to use unitwarp instead. - Signum Crucis's duration is now specified in the skill_cast_db file - Updated @warp/@jump commands so that when an invalid tile is specified, a nearby cell is chosen (rather than using a map-wide random value) - The if(req.weapon) code was broken, since req.weapon is never "0" for a skill. Updated the code so that the requirement of '99' (any weapon) is stored as 0, in order to make the checks effective. - Cleaned up the code for script command warpparty - Fixed the define itemdb_canrefine() - Cleaned up some the status_damage() function - Fixed map_random_dir(), which at times would pick cells that didn't preserve the required distance. - Some aesthetic code cleanups. - Fixed some possible crashes for skills where the code assumes the caster is a player. - Fixed a bunch of idiotic code-snippets that should have embarrassed whoever was responsible for them. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-30Replaced custom type 'intptr' with standard 'intptr_t'.ultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14873 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-26* Fixed @mobinfo displaying mvp rewards with 'AegisName' although normal ↵ai4rei1-2/+2
drops use 'Name' item db column (bugreport:4981, follow up to r6346). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14868 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16* Merges from charmerge:flaviojs1-15/+1
- Added DBMap::exists. (r14090) - Added sv_parse_next, a stepped version of sv_parse (delim-separated parser). (r14100 r14104) - Added missing fd check to do_close. (r14145) - Normalized, refactored and restructured some code (in preparation for shutdown/reconnect code). (r14145 r14150) - Changed the char select request code to allow the char-server to reject it. (player in map-server trying to go to char select) (r14150) - Added shutdown support to the servers. (incomplete) (r14152) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14851 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15* Extracted calculations of the number of status points PC gets when ↵Gepard1-3/+3
leveling up to a function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14825 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14* Random accumulated bits and pieces.ai4rei1-5/+3
- Added checks/warnings to pc_paycash and pc_getcash (follow up to r12264). - Added missing packet_db.txt and packet length table entries for packet 0x0859 (follow up to r14799). - Added set of map_id2xx wrappers for map_id2bl for most common map objects, which return NULL when the bl-type is not the expected one (also updated map_id2nd to behave this way). - Fixed missing ',' in mob_skill_db.txt example (follow up to r14270). - Updated mapcache with recent maps (up to que_lhz). - Functions 'msg_txt' and 'job_name' now return a const pointer. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28* Fixed @makehomun not checking for existing homunculus properly and thus ↵ai4rei1-1/+1
allowing to create a homunculus when one is already present but inactive (bugreport:4879, since r10272). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14806 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-16* Some cleanups related to player and monster states.ai4rei1-4/+4
- Moved user_font and bg_id out of states as they are data, not states. - Reordered members of state structs so that bitfields are packed together (less memory gets wasted). - Other insignificant code tweaks. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14795 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-09* Moved duel code into a separate file.ai4rei1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14785 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-27* Added separate character state for vending (like for buyingstore), instead ↵ai4rei1-3/+3
of vender_id != 0 (follow up to r14682, related r14713). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-20* Random accumulated tweaks and fixes.ai4rei1-24/+25
- Added a error message to npc_enable, to spot disablenpc/enablenpc/hideoffnpc/hideonnpc on non-existing NPCs (related r14750). - Replaced inlined npc_name2id code with calls to npc_name2id. - Open Buying Store skill is now exempted from noskill mapflag like Vending as well (bugreport:4815, follow up to r14713). - Fixed signed constant being returned as unsigned value in get_percentage (bugreport:4765, since r12679). - Replaced strlen checks, which checked whether or not a string is empty, with first-byte checks. - Fixed enabling 'fakename' not clearing party and guild name and cleaned up atcommand 'fakename' code. - Cleaned up party/guild name code in clif_charnameack (follow up to r14737). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-08* Fixed @item2 and script command 'getitem2' not taking MAX_REFINE define ↵ai4rei1-2/+2
into consideration (bugreport:4804). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14739 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-08* Fixed @str/@agi/@vit/@int/@dex/@luk commands setting a stat to 0 (rather ↵ai4rei1-1/+1
than 1), when exact amount is subtracted (bugreport:4803, since r14493). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14738 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-23* Updates to various custom stuff that buying stores might/are expected to ↵ai4rei1-2/+2
support (follow up to r14713). - Buying store no longer works on novending maps/cells (bugreport:4778). - MANNER_NOROOM mute flag now affects buying stores as well (like vending). - Enabled @autotrade for buying stores. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-19* Implemented buying store system (aka. reverse vending, purchase shop) ↵ai4rei1-2/+2
together with related skill and items, without NPCs. - For SQL apply upgrade_svn14713_log.sql to upgrade tables `picklog` and `zenylog`; for TXT no action is necessary. - Requires 2010-04-20aRagexeRE or later and can be disabled in 'conf/battle/feature.conf'. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14713 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-08* Updates to various client packets.ai4rei1-4/+4
- Renamed clif_set0199 and clif_send0199 to clif_map_property and clif_map_property_mapall respectively and added an enumeration for currently known map properties. - Renamed clif_set01D6 to clif_map_type and added an enumeration for currently known map types. - Resolved undocumented field of packet 0x22e (ZC_PROPERTY_HOMUN) to attack range. - Fixed aspd field of packet 0xbd (ZC_STATUS) getting filled with karma value. - Removed commented clif_skillinfo (duplicate of clif_item_skill). - Other minor comment updates and 'FIXME' assignments. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14698 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-29* Removed @aw/@away which duplicates and collides with client's /am (away ↵ai4rei1-26/+0
message) (bugreport:1235, topic:163083, since r4351). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14686 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-28* Fixed @accept not checking, whether or not a duel is already full ↵ai4rei1-0/+7
(bugreport:2740, since r4111). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14684 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-23* Some cleaning here and there.ai4rei1-1/+1
- Fixed a typo in basejob_baseclass_upper sample script (since r3893). - Fixed (for sake of consistency) usage of 'sd' before corresponding nullpo check in party_invite (bugreport:2752). - Fixed atcommand config reading would not cap level for charcommands, when using atcommand level as fallback (bugreport:2961, since r13409). - Removed orphaned clif_mob_hp declaration from clif.h (bugreport:2788, since r2092). - Removed unnecessary look-up in itemdb_available macro, as dummy_item is considered unavailable. - Removed leftover shortlist linked-list struct (followup to r10507). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-14* Removed unconditional redundant status change checks before ↵ai4rei1-1/+1
status_change_end calls (follow up to r12890). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14671 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-14* Replaced remaining occurences of '-1' with 'INVALID_TIMER', where ↵ai4rei1-5/+5
appropriate (follow up to r12998). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14670 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-08* Fixed @homlevel usage message stating, that deleveling is possible, ↵ai4rei1-5/+4
although it is not (bugreport:1485, since r10272). - The command now fails, if it is given a zero or negative value. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14656 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-07* Fixed @alootid using 'autolootitem' (internal name) in it's usage message ↵ai4rei1-4/+4
(bugreport:1445, since r12203). - Reworded the turn off message of @alootid. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14654 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-30* Fixed improper use of itemdb_search. It does not return NULL but a dummy ↵ai4rei1-4/+4
item, if the item id is invalid. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Fixed items, that get dropped at 100% chance, being reported in @iteminfo ↵ai4rei1-3/+3
as 'available in the shops only' (since/replaces r3482). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Updated commands @delitem/#delitem.ai4rei1-39/+49
- No longer deletes stackable items one by one (bugreport:1914). - Fixed pets not getting deleted when a pet egg was deleted. - Fixed outdated usage message (since r13403). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14626 54d463be-8e91-2dee-dedb-b68131a5f0ec