3072 Commits

Author SHA1 Message Date
ultramage
4228b025e7 - Fixed one missed malloc->aMallocA typo, causing memory deallocation problems
- Some small trunk-stable formatting synchronization

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-20 20:40:34 +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
711d01a128 Reformatting @_@
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 15:50:41 +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
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
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
ultramage
7ba367d0c6 Replaced a few missed set_eof()-s
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-10 09:08:10 +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
ultramage
3206b83c1c Missed a few occurences of strdup (followup to r10468)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-05 14:01:06 +00:00
ultramage
cce7ebedf4 - imported the latest working grfio code from stable
- re-added usage of managed allocation routines in grfio
- eol-styled some new files
- some cosmetic fixes here and there

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10468 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-05 13:57: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
Playtester
a368fc27b6 * Added up-to-date monster summoning files thanks to Vicious_Pucca
- also fixed a bug in the code, please test the files before commiting them
- thanks to Spre for the info on needed code changes

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-04 12:11:42 +00:00
DZeroX
d29bdbff09 - Updated mob_poring.txt, by Spre.
- Minor source edits, to accommodate the new DB file, mob_pouch.txt, for the Red Pouch of Surprise, by Spre.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-04 04:32:34 +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
a6e61e1d2f Gave each file an empty last line, to make svn happier
Added svn:eol-style native where missing
Removed remaining .gats

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10401 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-29 08:17:53 +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
2b251df80a 'minor' details
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10389 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-28 16:25:04 +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
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
ultramage
7d14deb7a5 Spider Web / Fiber Lock status cannot be dispelled now
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-24 09:58:31 +00:00
skotlex
51a49aadf7 - All mob casted skills have a fixed range of 9 now. You can use monster_ai&0x400 to disable this and make the old skill range rules apply.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10331 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-23 22:41:18 +00:00
skotlex
b6e3783be6 - Updated the skill_db, some mob skills seem to be better to a range of -9 than 9.
- Corrected the pet_db information for Xmas Goblin and Rice Cake.
- Replaced all struct map_session_data to TBL_PC in script.c
- Pressure no longer vaporizes plants.
- Corrected pc_setregstr to handle a null str argument.
- Corrected @reloadbattleconf causing a add_timer_func "already existing function" error.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10326 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-23 19:08:34 +00:00
ultramage
150f7d0b56 - Fixed a compilation problem with the pid plugin
- Some minor cleanups 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10322 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-23 01:37:16 +00:00
skotlex
f4dfd0d8ee - Removed the include of features.h from the console.c plugin. It is apparently not needed (and it was preventing compilation on FreeBSD)
- Fixed bug which totally broke item group bonuses.
- Added warnings when setting a pvp/gvg flag removes the other flags on the same map (gvg and pvp can't coexist on the same map)
- Optimized the unequip loop when changing sex.
- Removed the check that prevented you from casting soul-collect when you already have 5 spirits.
- Corrected Magic Rod so it doesn't displays any skill-use animation until it triggers.
- Debuff on logout&2 is again set to default, instead of removing food bonuses now it removes Maximize Power, Maximum Overthrust and Steel Body.
- Corrected Steel Body's icon (it actually belongs to AutoBerserk)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-22 19:14:42 +00:00
FlavioJS
f4907979c1 * Extended the functionality of StringBuf - length and appending a string.
* menu/select/prompt script functions support grouped and empty options.
  The selected option number is consistent with them.
* More work on ticket #41.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-22 15:45:37 +00:00
skotlex
36a86d07e4 - Corrected crash if itemskill is used without an attached player.
- Removed range checks for autospells as per UltraMage Aegis tests.
- Added chatID skill fail check to skill_check_condition
- Corrected @refresh not re-displaying your spirit spheres nor re-setting your cloth dye.
- Now the "number of attackers" in mob_dead is counted only from online characters on the same map.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10307 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-22 03:11:04 +00:00
skotlex
e120c937cc - Updated the autospell bonus scripts so you don't have to specify all the attack type criteria. If neither of BF_LONG/BF_SHORT is specified, the spell will trigger on both. If neither of BF_WEAPON/BF_MAGIC/BF_MISC is specified, the spell will trigger on BF_WEAPON, if neither of BF_NORMAL/BF_SKILL is specified, BF_SKILL is used if the trigger is BF_MAGIC/BF_MISC and BF_NORMAL is used if the attack is BF_WEAPON. This way the default when nothing is specified is BF_NORMAL|BF_WEAPON|BF_SHORT|BF_LONG.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10300 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-21 19:12:11 +00:00
ultramage
d220dde7c0 - Removed the +25% mdef, -50% def effect from Freeze status
- Changed autocast skills, they now only work with normal attacks
- Fixed a few spots where the attack_type flag was getting truncated
- Hopefully fixed the cygwin + size_t problem (using stddef.h as source)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-21 17:08:08 +00:00
ultramage
b1ccbcdba7 - Added ntows() to properly handle that client port number deficiency
- Adjusted the packet_db array for a more consistent look
- Reorganized some entries in packet_db.txt
- Fixed a small scripts_custom.conf typo

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10296 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-20 21:57:33 +00:00
skotlex
44ac188d6f - fixed a few include lines.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10293 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-19 17:10:11 +00:00
skotlex
2eeaa8f27a - Now @whogm hides perfect-hide gms only if their GM level is greater than the one who invoked the command.
- Some minor cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10290 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-18 20:28:33 +00:00