4683 Commits

Author SHA1 Message Date
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
Playtester
01f8edfa6e Updated Bows
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9556 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 23:38:02 +00:00
Playtester
dbf52cec16 Raised range of Gatling and Grenade Launcher to 9
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9555 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 23:11:43 +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
Playtester
976eccac9c Updated two handed weapons
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9551 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-21 16:17:28 +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
Playtester
eb46c3aadc * NPC_CHANGEUNDEAD is now "target" for all mobs
- all other NPC_CHANGE skills stay "self"

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9543 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 20:44:51 +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
Playtester
4c6f7a0b0e Commented some items that seem to crash the kRO client
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9535 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 10:57:54 +00:00
Playtester
d79eb83a0f * Made NPC_CHANGE self targetted for all mobs
- it should either be self or target for all but not mixed up	
- fixed up Parasite and Peach Tree AI

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9534 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-20 10:48:07 +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
Playtester
22c74d61ff Now Peach Tree can move, Parasite can't
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9528 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-19 22:11:22 +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
FlavioJS
f4ce933b8b - Added year to the dates in the npc changelog
- Added sample localized NPC

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-19 19:20:15 +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
skotlex
12242c1bdc - Added hom_setting to specify which homunculus 'quirks' are in effect. The default activates all of them, if you set them to 0 then homuncs will not be treated in any special matter, pretty much like standard mobs. if I missed any 'quirky' homunc behaviour from it, report it so it can be added to the list.
- Made flooritem_lifetime a int so you can specify much longer life times (the default of 60k was already very close to the max of 65k)
- Removed monster_ai 0x80 since it's now handled by hom_setting.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9519 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-18 20:12:59 +00:00
skotlex
224e07c6cc - When walking into a Guild Dungeon your pvp_points will be set to 5 so you have to die twice before being warped out.
- If jobchanging while disguised, the disguise will be removed, since it can't be kept and still calculate correctly the new job class to use.
- Fuuma shurikens are now unbreakable code-wise (like all maces, books, etc)
- Applied Meruru's patch to increase speed of easy path seeks.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-18 19:15:41 +00:00
Playtester
1ea782e49c Fixed some swords
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-18 15:45:23 +00:00
eaac
89b6fcb4ed - Adding new maps to the map_index.txt and maps_athena.conf
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-18 15:27:04 +00:00
FlavioJS
dd6a713c36 - Cosmetic changes to db.
- Fixed the unused MAPINDEX_AUTOADD section in mapindex.c (mapindex.h wasn't being included)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9515 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-18 15:06:51 +00:00
KarLaeda
628683cd41 Fixed exploit in The Sign Quest
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9513 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-18 00:04:41 +00:00
Playtester
732e3c71a1 Fixed Owl Duke and Owl Baron losing boss mode on NPC_EMOTION
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9511 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-17 11:50:13 +00:00
Playtester
a3418f4100 Updated some weapons and view ids
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-16 14:06:16 +00:00
Playtester
a9a0849c3e Fixed prices of arrows
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-16 13:01:22 +00:00
Playtester
b396c06c58 Update remaining headgears
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9508 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-16 12:40:03 +00:00
FlavioJS
08424f7e76 - Moved packet_len_table values to packet_db[SERVER].
- When an invalid packet_ver is found, all it's entries are discarted intead of just stopping the parsing.

whew, I'm glad regular expressions exist. =D
I'd also like to apologize for the previous revision.
That build wouldn't work because I commented out the contents of packet_len_table, resulting in packet sizes being 0 (or whatever is the default value for variables).
Got lazy, won't happen again... =X

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9507 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-16 03:20:40 +00:00
FlavioJS
25cd5a05f4 - Increased MAX_PACKET_DB to 0x300 and added a warning for when packet ids greater than MAX_PACKET_DB are found.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9506 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-16 00:22:08 +00:00
skotlex
b9fd36a7cd - There will be now warnings printed when a shop sells an item which's buy price is 20z, since those usually are "rare" items with no buyying price set. Note that this reports one fake, and that is the selling of a certain shuriken that indeed costs 20z.
- Most likely fixed client crash when xmas/wedding status runs out.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9505 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-15 18:13:37 +00:00
Playtester
bcef152c09 Reverted price of Mink Coat
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9504 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-15 11:20:30 +00:00
Playtester
73c98dd0cc Updated some more headgears
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9503 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-15 11:08:04 +00:00
Playtester
bd82c377b1 Added some new headgears
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9502 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-14 21:58:18 +00:00