79 Commits

Author SHA1 Message Date
skotlex
eafb17b8fe - Fixed the memory leak on opt_2str as pointed out by End of Exam
- Fixed a few char SQL memory leaks as pointed out by End of Exam


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5307 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 13:36:49 +00:00
skotlex
dcd7d940b0 - Updated the login/char sql servers to let the sql tables autogenerate the new id, and then retrieve said id using mysql_insert_id rather than playing smart and loading the next insert ID on startup.
- Tables affected are: account creation, char creation, party creation, pet creation and guild creation.
- Also corrected some functions to be of type (void) rather than ()


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 20:15:21 +00:00
skotlex
e0fb2a113f - Fixed the char servers to store correctly exp as uints. They are also capped to LONG_MAX before being sent to the client.
- TK_DODGE now dodges all ranged attacks, when used with SPURT, dodges everything.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5289 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-15 20:18:11 +00:00
skotlex
53b671c36f - Fixed Char-SQL server setting up the save/last point to the novice grounds when either x, y or the map is 0.
- Commented the char server setting up Prontera as default point when there's none (this bug should not exist)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 00:39:47 +00:00
skotlex
26cff5461b - Fixed sql compile.
- Some small adjustments on how the user/password in the char server are read.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-07 01:39:51 +00:00
skotlex
382bc65f07 - Fixed sql compile.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5205 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-06 18:47:28 +00:00
skotlex
d69479b946 - Added define clif_deadsit to send the dead state into player packets if the player is in trick dead state.
- Venom Splasher always hits (but splash damage targets can still avoid it)
- Using autoloot with no arguments now toggles it between @autoloot 0 and @autoloot 100%
- Falcon Assault now takes Blitz Beat lv5 as base damage.
- Fixed pc_makesavestatus not updating status.option correctly.
- Corrected Waterball so that higher levels can do insane amount of hits.
- Altered slave behaviour. No more random walking, will stay within 2 cells of their master.
- Reverted the Summon Slave behaviour to not adjust level based on number of current slaves.
- Coma no longer sends SP to 1.
- Updated Meteor so that when level 11 or more is casted, the area over which meteors fall is tripled.
- Dark elemental characters are now inmune to Curse.
- Fixed sc_data saving to sql buffer building method. Thanks to its_sparky.
- Changed the map zone reading from using pow to a bit shift.
- Experience has now been changed to unsigned int, and is read as such from the dbs.
- Increased HT_DETECTING seek range to 7x7
- Added function map_foreachinrange which actually checks distance of nearing objects (unlike for each in area which uses a square area), may come handy for future code.
- Corrected Venom Splasher: Being hit does not cancels it, works at 75% or less of target's HP, being hit normally while under the count has a chance of causing poison. Damage is +400% + 50*lv%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-06 18:38:51 +00:00
skotlex
d9f1d70901 - Map and char server now will complain if they are run using the default user/password set.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5158 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 20:56:48 +00:00
Valaris
2178a86317 AS OF SVN REV. 5901, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EVERYTHING ELSE
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5094 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:10:48 +00:00
Valaris
fd99753f8e Clearing trunk.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:00:45 +00:00
celest
3feabb0c74 * Simplified Valaris' online_timer
* Updated Fogwall, Spiderweb, and HP Conversion
* Adding saving character online/offline for TXT char and login (unfinished)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1411 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-05 14:57:03 +00:00
celest
27326acd4e * Removed anti-freeze system for login and char
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1396 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-04 14:15:49 +00:00
shinomori
9cfffd0ac8 fixing
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1390 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-03 17:08:16 +00:00
celest
52668d1fc1 * Fixed @reloadgmdb in SQL
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-30 17:47:54 +00:00
celest
8cdf7b2840 * Fixed SQL char server crashing when loading the item_db
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1336 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 18:03:36 +00:00
amber
dfd7258882 Fixe compile time problems with our mixed C++/C conformance
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 06:18:21 +00:00
celest
fe2688f05c * Fixed 'use_sql_db' not read properly in SQL char server
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 02:39:29 +00:00
veider
de7940888a git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1316 54d463be-8e91-2dee-dedb-b68131a5f0ec 2005-03-28 21:25:11 +00:00
celest
91fb421a67 * Fixed alot of memory leaks
* Added stray memory cleaning routine to db.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-23 15:26:52 +00:00
celest
d2dd679325 * Don't log SQL char actions if log_char is not enabled in char_athena.conf
* Updated shop_exp's calculation to give more exp
* Some item and mob DB updates
* Added Einbech/Einbroch warps

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-18 10:04:41 +00:00
celest
7840576d02 Fixed SQL compile error
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1247 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-18 04:04:17 +00:00
celest
f4b515d055 * Fixed more typos in /cities/payon.txt
* Added 2 char-server packets to support Freya's login server
* Rewrite on Full Strip

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1243 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-17 09:03:06 +00:00
celest
dd74e90fca Speedup inventory and storage saving
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1210 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-08 05:05:04 +00:00
sirius
8d9ac1026a Changed the output of set user @ charserv_sql ... ^^[Sirius]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1143 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-20 19:20:44 +00:00
celest
fdbe7b1fb2 Fixed client errors when pecopeco Lord Knights/Paladins log in with a weapon equipped
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1132 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-18 08:38:09 +00:00
celest
e9a7ccf3f2 * Readded Chemical Protection
* Removed some old eA code that was causing Frost Nova to do an extra hit
* Corrected Vulcan Arrow's hits in skill_db
* Readded zlib and zconf .h files to under /lib
* Fixed some compile errors in Windows
* Changed remove_control_characters back to supporting korean chars
* Moved some other code around

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1125 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-17 16:28:36 +00:00
celest
3a2e00b268 * Changes to Dissonance -- don't increment the timer again if the target has died
* Changed some nullpo checks back to normal null checks
* Changed some nullpo checks to print some debug information
* Added some sd checks before calling pc_blockskill
* Added fix for SQL char's friend list updating
* Fixed a crash if the player invited to join a guild is not online
* Find the guild invitation sender first before clearing it

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1124 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-17 08:31:32 +00:00
sirius
9e986f1b8a modyfyed the charserver sql for the mapchange ^^ on splitted mapservers
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1114 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-15 16:38:33 +00:00
sirius
f0586beb14 CharSQL: fixed the 0x2b05 packet, now the multi mapservers works ...
Login/LoginSQL: fixed the version check finaly :) now the servers can connect XD


git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1110 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-15 09:47:08 +00:00
(no author)
e4bf61cf00 * Moved all changes in the SVN to a new SVN-Changelog.txt
* Synchronise storage as well when saving character
* Added fix for super novices' Guardian Angel system crashing
* Check if login server is online before setting character to online (in SQL)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1076 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-11 15:58:58 +00:00
(no author)
a7b8d32eb5 Changed something @ the sql charserv, (makechar.. charlimit and some tuneups for sql querys)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1063 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-09 20:24:29 +00:00
(no author)
e492f69181 guild sql fix...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1060 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-06 22:41:04 +00:00
(no author)
417b04426f blank email for char deletion works when email is a@a.com (SQL)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1053 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-06 02:27:35 +00:00
(no author)
3108e8fef2 Changed how IP Bindings are handled
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1045 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-05 19:25:36 +00:00
(no author)
302cc85025 Servers can bind to single IP addresses now, and added buffer.(c/h)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1033 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-05 02:07:30 +00:00
(no author)
f107fd6254 fixed named item storage dupe
in sql

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1013 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-29 08:57:25 +00:00
amber
55c44e3eb1 Fix a crash in char_sql/char.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@983 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-24 21:27:50 +00:00
(no author)
dea15d7c9a A lot of changes. login and char server compile under both TXT and SQL under g++. Same for the convertors (login and char). One change that I felt iffy about, but it worked, was the char* buf -> unsinged char* bug in clif.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-24 03:12:42 +00:00
(no author)
974e977764 be fixed typo!!!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-24 00:19:30 +00:00
(no author)
d2a9c1a52d typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-24 00:18:10 +00:00
(no author)
29f74d1e4a Some more changes for g++
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-24 00:15:41 +00:00
(no author)
778e804dd6 update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-23 20:38:44 +00:00
celest
a0d8292adc Added alive packet sending to SQL char and login
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-08 03:00:13 +00:00
codemaster
ef1ef6f616 * Added a char config that allows GMs that have a certain level or above to bypass the server's user limit [Codemaster] [SVN 885]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@885 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-01-01 00:35:25 +00:00
amber
0452a9c55f cxx updates
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@861 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-29 19:18:18 +00:00
amber
1faa51bd42 update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@849 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-28 23:07:49 +00:00
amber
ddb5cb86ec Mark the statements TBR
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-28 02:51:31 +00:00
amber
d8dd831efb update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@821 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-27 16:29:44 +00:00
amber
973fe525a7 update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@804 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-27 02:46:25 +00:00
amber
f922478b19 updates
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@793 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-26 19:44:00 +00:00