summaryrefslogtreecommitdiff
path: root/src/char/char.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-04Merged some commits from rAthena.Matheus Macabu1-4/+5
2013-02-01Added New Char-Server Rename Packetshennetsind1-0/+29
Special Thanks to Ancyker http://hercules.ws/board/tracker/issue-7040-missing-char-server-rename-packet/ Signed-off-by: shennetsind <ind@henn.et>
2013-01-26Changing ASCI Art / Moving stat server to Hercules.shennetsind1-1/+1
Changed the ASCI art (not quite final; just changing it prior to release), moving stat server to hercules end Signed-off-by: shennetsind <ind@henn.et>
2013-01-25Dropping _athena file suffixesshennetsind1-4/+4
Signed-off-by: shennetsind <ind@henn.et>
2013-01-08* Renaming variable name from nsiuid to unique_id for better understanding ↵markzd1-12/+12
of its meaning, as requested on tid:69380. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17086 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-07* Follow Up: r17080markzd1-1/+0
1. Removed an unnecessary update call. 2. Implemented interreg table at main.sql. * Follow Up: r17077, r17072, r17065 1. Fixed bugreport:7078, removed unnecessary checks. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17081 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-07* Implemented Unique identifier for Non stackable items. (tid:69380)markzd1-15/+24
* Set as off by default, it can be changed in /src/config/core.h. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17080 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-05- Re-committed r16985 (pid:161281).glighta1-73/+83
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17001 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-05 - Re-committed r16979/trunk/src/ (pid:161281).markzd1-3/+1
- Re-committed r16980/trunk/src/ (pid:161281). - Malufett enhancement applied (bugreport:16981) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-05- Undid r16968: SVN Replaced with source:/trunk/src/@16966 (tid:74924).brianluau1-4052/+4115
[16969:16991/trunk/src/] will be re-committed in the next 24 hours. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-29- Upon character deletion remove received mails and elemental.momacabu1-2/+12
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-29* Minor fix and description when removing debuffs by status_change_clear_buffs.markzd1-2/+0
Follow up: r16979 * Reverted r16930. (bugreport: 6939) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16980 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-25Applied AStyle code formating as discussed on tid:74602.greenboxal21-4115/+4044
Removed /SAFESEH option from MSVC11 projects. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-21Another minor improvement on char_per_account setting (follow up to r16937). ↵momacabu1-7/+4
Thankyou Lemongrass for your suggestion! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16939 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-20Minor improvement in char_per_account setting, which could be greater than ↵momacabu1-5/+9
MAX_CHARS. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16937 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-20Console clean up, dropped quite a few pointless messages and modified others ↵shennetsind1-27/+7
to only be displayed when relevant (e.g. you dont need to know you have only 1 subnetwork) Improved the debugging of scripts when an amount greater than supported of arguments is used. Follow up r16935 -- commit missed the script.c part of it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-20- Fixed bugreport:6915, where @follow would still be enabled when the ↵momacabu1-0/+3
target/source died; - Fixed a exploit on the creation char process, the hair color and style could be bypassed (bugreport:6916). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-10-31Fixed bugreport:6779 dropped between-server ping timers, replaced by a much ↵shennetsind1-26/+17
more reliable and performance-efficient on-demand flagging. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16854 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-10-29-Add some src basic documentation.glighta1-5/+5
-Change some remaining -1 for status ending timer. -Move some hardcoded msg in msg_athena -Small optimisation on battle_attr_fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16835 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-16Introducing rAthena's anonymous data collector. This aims at improving ↵shennetsind1-1/+30
rAthena's overall features by letting we know which options are most and least used. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16785 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-22Major cleanup all over the place, made possible by mkbu95's scan-build ↵shennetsind1-7/+4
report he provided us with. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16687 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-18Fixed bugreport:6496 character selection screen rename function fixed for ↵shennetsind1-1/+1
clients 20111025 and newer (right click the character with the add-ons sidebar and select the first option to rename) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16666 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-28Added support for the "favorite item tab" feature. super-mega-thanks to ↵shennetsind1-10/+145
Judas, credits to Fatal Error. Be aware this update requires a new column in the inventory db, run upgrade_svn16517.sql in your database. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-26Added the merges proposed in evilpuncker's list of suggestions: ↵shennetsind1-1/+1
http://rathena.org/board/topic/63001-my-rathena-suggestions/page__st__20#entry124218 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16500 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-24Fixed bugreport:5951 changesex bug regarding it not changing bard/dancer ↵shennetsind1-0/+3
classes after the change has been fixed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16336 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-24Fixed bugreport:5947 Genetic/Mechanics should be displayed properly in their ↵shennetsind1-2/+2
/alchemist /blacksmith ranks, special thanks to Xantara and Aleos. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-15Fixed bugreport:6035, chars will now start with all stats 1 and 48 status ↵shennetsind1-9/+21
points as for clients 2012 march and beyond. Did some cleanup at clif.c packet parsing and applied some curly brace love. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16308 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-08` Fixed bugreport:5717 if character's last map is invalid, move to a major cityxantara1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16241 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-05-30Fixed bugreport:5873 sex changed shouldn't now make exploits regarding item ↵rud0lp201-5/+0
bonuses. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16167 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-05-03Regularized file not found error messages.xazax-hun1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16073 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-22* Merged changes up to eAthena 15088.eathenabot1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15928 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-20Initial support for Genetic, Sorcerer and Elemental Summons. Special Thanks ↵shennetsind1-26/+28
to 3CeAM for the base. Notice this revision onwards requires you to update your char sql table and add the elemental sql table (check sql-files/upgrade_svn15885_log.sql) If you step by any bugs, let us know at http://rathena.org/board/tracker/ Thank you very much. ARRIBA ARRIBA. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15885 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-20=Generaltechnote241-1/+4
*Did some cleaning up and enabled all job lines in job_db 1 and 2. *Added some more jobs to the pre-re and re exp tables. *Enabled all typeable job changing names for the job change command. -Also did some more cleaning and organizing for the list that shows -when typing the command by itself. This will be the final time I -touch this until a new job is released. *Increased MAX_SKILL_TREE to 84 as the Expanded Super Novice/Baby jobs needs it. =Jobs *Added 7 new jobs. -Added jobs are Gangsi, Death Knight, Dark Collector, -Expanded Super Novice, Expanded Super Baby, Kagerou, and Oboro. -Note: Keep in mind that Gangsi, Death Knight, and Dark Collector -are official jobs that were never completed and arnt fully playable -like other jobs. Im just adding them in since their official and to -let the curious people out there mess with them. *Did some major skill tree updates. -Corrected the required level of SM_RECOVERY needed for LK_CONCENTRATION. -Fixed a few other trans skill requirements in the 3rd job skill trees. -Added complete skill trees for Sorcerer, Genetic, Baby 3rd's, -Expanded Super Novice/Baby, Kagerou, and Oboro. -Note: Even tho Sorcerer, Genetic, and Kagerou/Oboro skills arnt in -the server, the skills introduced in these jobs will still be read -by the server, but will not appear on players skill window until entrys -are added to the skill_db and skill_requirement_db. -No error's will be generated when read. So its perfectly safe to leave -them entirely enabled so skills will slowly appear 1 by 1 as their coded in. -Also added a pre-tree for Gangsi, Death Knight, and Dark Collector -jobs for now and added some extra tree lines. These will be worked with in the future. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15876 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-19=Generaltechnote241-2/+5
*Added some extra data here and there that will be used in the future. -Mostly stuff for adding more jobs. *Corrected how the server listed a few job names. Like Mage should be Magician. -As the job name is seen hard coded in the client. *Added support for all 3rd jobs in the pre-re exp table. -Base levels use a copy of the Trans exp table. Job levels use a copy of the -Trans 2nd job exp table. *Added baby 3rd's to the renewal exp table. *Did some cleaning and updating in the atcommand.c file for the jobchange command. -Added a few job changes by job name typing. -Spaced things out in the message strings to allow job names of up to 16 characters. -If a name is bigger then 16 characters, it will need to be reduced to fit the space. -No more then 4 jobs listed max per line -Also removed unneeded text lines as the ID's they point to are dummy ID's. -Finally, updated the list of dummy ID's to prevent changing to, as well as added a -message to display if someone attempts to job change to one of those dummy ID's. *Readded the spaces in the pc.c file as tabs in the middle causes unorganized viewing issues. -The space gap is now big enough to allow everything to line up. =Jobs *Added 3rd job babys. -Everything is working properly for them except the max stats and skill trees. -I will add this stuff in the next update. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15873 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-03Cleanup of conditions for old clients.protimus1-7/+0
- No one use versions as old, besides being advised to keep up to date. - Informations of packets will be maintained, the cleanup is just for conditions. Please do not remove old packet information, it is useful for future searches. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-21- Fixed characters being automatically deleted when confirmation was ↵epoque111-23/+2
required (bugreport:5479) - Follow up r15738, removed existing deletion bug fix code to include the new fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15740 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-20- Fixed character deletion not updating the client when char_del_delay was ↵epoque111-0/+16
set to 0 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15738 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-20- Fixed Clown/Gypsy/Minstrel/Wanderer not receiving skill points upon change-sexepoque111-12/+4
- Fixed missing casts from void* to struct online_char_data* in char.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15735 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-13Fixed char-server notifying map-servers only about first 30 maps (on other ↵gepard19841-2/+2
map-servers) (bugreport:5410). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15686 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-13Enhanced `DBMap` implementation to allow storing integer type data in ↵gepard19841-20/+38
addition to void pointers. - Added enum for data: `int`, `unsigned int` and `void*` - Replaced generic `void*` data with `DBData` struct to hold `int`, `unsigned int` or `void*` (member of `DBNode`) - Added `db_i2data`, `db_ui2data` and `db_ptr2data` functions to cast from `int`/`uint`/`void*` to `DBData` (used in `DBMap::put()`) - Added `db_data2i`, `db_data2ui` and `db_data2ptr` functions to get `int`/`uint`/`void*` from `DBData` - Enabled statistics for new functions in `db_stats` struct - `DBCreateData` functions (used in `DBMap::ensure()`) now return `DBData` instead of `void*` - `DBApply` functions (used in `DBMap::foreach()` and `DBMap::destroy()`) now take `DBData*` as a parameter instead of `void*` - `DBMatcher` functions (used in `DBMap::getall()`) now take `DBData` as a parameter instead of `void*` - `DBReleaser` functions now take `DBData` as parameter instead of `void*` - Default releasers release data if it is `void*` (`DB_DATA_PTR`) type - `DBIterator` functions: `first()`, `last()`, `next()` and `prev()` now return `DBData*` instead of `void*` - `DBIterator::remove()` now returns `int` (1 if node was found and removed, 0 otherwise) instead of `void*` and takes an extra `DBData*` parameter for the data of removed entry - `DBMap::get()` and `DBMap::ensure()` now return `DBData*` instead of `void*` - `DBMap::remove()` and `DBMap::put()` now return `int` (1 if node already existed, 0 otherwise) instead of `void*` and take an extra `DBData*` parameter for the data of removed entry - `DBMap::put()` now takes `DBData` as parameter instead of `void*` - `DBMap::getall()` now puts data into `DBData**` buffer instead of `void**` buffer - Updated macros: - (`i`/`ui`/`str`)`db_get` and (`i`/`ui`/`str`)`db_ensure` were wrapped with `db_data2ptr` to extract data from `DBData*` that is now returned by `DBMap::get()` - added (`i`/`ui`/`str`)`db_iget` and (`i`/`ui`/`str`)`db_uiget` that get `DBData` from `DBMap` and extract `int`/`unsigned int` from it (with `db_data2i`/`db_data2ui`) - `db_put`, `idb_put`, `uidb_put` and `strdb_put` data params were wrapped with `db_ptr2data` to match new signature of `DBMap::put()` (`DBData` instead of `void*`) - added (`i`/`ui`/`str`)`db_iput` and (`i`/`ui`/`str`)`db_uiput` that put `int`/`unsigned int` into `DBMap` (first wrapping it with `DBData`) - added `NULL` in place of extra parameter for removed data in `db_remove` macros - `dbi_first`, `dbi_last`, `dbi_next` and `dbi_prev` were wrapped with `db_data2ptr` to extract data from `DBData*` that is now returned by these `DBIterator` functions - Updated `DBMap` documentation, and fixed a dozen of typos in it. - Updated rest of rA code to reflect `DBMap` changes (mostly required signature changes of `DBCreateData` and `DBApply` functions). - Fixed a bug where `DBMap::put()` would return data of a deleted entry. - Removed some unnecessary pointer casts. - Increased `showmsg.c` static buffer size to fit entire DBMap stats report. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15682 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-03-11* Added packets for clients 2012-03-07+Protimus1-1/+24
Not is recommended use this version yet, there are small packets structures to do changes. * Added support for packet 0x970. New schema of character creation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15675 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-18Fixed char server's 0x2b05 not skipping it's full length.shennetsind1-3/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15607 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-16- Removed outdated version number handling (follow-up to r11503).gepard19841-1/+0
- Fixed mapcache compilation issues in Linux. - Added some missing `svn:ignore` properties. - Moved `BLOCK_SIZE` definition from header to source file. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15586 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-14Removed deprecated memory manager macros (follow-up to r14916).gepard19841-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-13 - Added `libconfig` (configuration file library: ↵gepard19841-12/+10
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-01-30- Removed more trailing tabs.brianluau1-2/+2
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-23` Added renaming support for the remaining 'ragnarok' tables in the ↵xantara1-4/+17
inter_athena.conf file - bugreport:3317 -- Includes: homunculus, skill_homunculus, mercenary, mercenary_owner, ragsrvinfo ` Fixed a typo regarding the homunculus_db git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15508 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-22Minor cleanups, mostly reducing scopes.xazax-hun1-2/+1
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-1819/+1658
* 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