ultramage
cd3307a4bc
Fixed a crash when a taekwon hits a wall while Sprinting (bugreport:483)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11795 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-24 17:11:02 +00:00
ultramage
a74d339eab
Added support for latest official client/server packet changes.
...
Enable by setting PACKETVER to 9. Note that this breaks older clients.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11792 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-24 08:17:38 +00:00
ultramage
543ce8df7b
Make the walk/stand/spawn packet generation incremental - deriving new versions from previous versions.
...
This means less code but more work for the CPU, as some parts have to be memmove()-d around. Need a better packet building mechanism.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11791 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-24 08:07:24 +00:00
ultramage
a7163dc913
Fixed a badly defined skill range in homunculus loading code (followup to r11731)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11789 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-23 19:54:56 +00:00
ultramage
128efc8d50
Fixed some old mistakes in npc shop code causing misinterpretation of the number of function parameters (bugreport:404)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11788 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-23 02:25:50 +00:00
skotlex
d7bf36fe52
- Added a few missing skill fail messages on cast-end-pos skills.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11787 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-23 02:04:29 +00:00
skotlex
ddf923dba5
- Changed the status_change structure to use dynamic rather than static memory to hold the individual status changes, this should have a noticeable impact on the server's memory consumption.
...
- Had to add a few 'ugly' flags to status_change since now you can't track SC related information while said SC is not active (happens only for Storm Gust, Joint Beat and Magic Power).
- Since I am unable to fully test, watch out for any bugs~
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11786 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 23:52:58 +00:00
FlavioJS
69be534c6f
* Moved the reset of references to after the empty script checks in parse_script. (fixes bugreport:222 and bugreport:449)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 19:00:39 +00:00
FlavioJS
508ffb82d9
* Renamed fakenpcname to setnpcdisplay, fixed and extended it.
...
- See doc/script_commands.txt for information on how to use it
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 16:06:39 +00:00
ultramage
e9e5d6276d
* Modified mapserver login procedure to make clients from may 2007 and newer not crash when entering mapserver (bugreport:468)
...
- this changes PACKETVER to 8, causing incompatibility with old clients
- this makes the "Login" hex obsolete; please stop using it as it causes a conflict with this update and may have negative sideeffects
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11776 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 00:16:37 +00:00
FlavioJS
f56187c091
ups
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11775 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 18:21:13 +00:00
FlavioJS
c7fad50342
* Fixed Sql_SetEncoding not setting the encoding of the connection properly. (fixes bugreport:30)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 18:15:05 +00:00
skotlex
6840bb28ab
- Moved subtype from struct block_list to struct npc_data.
...
- Fixed some compilation warnings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 13:29:45 +00:00
skotlex
cd362b8ca9
- Optimized a bit the map set cell imperative so it only fails when the target cells are of native type wall/ground, so that it still allows setting/unsetting temporarily unwalkable types by using icewall types of cell.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 10:28:34 +00:00
ultramage
287ea2a93e
More clif.c cleaning
...
- Renamed clif_set0078 to clif_set_unit_standing, and clif_set007b to clif_set_unit_walking
- Added clif_set_unit_spawned (split off from clif_spawn), needed for a followup change
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 10:27:22 +00:00
ultramage
ef0971541b
Removed one duplicit sql operation when saving items (bugreport:459)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11768 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 09:08:15 +00:00
ultramage
0ad3fa93e4
random cleanup
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 08:57:31 +00:00
ultramage
5f3c387a37
* Homunculi now reset their can-act delay on call/resurrect/mapchange (allows bypassing delays by doing rest/call instead of relog) [ultramage]
...
* Changed Lif's Emergency Avoid to just get a normal skill delay (blocks all skills, cancelled by mapchange / re-summon) instead of getting a persistent block on only this one skill (bugreport:13)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11766 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 08:44:08 +00:00
ultramage
902d96c6d8
Cleaned up/reformatted clif_set0078 and clif_set_007b (stand and walk packet code).
...
Replaced some heavy #ifdefing in clif_spawn and clif_getareachar_unit with a lazy fixed-width buffer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11765 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 02:54:37 +00:00
skotlex
e96015d64b
- Implemented SL_SUPERNOVICE erasing the death record 1% of the casts.
...
- Implemented current exp being capped to the exp required to level up from the previous level when we are at max level (required for some S. Novice buffs)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11764 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-20 15:14:51 +00:00
skotlex
53d5219da6
- removed 'skill_fail' message when a ground skill fails as that caues double 'skill failed' messages in several instances.
...
- Corrected shop freeing using free instead of aFree ,causing memory leak reports.
- Corrected the sc def settings modifying tick_def in regards to sc_def instead of tick_def
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-19 19:40:19 +00:00
ultramage
c1da20681e
Random cleaning of party.c in attempt to make party_send_xy_timer() crashes a bit clearer...
...
- now party_db is iterated instead of using foreach()
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11761 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-19 14:51:23 +00:00
FlavioJS
7e9f1e929c
* Nullpo's disabled on release builds.
...
* Added timestamps to the log of memory leaks.
* Moved definition of __func__ to cbasetypes.h.
* Configure script updated:
- added option to select the memory manager
- added option to enable MAPREGSQL
- added option to enable DEBUG
* common's Makefile deleting svnversion.h on 'clean' target.
(run ./configure again to update your Makefile)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11760 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-19 03:05:16 +00:00
skotlex
cf2d63d285
- Implemented a small change that was long overdue: Displaying the char-select screen now uses a single SQL query instead of up to 9.
...
- Fixed a bug in the update to prevent setting cell types on unwalkable cells.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11757 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-18 21:32:24 +00:00
skotlex
94896dc707
- setting npc cells will no longer work on non-walkable tiles (since you could do this to override cell types and make unwalkable cells walkable again, for example).
...
- Small fix in the char-server accept code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11755 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-18 16:13:20 +00:00
ultramage
9ea5b9c76c
* Replaced jA's way of allocating npc shop data with a simple dynamic array that gets allocated during loading and freed on unload
...
- automatically fixes bugreport:404, which would otherwise require manipulating the npcname_db (the original author didn't, hence the bug)
- now a supporting variable 'count' is used for tracking the length instead of an extra dummy entry at the end of the shop list
- partially removed the MAX_SHOPITEM restriction (if this was written properly, the system could support an unlimited amount of entries)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11753 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-18 10:36:09 +00:00
ultramage
42746f05f9
Fixed npc_debug_warps() not identifying x:0,y:0 as valid (random) coordinates
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11752 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-18 02:30:29 +00:00
ultramage
560005b13e
Removed battle_config.error_log as console_silent already handles this
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-17 20:51:25 +00:00
ultramage
90b75ed816
Made OnTouch zone dimensions be stored as radius instead of diameter.
...
Cleaned up some overly complicated area calculations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11750 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-17 20:03:29 +00:00
zephyrus
e5fd2c8ab4
- Added 2 new status changes for Life and Regeneration Potions [Zephyrus]
...
- Fixed some items boxes giving wrong tamings.
- Fixed another item giving 48 gladius[3]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11738 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-15 04:29:05 +00:00
ultramage
7b0200e6dc
Added error messages when trying to place objects on invalid map coordinates (quick patch for bugreport:419)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-15 03:42:10 +00:00
ultramage
3c4c7617e1
Fixed Divine Protection working against players (bugreport:410)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11735 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-15 01:49:11 +00:00
ultramage
4957a893e5
Fixed some guild skill offset calculation mistakes -_-
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11732 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-14 09:38:44 +00:00
ultramage
b5cf6976a2
Fixed some homunculus skill offset calculation mistakes (bugreport:363)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11731 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-14 09:31:47 +00:00
ultramage
e12b04e850
Added error reporting for invalid rows in skill db files.
...
Fixed skill_castnodex_db.txt not being parsed correctly.
Fixed a search&replace typo in skill_db.txt.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-13 07:48:44 +00:00
ultramage
2d71189702
Added error reporting to buildin_warp when it fails.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 21:06:49 +00:00
ultramage
804edb29f7
Fixed homunculus skills having unlimited range instead of being capped to view_distance+1 (for details see bugreport:376)
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11723 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 11:19:24 +00:00
zephyrus
9145b0167f
- Added SC_INCMDEFRATE, used in Mdef Potions.
...
- Added the effects of the fireworks items.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 09:13:29 +00:00
zephyrus
0cf565292d
- Important fix to Mail System allowing (by a low change) items duple.
...
- Added picklog to mail.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11721 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 08:55:36 +00:00
FlavioJS
f90edd96a6
* Fixed @addwarp crashing the map server (bugreport:390).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11719 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 04:15:18 +00:00
ultramage
1b56a795b9
* The Forget-me-not dance now behaves like Decrease AGI
...
- doesn't cancel Impressive Riff, Wind Walker, True Sight (bugreport:187)
- additionally, it doesn't cancel Cart Boost
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11718 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 20:46:00 +00:00
skotlex
788ccb51b6
- hom_setting&0x2 now disables skill range checks for homunculus. For the love of everything that is sinful, please unset this on your server.
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11717 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 11:16:48 +00:00
skotlex
39b8a6f75a
- Added missing include npc.h to map.c
...
- Now when job changing to another class tree, status changes from skills that belong to your previous class are cleared.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11716 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 11:02:53 +00:00
ultramage
a5b2c3b30c
Applied Rayce's improvements to the npc script parser (see bugreport:387 for details).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11715 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 10:59:41 +00:00
ultramage
95f651807d
Fixed a missing include/export, and typos in the previous revision.
...
Corrected wrong length values in one charserver packet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11714 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 10:56:39 +00:00
skotlex
a65db8120c
- Cleaned up pc_calc_weapontype
...
- made on-touch areas work with walking npcs. Note that the implementation is performance may not be optimal, but I am not sure if it can be done in any better way.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11713 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 10:12:58 +00:00
ultramage
ffd150e6f0
Fixed a bug in r11384 letting you bypass requirements for some skills (see bugreport:219).
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11710 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-10 21:26:12 +00:00
ultramage
3b742b114e
Fixed some more gcc incompatibilities...
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11706 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-10 13:59:23 +00:00
ultramage
12a567a5f9
Changing enum weapon_type in the mmo_charstatus structure back to integer until someone resolves that include mess...
...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-10 13:26:08 +00:00
ultramage
5eda6c0e57
Replaced several 'int' variables with enums that they represent.
...
Expanded weapon_type enum with dual-wield constants (bugreport:384).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11704 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-09 22:42:56 +00:00