2783 Commits

Author SHA1 Message Date
Lance
b319b03eba WTF was I doing?
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 18:45:41 +00:00
Lance
f2df4e5b2a * Small fix in TK_MISSION from 1/101 to 1/100 probability. (Valaris)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9594 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 18:44:00 +00:00
skotlex
eb080dbd67 - Fixed spiritballs not correctly being used for skills such as Finger Offensive when GM unconditional is set.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 18:36:15 +00:00
skotlex
678096381e - Skill use is now cancelled when you use it while cloaking, and the uncloaking process warps you.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9591 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 14:21:09 +00:00
FlavioJS
6a7bdd6ffe - Reapplied Skotlex's socket.c changes from r9587 and r9582. :S (sorry)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9589 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-28 19:42:59 +00:00
FlavioJS
f863581174 - Part 3 of TheUltraMage's socket cleanup.
- Fixed the packet structure in mmo_char_send006b for PACKETVER 8.
- Removed search_str from add_str (add_str already searches for the string).
- Native script words like do,while,for,... are case insensitive now.
- Changed SCRIPT_HASH_SIZE to 1021 (prime hash sizes give better distributions).
- Added alternative hash implementations to the script engine (to try out later).

removed int_homun.c from header section of the VS8 map project files

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9588 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-28 19:11:40 +00:00
skotlex
807acd0aac - Added a func_parse invocation when an invalid socket is found, so that the underlying code (char/map/login) can handle it and free any related resources.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9587 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-28 18:02:14 +00:00
skotlex
82e54d7c75 - Added some skill effect packets so it displays a generic effect for unknown targetted skills
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9586 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-28 17:41:33 +00:00
skotlex
8bcc26d8dd - Some cleaning in do_sendrecv, added error messages when handling an incorrect socket.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9582 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-28 14:03:39 +00:00
blackhole89
65ee3d07e9 minor fix; see Changelog-Trunk.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-27 17:56:14 +00:00
skotlex
3048495c54 - Cleaned up item_misc.txt
- Fixed a bug which makes the group heal bonus be applied as many times as the item is in that group.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-27 15:11:50 +00:00
skotlex
74e263086a - Applied Rayce's suggestion to improve the script hash size usage. eA now uses a hash of 1024.
- The str hash report can be printed by turning on the etc_log


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9577 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-27 14:40:04 +00:00
skotlex
cd14e36a68 - Full Buster's auto-blind chance is now reducable by stats/items.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9576 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-27 13:48:21 +00:00
skotlex
b6dbcc39c9 - Fixed some warnings
- Corrected the comment for the global functions file.
- Updated Charge Attack's damage equation as per the only source I've seen of it so far.
- Now Guardians/Emperium can't hit /be hit if their current map isn't a gvg_castle or woe is off. This enables "localized" WoE by removing/setting the mapflag gvg_castle on the castles where you want WoE to take effect (note that even though normal players can't be hit on non gvg_castle maps, normal mobs can still be killed in such maps, you'd still need to modify the WoE scripts to use this kind of feature)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9575 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-26 16:10:53 +00:00
skotlex
58bb9be68a - Cleaned up some more the code so it works for -DTURBO
- Cleaned the pvpoff @ and script commands.
- mob_get_random_id now has two additional flags to specify that the monster to acquire should not be a boss type (4) or that it should give exp (8).
- TK_MISSION will now pick any mob from the DB as long as it is not a boss type and it gives base exp.
- Fixed the double-stone issue when hitting a petrified character.
- Minor cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9573 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-26 15:07:18 +00:00
FlavioJS
dd92bd13fd - a couple of warnings fixed
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-25 08:21:49 +00:00
FlavioJS
8751fbd631 - Fixed buildin_getscrate, thanks Trancid.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9571 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-25 07:28:15 +00:00
FlavioJS
60e3d1b499 - Applied part 1 of TheUltraMage's socket cleanup.
"Basically what I did was perform simple one-liner substitutions for ugly repetitive blocks of code. The most apparent are the send/recv code and the other basic socket calls."
- flush_fifo is non-blocking now. I guess best effort is good enough...
- Copied header files from vcproj-7.1 files to vcproj-8 files.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9570 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-25 06:59:25 +00:00
FlavioJS
266f66cfff - Applied the rest of Rayce's suggestions and fixes (http://www.eathena.ws/board/index.php?showtopic=129185)
- warn_cmd_no_comma, warn_func_no_comma, warn_cmd_mismatch_paramnum are now warn_func_mismatch_paramnum and it only prevents showing the error, as it was probably intended in the first place. (correct me if i'm wrong)
- Merged the parsing of function calls in the script engine, removing the parse_cmd hackery, and made "heal (.@val+rand(0xff))&0xff,0;" valid again.
- Fixed a bug in eye_of_hellion.txt and a bug in hunter.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9569 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-25 06:15:46 +00:00
KarLaeda
2f7bd25279 Small fir for changeset 9539
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9568 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-24 18:59:58 +00:00
FlavioJS
11cb7227b2 - Fallback for parenthesis argument lists in the script engine. "func (exp) , ..." is valid again.
Why didn't I think of this earlier? /hmm

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9565 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-23 07:09:24 +00:00
FlavioJS
4f69a66df6 - Merged START_ACCOUNT_NUM and END_ACCOUNT_NUM moved from login.h to mmo.h
- Merged more helpfull error messages when packet_ver=-1. (no more "clif_parse: Disconnecting session #XX for not having latest client version (has version -1)." messages).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-23 06:46:54 +00:00
FlavioJS
52245f90b9 - Moved "#include <limits.h>" to cbasetypes.h to ensure it's included before checking if UINT_MAX has been defined.
- Minor changes in pc_readdb related to max_level being unsigned.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-23 03:24:32 +00:00
skotlex
fa1c4b2e47 - Simplified the global function "getJobName"
- Simplified function agitcheck so it isn't crash prone. Now it takes no arguments, and will return whether WoE is on or not.
- Updated bundled scripts as required for this change.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9559 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-22 15:38:30 +00:00
skotlex
2208728178 - Added support for the new "make new char" packet that has the rename button data. Thanks to Sara-chan for the format change update.
- Fixed itemdb.c sql compilation
- Now when you specify a max level beyond what the exp table has, the last entry of the exp table will be duplicated to fill in the remaining levels.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9558 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-22 14:19:39 +00:00
FlavioJS
e75a8eca56 - Change strncpy to memcpy when parsing switches in the script engine since it's guaranteed to be a word of that size (skip_word).
- Made scriptlabel_db duplicate the key. When str_buf is reallocated, the keys in scriptlabel_db could become invalid, causing a crash in npc_convertlabel_db.
( removed the readded >=0x81 equivalent )
- Now npc_convertlabel_db clears scriptlabel_db after using it.
- parse_script has an extra parameter options. At the moment it only indicates if scriptlabel_db should be used or not.
- Fixed "UINT_MAX undeclared" on systems that don't declare it in limits.h

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-22 05:27:03 +00:00
skotlex
6e0309bb2c - Applied Rayce's suggestions and fixes to the script engine (http://www.eathena.ws/board/index.php?showtopic=129185)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9554 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 18:12:29 +00:00
skotlex
afd7345d86 - Some cleaning to the character deletion code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9552 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 17:49:27 +00:00
skotlex
39a8fa2eb6 - Changed a certain snprintf to strncpy, you really really really REALLY shouldn't use snprintf with a format argument that may contain unpredictable string sequences!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 15:44:39 +00:00
skotlex
6e34fdb6ed - Added back cropping the attack delay to attack motion for those weird mobs that have a aDelay less than their aMotion time.
- Made the Note 4 comment clearer in the battle config files.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 14:18:48 +00:00
FlavioJS
45036c5c06 - readded the >=0x81 equivalent until I figure out where the script engine is 'being naughty' O.o
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 03:14:41 +00:00
FlavioJS
cab81204c6 ups... damn it...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9546 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 02:40:59 +00:00
FlavioJS
a2021e550b - Added a 1-node cache to db. Removed party_cache and guild_cache since now the database has a cache.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 02:32:51 +00:00
FlavioJS
15258dfdb0 - Moved md5calc to common
- Answered Skotlex's question and fixed "warning: comparison is always false due to limited range of data type" by restricting script words to ASCII characters only.
- Applied "svn:eol-style native" to makefiles and project files

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9544 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 01:16:30 +00:00
KarLaeda
6676ebcadb Fixed #endif instead of #else
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9542 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 20:20:12 +00:00
skotlex
a578128619 - Changed some %lu (long unsigned int) to %u (unsigned int)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 18:56:31 +00:00
skotlex
4265154cf1 - Fixed the #if -> #ifdef mess up -.-
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9540 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 18:24:49 +00:00
skotlex
e29a1031d5 - Moved PACKETVER to mmo.h, and added support for the expanded character info window on the char-server when PACKETVER is above 7.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 17:21:56 +00:00
skotlex
edbb476bf9 - Fixed ISSPACE and ISALPHA casting their returned value to a char. These are "bool" functions, and as such return an non-zero int as result, casting them to char just... really messes things up when the returned value is out of the CHAR_MAX/CHAR_MIN range!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 16:43:46 +00:00
skotlex
6bbec4a65d - Added an answer to a FlavioJS's comment, and added a question myself (npc.c/script.c respectively)
- Fixed add_str in script.h not being updated to const char as well. But why do we really need such a script-engine low-level function exposed to the rest of files? :/
- Moved the strip unequip code to before deleting the timer, this fixes trying to "re-strip" someone causing the skill to fail and on top of that terminate their current strip effect.
- Added an ugly work around to the issue of skills with additional effect causing opt1 status when they have just terminated them (in short, you shouldn't be able to hit someone with, say, sleep, and then have the same skill cause them stun, since both are opt1 values).
- Reading of TK Mission variables will now happen if you are a TK-class character regardless of whether you know TK_MISSION or not. Should fix being able to reset skills to reset your Mission data.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9537 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 15:54:11 +00:00
FlavioJS
72bebf27fc - Now root script functions calls can have parenthesis (will take any parenthesis after the function as the start of the argument list).
This means "func (exp),exp;" isn't valid anymore and has to be changed to "func exp,exp;" or "func((exp),exp);" or something like that.
- Updated swordman.txt and knight.txt accordingly.

Only changed this because it was very annoying when I was creating the sample localized npc.
Don't expect more changes unless something similar happens again. Bottom line: we're in soft feature freeze and moving to eApp...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9536 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 11:50:44 +00:00
FlavioJS
78b52bbb4b - Replaced our fix for "mes ();" crashing by jA's version. see trunk[8867] and stable[8927]
- Merged the fix for & having the same precedence as << and >> from jA.
- Merged the C_OP3 operator from jA: test ? if_true : if_false

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9533 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 09:09:21 +00:00
FlavioJS
40b389bc42 - Changed the script source from unsigned char* to const char*.
- Updated plugins Makefile.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9532 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 07:17:18 +00:00
FlavioJS
4a2db02dec - Fixed the meaning of stdout_with_ansisequence and changed the default value to no.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 02:02:24 +00:00
skotlex
e445c551c2 - Fixed SC_STRIPWEAPON failing on two-handed weapons.
- Minor changes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9529 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 00:44:52 +00:00
skotlex
b19f78a17c - Fixed the setting hom_setting not being read at all.
- Minor cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9525 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-19 20:33:35 +00:00
skotlex
b4ef291d27 - Added missing include of system header limits.h to timer.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9523 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-19 17:56:10 +00:00
skotlex
d882e5030b - Reverted the mob ThinkTime update, that field is again aDelay as it apparently should be.
- Fixed one small compilation error.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9522 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-19 13:41:25 +00:00
FlavioJS
43256aa77e - Cleanups or minor changes.
- Now addtick_timer invokes settick_timer, so keep an eye for whatever timer issues it's supposed to have.
- Removed the flush_fifo from clif_parse_TickSend until the socket problems are fixed.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9521 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-19 09:15:00 +00:00
FlavioJS
2afbde751d - Updated POS2 macros. The 6th byte is subx0 and suby0
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9520 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-18 20:45:58 +00:00