3464 Commits

Author SHA1 Message Date
Playtester
ce51a40cad Hopefully fixed Solace card
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7927 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 22:35:26 +00:00
skotlex
c9e9b3b75b - Synced the script.c file with as much data as possible from jA's:
- A lot of functions were moved around, a bunch of indentation and space-usage changes were done to make it easier to diff against their files.
- Miscellanous addition and corrections were applied.
- Largest one is likely a restructuring of run_script_main, which hopes to solve the memory leaks.
- script engine now uses the setjmp functions to restore memory state when there's an error parsing scripts, which means that script errors won't cause the map-server to inmediately bail out anymore.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 21:00:19 +00:00
skotlex
8da82e0a0a - Changed npc_click declaration to receive an npc structure rather than a generic block-list one.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7925 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 16:28:00 +00:00
skotlex
a74b39c5c6 - Corrected Combat Knife reducing damage from DemiHumans by 10% instead of increasing damage against them.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7924 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 16:18:52 +00:00
skotlex
36602a3958 - Added a cleanup routine on shutdown to remove all characters from memory for whom the save ack has not returned from the char-server yet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7923 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 16:15:26 +00:00
skotlex
932107f772 - Now when you set the guardian's HP, if the guardian is spawned, it's HP will be updated accordingly (and if you set it to 0, the guardian is killed)
- Added functions status_set_hp/status_set_sp to set hp/sp to a given value. Applied usage of these on the Berserk and Soul Change code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7922 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 15:44:57 +00:00
skotlex
884de91ef3 - Some cleaning in status.c. Removed some unnecessary lines, and added proper lower caps to some status_calc_* functions (flee/hit/flee2/cri)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7921 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 14:59:23 +00:00
skotlex
574198e3e7 - Added config setting "party_hp_mode" (battle/party.conf) which determines method to use to update party-mate hp bars. Aegis style is to update HP bars whenever HP changes, while eAthena style is to update it together with the map party dots. Defaults to aegis style.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 14:42:17 +00:00
skotlex
893d5088f8 - Fixed packet 0x22a having the manner and opt3 packets in inverted offsets.
- Some other small cleanups on clif.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7919 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 14:28:07 +00:00
skotlex
7cf5521c32 - Readded the check which prevents Cloaking from activating when your learned level is less than 3 and you aren't next to a wall.
- Some cleanups to the Frenzy/Berserk status change, it should probably work correctly now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 13:53:52 +00:00
skotlex
3fb5dce0ae - Removed a redeclared variable i in the parsing of the fame list (char-txt server) which seems to be the cause of the random memory corruptions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 13:20:44 +00:00
toms
5062379bb4 Fixed Independence Memorial Hat weight, set to 0
Updated item_db.sql to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 13:01:15 +00:00
toms
ee5ee4fcd0 * Fix homunc & code cleanup [Toms]
- Timer problems on delete_timer
  - Intimacy problem (overflow & new values)
  - Homunc deleted if intimacy < 0
  - base exp is now given to master
  - Homunc sometimes not saved

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 11:56:22 +00:00
Playtester
6eb305c5a9 Fixed the Morroc ingredient seller to not appear
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7911 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 10:40:29 +00:00
Playtester
ccf714afce Another Sunkenship spawn fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7909 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 10:28:34 +00:00
Playtester
f46b0ee355 Fixed some spawns and a warp in Sunken Ship
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7907 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 10:00:40 +00:00
skotlex
6c9eb52332 - Fixed a memory leak when reading the item_db txt.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7906 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 03:33:56 +00:00
skotlex
3d18f93d8e - Applied the necessary changes to make @partyoption reflect it's changes on the alt+p window.
- Some code indentation cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7905 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 02:55:24 +00:00
skotlex
9d056a75f1 - Some code cleanup of HLIF_MOON in regards to the number of hits and damage equation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7900 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 19:12:00 +00:00
skotlex
830106c6f9 - Modified party_item_share_type config setting so that using 1 disables item-sharing from non-mob loot (player dropped items or pet loot) and 2 enables round-robin instead of random sharing. Using 3 obviously is enabling both 1 and 2.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7898 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 18:51:22 +00:00
skotlex
cfe71d744a - Added battle_get_master which returns the master bl of a given object.
- Recoded battle_check_target to use battle_get_master, the src/target switch has been split into two, so that actual target and master target are seperately treated (same for source).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 18:22:24 +00:00
skotlex
7cd47130d0 - Added support for "sc_end -1" which will clear all status changes. Added the constant SC_ALL so you can use in scripts "sc_end SC_ALL;" instead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 15:12:50 +00:00
skotlex
9a5e48460c - @pettalk will now fail when muted.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7893 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 14:47:30 +00:00
skotlex
9572db00eb - Enabled changing of equipment while stunned/asleep/petrified/etc
- Cleaned up a bit the skill_castend_id dead checks.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 14:30:34 +00:00
Playtester
ef1bfce009 * Fixed the Factory Quest
- two NPCs in one line won't work! >_>

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7888 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 10:50:39 +00:00
evera
b58664ad5c Added very first part of Bio Ethics Quest.
Very far from complete.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7887 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 02:28:50 +00:00
skotlex
0f8d093a2c - Cleaned up run_script_main to properly free previous stack-data when running scripts. Note that scripts may still leak memory when run by non-players and they don't reach the "END" state, however I am not sure how this case should be handled, so it's left as it is for now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7886 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 22:18:53 +00:00
Playtester
f0f744de3a Added rudeattacked teleport to Rachel MVPs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7885 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 22:04:10 +00:00
skotlex
74c899ec9f - Added a missing ntohl call in the loginlog code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7884 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 21:47:02 +00:00
skotlex
13489e30a8 - Added a check when buying from npcs to allow buying of item_avail items.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7883 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 21:32:57 +00:00
MasterOfMuppets
3d59b13508 Small fixes for the sign quest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7882 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 19:43:15 +00:00
skotlex
44365a97f2 - Fixed duel accept invite sending the packet before the duel data is set (resulting in a packet that noone receives). Thanks to Toms for finding it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7881 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 19:29:21 +00:00
skotlex
3fc64fbe0a - Fixed a possible crash when you dual-wield and the total damage is 0.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7880 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 19:12:27 +00:00
skotlex
7570d19aee - Added Toms's perl scripts item_db.pl and mob_db.pl (they are in tools/), they convert the txt databases into sql.
- Usage: "script" < "input file" > "output file". eg: ./tools/item_db.pl < db/item_db.txt > sql-files/item_db.sql
- Updated the sql files since now it's easy :D


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7879 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 18:43:42 +00:00
Playtester
7c2b6ee749 Added some NPC_Emotions for the Rachel mobs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7878 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 18:06:36 +00:00
Playtester
02d1820269 Fixed Grandcross not being self-targeted for mobs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7877 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 17:43:56 +00:00
Playtester
98b5dc1ea5 Something weird happened to the exp2.txt some months ago and I finally reverted it ^^;
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7876 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 17:40:00 +00:00
Playtester
662c932d00 Final cooking drop rate adjustment
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7874 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 15:51:14 +00:00
Playtester
28864e99c2 Fixed a bug in the item_db thanks to Toms
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7873 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 15:04:26 +00:00
Playtester
df0718012d * Updated Thanatos Tower spawns
- they are official up to Floor 6 now

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7871 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 14:40:01 +00:00
Playtester
0ebf7db70b Fixed G_Kraben and G_Biolab3 mobs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 12:08:37 +00:00
Playtester
fafad53907 Item updates by Haplo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7869 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 09:57:04 +00:00
skotlex
4ad022db62 - Re-updated the mob_db.sql to latest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7868 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 01:31:13 +00:00
skotlex
b2a4d6446c - Cleaned up the skill_landprotector function to correctly block only magic skills from being placed on land protectors.
- Corrected itemdb_group so that it will not return the random item givers (should give priority to actual item groups, so that the item heal bonuses work correctly)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 00:42:38 +00:00
skotlex
1b9b599e2a - Modified the loginlog setting on the login-sql server to store the ips using the htonl conversion function before storing/retrieving them from sql.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7866 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 23:32:02 +00:00
Playtester
03ad533c4a Raised drop rate of cook books and sets a little
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7865 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 21:11:57 +00:00
Playtester
9519cccdf6 Raised drop rate of food a little
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7864 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 20:48:22 +00:00
skotlex
91cae9f29b - Cleaned up the Mistress Card related code so that the no-gemstone bonus reduces item requirements by one rather than totally skip them.
- Cleaned up the logs "can log"function to use the IT constants. Also corrected the "only log large amounts" setting not working on negative values (trades).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 20:29:18 +00:00
Playtester
1ee23c02b1 Updated Changelog Header
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7862 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 20:15:47 +00:00
Playtester
d15a8cc448 Raised drop rate of Kiel's and Valkyrie's drops a little
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7861 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-24 20:12:26 +00:00