4640 Commits

Author SHA1 Message Date
ultramage
722c5f3f90 Fixed a typo in r11826 messing up TXT gm account loading.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11834 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-28 11:11:41 +00:00
ultramage
979cf2cdf9 Yikes, forgot to add the new admin.c file... (followup to r11826)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11833 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-28 11:02:38 +00:00
skotlex
8463446738 - Reverted the position of the max_hp/max_sp basic setting, modified the max_hp/max_sp bonuses to use casting in order to work correctly with negative bonuses.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11832 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-28 10:50:31 +00:00
ultramage
0b58320eb0 Applied clif_setlevel() to the new trade window packets to make it display properly when going over lvl99.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11831 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-28 00:40:21 +00:00
ultramage
1f8e1313df * Reconstructed a list of all PACKETVER types, by reverse-engineering it from places in the code where the define is used
- recovered PACKETVER 6 which was added in r51, but overwritten by r141, one of the dumbest commits that I have seen so far
- since 6 was the 'new trade window' update, it and its corresponding reply packet will now be used from now on instead the old version

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11830 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-28 00:07:12 +00:00
FlavioJS
e207fecd8c * Added safesnprintf to strlib.c/h (bugreport:372)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 23:06:37 +00:00
ultramage
ea5212c5a8 * TXT/SQL login server code synchronization
- exported several core structures to login.h
- split off ladmin communication code from the TXT login server
- removed all occurences of login_log(); a unified function should be added when SQL's loginlog_db logging code gets synced with TXT
- removed conf setting login_log_filename
- fixed ladmin getting timeouts since the ping system was changed
- removed login/char server_fd[] arrays, added server[].fd instead

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11826 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 19:38:16 +00:00
ultramage
4b8cf3c768 Removed some unneccessary charserver code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11825 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 19:17:00 +00:00
skotlex
a63fc8093f - Overpowered some more NPC_EARTHQUAKE as per Gravity retardation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11822 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 12:58:34 +00:00
skotlex
f98611b450 - Cleaned some more the sc_end check so it is more generic and not so limited just to infinite endure.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11821 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 10:08:22 +00:00
skotlex
b06c88e70f - Moved basic max HP/SP calculation to before parsing equipment, fixes negative absolute HP/SP bonuses not working.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11819 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 09:38:38 +00:00
skotlex
9a56a88f4a - Corrected the online_data_cleanup routine setting offline characters that are still connected to the char-server.
- Added a check in script command sc_end to properly end infinte endure
- ASC_BREAKER no longer triggers status effect cards.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 09:21:18 +00:00
FlavioJS
8e58ea8df8 * Fixed fake_nd not being exported correctly and being unloaded when reloading scripts. (probably fixes bugreport:444)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 07:12:30 +00:00
FlavioJS
7bfaec4529 * Normalized makefiles:
- 3 sections: variables, public targets, private/support targets
- object files always in a *_OBJ variable
- header files always in a *_H variable
- object files always generated to an obj* subfolder
- all Makefiles can be executed individually, calling other makefiles if necessary
- generic object targets when possible

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11812 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 22:36:30 +00:00
FlavioJS
83fb3336e7 * Fixed buildin_query_sql using Sql_Query instead of Sql_QueryStr, wrongly processing all %f,%d,... (fixes bureport:218)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11809 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 18:14:06 +00:00
ultramage
6e3396f84c Fixed guild expulsion not working correctly.
Corrected explusion -> expulsion typo.
Added packets from 2007-11-20a sakexe; there are some changes but can't test them yet, so they're left commented out.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11808 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 15:14:52 +00:00
FlavioJS
78571e990c * Fixed a memory leak in mail_savemessage (src\char_sql\int_mail.c).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11807 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 03:25:34 +00:00
L0ne_W0lf
69b5d5a8c0 Giant Fly Wings are now blocked on noteleport maps and duels.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11804 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-25 21:44:34 +00:00
ultramage
a0f115351a Fixed a crash when Slim Pitcher is cast (due to one unconverted piece of code)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11796 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-24 19:49:20 +00:00
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