2000 Commits

Author SHA1 Message Date
ultramage
2abcfff451 - Fixed the compilation problem from r10668
- Cleaned up the duel code a bit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10692 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-04 17:38:20 +00:00
ultramage
e1397576e6 - Fixed missing client update when 'return to savepoint' fails
- Fixed a bad copy-paste from r10028 letting players escape jail (char was dead on login, so statuses (SC_JAILED) couln't be applied)
- Added clif_standing() to clif_sitting(), and used them in clif.c
- Cleaned up clif.c a bit - clif_clearchar->clif_clearunit_area, clif_clearchar_id->clif_clearunit_single

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-03 14:43:34 +00:00
FlavioJS
f68f40f94d * Displaying op names instead of numbers in script engine errors.
* Fixed a bug introduced in the last rework of the fame ranking.
* Created safestrncpy that ensures the string is nul-terminated.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10667 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-02 20:19:40 +00:00
Playtester
bafe1dba21 Updated sql files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-01 18:37:07 +00:00
ultramage
1bf049d7d2 Some typo fixing / cleaning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10658 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-01 10:57:31 +00:00
ultramage
c45404429f Fixed ircbot not processing new users
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-01 10:33:42 +00:00
ultramage
c56d51dbcb Hopefully fixed the vsnprintf incompatibility
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10645 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-29 09:00:02 +00:00
ultramage
e142319d63 - Fixed an infinite char-server loop on the map connection
- Cleaned up the charserver a bit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10641 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-28 19:39:24 +00:00
FlavioJS
f3bb9a322d * RFIFOREST returns 0 when the session is eof (input data is implicitly discarted).
* Reworked the player fame update:
- would crash if an invalid pos was received
- the wrong player could be updated on certain conditions

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-28 18:25:32 +00:00
ultramage
ae259970a8 - Fixed guild emblem not showing when you log in (caused by r5359)
- Fixed server not sending party/guild info when you enter a map
- Fixed server not removing member minimap dot when you leave a guild

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10624 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-26 13:01:10 +00:00
ultramage
0b618b9425 - Fixed @statall giving you +99 stats instead of setting them to 99
- Fixed npctalk and @npctalk displaying the # part of the name

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-25 20:54:47 +00:00
ultramage
301d493855 - Added new flag to skill_castnodex.txt, to allow per-skill tweaking of cast time and delay reducibility by item scripts (cards and such)
- Fixed Martyr's Reckoning never triggering for gms with all skills
- Added MO_TRIPLEATTACK and RG_SNATCHER to @skillall's skill filter 
- Made gm_skill_unconditional bypass skill blocking (guild timer, etc)
- Reverted the weird delay_dependon_agi thing (r8923, r9055, r9059)
- Changed a few memsets to strncpy (reading past buffer is a bad idea)
- Sped up some memset operations (multiples of 4 are faster)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-23 21:23:36 +00:00
ultramage
781eabf654 Fixed a typo in Chase Walk code (caused by r10593)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10609 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-23 06:41:34 +00:00
Playtester
185481f9f6 Updated sql files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10606 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-22 14:20:28 +00:00
ultramage
9e7eb8804f - Removed the TURBO socket mechanism - it was in fact just using a variable to cache a few arithmetic operations (premature optimization)
- Since the fifohead mess is gone, fixed leftover bad code structuring

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-21 18:40:29 +00:00
ultramage
c0ccc85648 - Fixed Chase Walk having a deactivation cast time (should be instant)
- Changed status calc to allow value 0 stats; aegis allows negative values, but eA is unsigned in this regard, so ...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10589 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-20 10:23:49 +00:00
ultramage
e0c63e1baa * Added positional music effect to Battle Chant / Gospel, see r10588 on how to disable it if it annoys you ^^;
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10588 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-20 10:16:50 +00:00
ultramage
16671ef54f * Added Global chat and Main chat logging
- lowered the priority of the 'logging off during gw' filter

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10580 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 13:26:02 +00:00
ultramage
90aab65815 Fixed server crashes when you use long hostnames (/thx to Ancyker)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10579 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 11:26:15 +00:00
ultramage
6e24df08ec Removed the wtf-y mmo_char_fromsql_short() from r2527
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 11:19:35 +00:00
SinSloth
7f756c7581 * Refixed drops of Thanatos Dolor & Thanatos Odium regarding the quest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10576 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 09:53:29 +00:00
ultramage
8f506eeda5 * SQL files fixup
- extended convert_engine_myisam and added innodb version
- changed the max. email length to 39 (to match value in source code)
- added comment for storage/guild storage picklog entries
- changed SETs to ENUMs, which is the proper data type in logs
- fixed incorrect defaults, shortened mapname lengths to 11
- use upgrade_svn10575_*.sql to apply changes

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10575 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 09:46:11 +00:00
ultramage
10ae1963d8 Removed the vsnprintf->_vsnprintf define for VS9. Ea compiles even without it (vs6, vs7, vs8).
In VS9 this and similar functions were replaced by templates that instantiate using the output array's length.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10574 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 08:05:02 +00:00
ultramage
bac04aa3aa Corrected the problem with countitem2 (value wrapped-around in one case but not in the other, making comparisons fail)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10573 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 07:46:57 +00:00
SinSloth
cf6549f223 * Reverted drops change regarding Thanatos quest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10566 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-18 15:16:11 +00:00
SinSloth
6a76436663 * Updated Thanatos Tower quest to official.
- Moved some NPC in proper quest file and updated warps.
- Removed old Thanatos custom warps.
* Fixed drops of Thanatos Dolor & Thanatos Odium regarding the quest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-18 14:38:55 +00:00
toms
488f1a6f64 Updated sql files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10536 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-13 08:59:51 +00:00
ultramage
41d87e49c5 - Updated the effect list a bit
- Fixed some npc typos

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-11 17:20:20 +00:00
ultramage
cc636df44f Re-phrased the attacker flee/def penalty config descs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10530 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-11 17:09:09 +00:00
Playtester
26089a5122 Attempt to fix unwanted teleporting of immobile mobs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10525 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-10 17:52:46 +00:00
FlavioJS
82b3153800 * Adapted the shortlist to use a static array instead of a linked list and enabled it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10507 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-09 04:24:33 +00:00
FlavioJS
71f29c0445 * Added Buuyo-Tama's shortlist for send/eof sockets (defined out for now).
* Replaced toupper/tolower in ladmin by TOUPPER/TOLOWER defines.

Shortlist:
It's a list of sockets that have data to send and/or are ready for eof processing.
It aims to reduce the amount of time spent on do_sendrecv, where it was spending ~13.5% of execution time on a server with 1k users at WoE.
thanks to Buuyo-tama for the profile info and code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10506 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-09 03:18:16 +00:00
FlavioJS
e54e285849 * Fixed warpwaitingpc not working (bug introduced in r10471).
there was a "sd != NULL" where it should be "sd == NULL"

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-07 05:18:39 +00:00
ultramage
1b6605d798 Added a check to login_sql against too long db-stored emails.
By the way, the length should most likely be 40+1, not 39+1 (underdimensioned)...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10492 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-06 13:44:35 +00:00
toms
ede6014fb9 Removed an unused variable in script.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-06 09:21:13 +00:00
Playtester
4cf50757dd * Fixed Converters not overwriting each other
- thanks to scerez for the fix

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-06 09:11:48 +00:00
FlavioJS
bc088a5ad8 * Removed the dependency on winsock.h for definitions, it's all winsock2.h now.
* Minor documentation/re-coding in chat.c.
* More work on ticket #41.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-05 14:50:07 +00:00
Playtester
1b6409f462 Fixed Red Pouch overriding nobranch mapflag
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10464 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-05 12:01:55 +00:00
Playtester
ea4b252218 * Attempt to fix Kyrie Eleison not castable on enemy players
- please test, I can't double client to test it in pvp
- don't forget to recompile before testing

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-05 09:11:52 +00:00
blackhole89
66fa77c5f6 adding read-from-GRF/GAT back in. Read Changelog-Trunk.txt for more details.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-04 17:31:41 +00:00
ultramage
51c14f38cd Removed the map.h<->status.h cyclic dependency. Relies on the fact by that preprocessor definitions don't need to be expanded immediately (or some other obscure reason why the thing even compiles :D)
This allowed me to also remove the annoying/memory-wasting MAX_STATUSCHANGE define.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10442 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-03 12:20:28 +00:00
ultramage
f94d4fc532 * Ladmin fixes
- Added vs8 project file for ladmin
- Replaced all occurences of printf in ladmin.c with ShowMessage
- Fixed ladmin working with ips using the wrong byte orer
* Fixed @jumpto displaying the incorrect player name
* Added more safeguards to socket.c against socket ids out of range

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10409 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-29 14:34:02 +00:00
ultramage
ebf0f16a7e Fixed login_sql ipbans not working (due to signed/unsigned mismatch)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10390 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-28 17:09:10 +00:00
ultramage
833fd942a4 * Tried and fixed md5 password encryption
- login_sql was doing stupid things like re-using one pre-generated key for all connections, and escaping binary md5 data (destroying it)
- added missing code to login_txt when creating new accounts, showing that storing passwords as md5 hashes never really worked for txt
- removed PASSWORDENC's conditional compilation effect, now just a flag
- greatly simplified md5 password checking code, credits to eapp
* login server will now bind only after finishing the init phase

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-28 14:34:58 +00:00
FlavioJS
c292b087b5 * Internal changes to the script engine:
- modulus division detects division by 0.
  dividing by zero stops the script and gives an error
- underflow/overflow messages differentiated (warnings)
- when a script function doesn't return a value, a C_NOP value is pushed 
  instead (avoids stack corruption)
- op_add merged with op_2+op_2num/op2_str
- better type checking in the operators, int/string is never assumed.
  The script ends when an invalid type is found.
- other minor code cleanups

Changes made in consequence of:
Ref: http://www.eathena.ws/board/index.php?s=&showtopic=149237&view=findpost&p=823195

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10379 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-28 09:57:29 +00:00
skotlex
e345f25bd3 - Corrected High Jump so it works on Guild Castles when WoE is off.
- Moonlit petals now always knocks to the back of the character rather than pushing the character away from it's center.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-25 19:07:48 +00:00
skotlex
2b9eddf37d - Modified the mob ai think time update after using skills from adelay/amotion to 100ms since the previous method adds a large delay before the AI activates again (which screws up with the timing of idle/walk skills)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10348 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 20:59:07 +00:00
skotlex
9c8f2cbb52 - NPC_MAGICALATTACK now starts a state similar to Sacrificial Ritual, in the sense that every normal attack afterwards becomes a Magical Attack. The skill duration is 15 secs.
- Corrected some trade-cancel calls in trade_traderequest.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10346 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 19:33:37 +00:00
Playtester
605f912e22 Added missing Rachel quest map
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 19:05:55 +00:00
skotlex
e587ff356b - The autoloot range check is no longer done unless AUTOLOOT_DISTANCE is defined (by default it is no longer defined)
- Ganbantein now deletes individual skill cells instead of the whole skill in the area it is casted.
- Modified the mob total damage code to prevent overflows when mobs receive over 2kM damage.
- Made the dmg structure of the damage log an unsigned int rather than signed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 18:41:39 +00:00