4932 Commits

Author SHA1 Message Date
Inkfish
3654619bed Fixed Poison Status killing monsters with low max hp(like plants).
Mental Strenth costs 200 sp instead of 50% max sp.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14252 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-27 03:20:17 +00:00
ultramage
1ac0e13994 Changes to how right-click gm kick checks gm privileges:
* moved @kick gm level check to the part that kicks players
 * added @killmonster gm level check to the part that kills monsters
 * added missing reply to client in the part that unloads npcs

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14250 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-21 00:51:22 +00:00
ultramage
d167c3422b Adjusted the 'rare drop announce' code to only process if there's a valid mvp_sd.
This eliminates "??? won item" announces that occured when there were no damagelog entries and the killer src was NULL.
Examples include @killmonster use, and cases where a homunculus gets killed while attacking, and its delayed damage kills the target.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-21 00:20:27 +00:00
Paradox924X
d9cfd5002b Fixed racial bonuses for RC_NONDEMIHUMAN applying to right cardfix value (cardfix) instead of left cardfix value (cardfix_) in the case of melee attacks where left_cardfix_to_right is set to 'no'.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14248 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-19 12:51:40 +00:00
Inkfish
3fd1d9ca2b * Fixed NPC_INVINCIBLE can be dispelled. (bugreport:4046)
* Fixed a compliation warning.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14247 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-19 03:17:00 +00:00
ultramage
8dfa315ce8 Added visual studio equivalent of libc's strtoull() - name redefine for newer VS versions, custom implementation for VS6 (I hope it works).
This should fix the compilation error from r14242 (bugreport:4059).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-15 11:54:21 +00:00
brianluau
6f10a38dd9 - Fixed a misleading description. (bugreport:4008)
- Changed the confusing Rare Drop Announce. (bugreport:4037)
- Fixed an extra space in item script. (bugreport:4032)
- Renamed the upgrade_svn file in last commit to match revision number.
- Updated SQL item/mob databases to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14243 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-10 20:46:34 +00:00
Paradox924X
dde953ee4a Expanded range for cached and stored-in-db guild member exp (devotion) from uint32 to uint64. (bugreport:3983)
Capped value when sending to client to INT_MAX to prevent confusion.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14242 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-09 20:26:42 +00:00
Inkfish
be4fc45134 Bleeding doesn't kill non-player characters.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14241 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-07 03:13:48 +00:00
Inkfish
27801bb67f 2010/02/06
* Added official packet to display received expirience. (info provided by papkil)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14240 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-06 05:08:37 +00:00
skotlex
cc6b9e2cff - Oops, realized the vsd cid check is before the null pointer check. I AM getting rusty <_<
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14237 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-30 10:39:02 +00:00
skotlex
e91f9882ec - Added support for PACKETVER 20100105, which updates the vending related packets.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14234 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-30 10:24:10 +00:00
L0ne_W0lf
f74fc9a9b3 * SN_SHARPSHOOTING is no longer affected by AC_VULTURE. (Bugreport:3909)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14232 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-28 15:43:30 +00:00
Inkfish
adc8193bbe Reverted r3619. Evidences show Margaretha Solin Card works when player is hit by Storm Gust.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14231 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-28 13:06:54 +00:00
Paradox924X
7fb1bdf25c Prevented the changing of alliances to oppositions during WoE. (bugreport:3923)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-25 00:38:51 +00:00
Paradox924X
edc07c36d0 Prevented pc_skill with a value of 2 for 'flag' from granting a skill level that surpasses MAX_SKILL_LEVEL. (bugreport:4022)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14225 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-24 01:13:48 +00:00
Inkfish
f741065ee6 Fixed a wrong interpretion to "clif_addskill" packet. follow up to r14218
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14222 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-20 15:40:39 +00:00
Inkfish
dc62b5d338 Intimidate now checks the distance between source and target in case it kills the target and then warps the respawned one.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14221 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-19 16:00:02 +00:00
Inkfish
66bd2d540a Intimidate should warp you anyway even if the target died.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14220 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-19 15:42:32 +00:00
Inkfish
5d56b669e9 Fixed items don't grant skill if you had this skill before and then changed your job.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14219 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-16 03:44:07 +00:00
Inkfish
9622957e11 * Fixed change cart packet doesn't check for skill.
* Added new packets for Plagiarism.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-15 10:40:18 +00:00
brianluau
ed86db530d - Fixed a typo in Orc's Memory.
- Fixed a weight check in quests_13_1.
- Fixed some grouping variables in the sample PCRE npc.
- Updated SQL item/mob databases to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14216 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-01-08 19:18:27 +00:00
Inkfish
ab888d956f Fixed Meteor Assault and Spread Attack have twice the chance to trigger AutoSpellOnSkill.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14215 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-27 05:22:39 +00:00
ultramage
e5a32cb5e7 Fixed a memleak that occurs when a player exits while waiting on a script select() or menu() (caused by r12481).
The change made the attached script not deallocate to avoid a crash when changing mapservers, however deallocation must occur here since scripts waiting for user input are unable to free themselves.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14213 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-24 12:19:34 +00:00
ultramage
622de6a2da Quick-added support for the new whisper packet (bugreport:3942).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-20 11:37:28 +00:00
ultramage
e441bae997 Corrected a variable defined in a header file.
Cleaned up a bad case of variable recycling.
Separated the ALL_WEWISH case from the unrelated sage skill cases (undo of r14183).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14190 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-08 00:41:29 +00:00
Paradox924X
92ed65fd9a Prevented online user count from going negative. (bugreport:3913)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-03 07:51:55 +00:00
L0ne_W0lf
27d0043c05 Semi-revert of 14182, moved ALL_WEWISH up under SA_GRAVITY instead, as I hadn't noticed it does exactly what the new case did.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14183 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-02 17:37:14 +00:00
L0ne_W0lf
ccfe13cd56 Added skill ALL_WEWISH. This skill in older clients plays a song, however in current clients it does not. The effect (AL_ANGELUS) still shows.
Added ALL_WEWISH to the skill databases, and enabled the Christmas Musicbox item.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14182 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-02 17:31:30 +00:00
Inkfish
69bd8dced5 * Autobonus code cleanups.
- removed the 'script_parsed' flag to fix the issues with combo items.
- introduced a global cache for autobonus scripts so that we don't have to parse scripts everytime invoking status_calc_bl.
- fixed such script commands as 'getrefine()' not working inside autobonus scripts.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-02 10:30:10 +00:00
Kisuka
cb6fdc59cd - Official castle defense damage reduction/defense status changes. (bugreport:2901)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-29 07:18:35 +00:00
Inkfish
80591b2611 Fixed warping in OnPCDieEvent revives people with 0 hp.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14174 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-27 02:35:17 +00:00
Inkfish
5485daa6df * NPC event code cleanups.
- removed the 'OnMyMobDead' dead code. It's never supported though documented.
- removed the 'feature' that events only trigger when the player is in the OnTouch area IF it's specified. 
  It's never documented and breaks official scripts.
- some cleanups and bug fixes to OnTouch_.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14173 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-26 12:01:19 +00:00
Paradox924X
0c828bfc57 Moved log_sql_init() call up in map-server-init to after after map_sql_init() call to prevent unnecessary processing before a potential quit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-26 10:13:56 +00:00
Paradox924X
10c788b2da Fixed strnpcinfo(1) returning blank strings when NPC names did not have a hidden portion of the display name. (bugreport:3758)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-26 00:22:28 +00:00
Inkfish
2503e57535 Fixed damage doesn't cancel status changes.(followed up to r14164)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-25 00:18:51 +00:00
ultramage
e3300232a5 Cleaned up leftover PACKETVER define on the charserver (followup to r14155).
Expanded the error message in guild_castledataloadack() to actually provide some useful info.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14168 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-24 23:40:42 +00:00
ultramage
ada5a13abe Fixed instances not initializing after reloadscript (bugreport:3522).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14167 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-24 17:15:23 +00:00
Inkfish
96c3de31a6 * Fixed the logged damage from pets doesn't count when 'pet_attack_exp_to_master' is inactive.
* Uncommented the codes that stop pc_bleeding when dead (shouldn't have been commented out.....)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14166 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-24 10:12:43 +00:00
Inkfish
cc02657862 * Fixed player keeps bleeding when dead.
- if battle_config.invincible_nodamage is true, reflected damage to targets in invincible status is now 1.
* Fixed a script typo i made when i was fixing a typo...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14164 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-23 10:38:01 +00:00
Paradox924X
e7a9a5bf46 Added ipban_cleanup_interval to the Login_Config struct (Follow-up to r14161).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14162 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-22 10:27:49 +00:00
Paradox924X
d2313b836b Added 'ipban_cleanup_interval' option which determines how often expired IP bans are cleaned from the database. (bugreport:3734)
Modified ipban_check() to only include ipbans that haven't already expired. (bugreport:3734)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14161 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-22 10:19:44 +00:00
Paradox924X
40a9a236c0 Removed an extra { from previous commit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-21 04:15:40 +00:00
Paradox924X
31c237c225 Cleaned up mapreg dirty-marking code to only mark the mapreg as dirty when it actually is. (bugreport:3735)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14158 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-21 04:07:53 +00:00
skotlex
c92ff591f1 - Applied the renewal client support patch from Diablo (eA forum topic 222623)
- Added support for strcharinfo(3) to retrieve the player's map
- Added script command "searchitem" for name item searches.
- Moved PACKETVER to src/common/mmo.h as it's needed by the char-server now
- Changed the status valX from int to long so that it won't break for pointer-storage in other architectures.
- Moved the change party leader code to party.c
- A few bugfixes or packet field completions based on my past experience messing around with my server.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14155 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-19 18:19:09 +00:00
ultramage
9025c3c4c9 Removed unnecessary use of StringBuf in int_quest.c to avoid memleaks in certain cases.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-15 18:22:10 +00:00
ultramage
c517fd305a Resolved a client hang in the scenario where the client sent loadendack before the server finished loading all data (bugreport:3700).
Improved the performance of pc_autosave() to stop scanning players after it has already found the player it wanted to save (bugreport:3717).
The 'overweight' status changes (SC_WEIGHT50/SC_WEIGHT90) will now be cleared on logout, to avoid saving them into the database (they get derived from player weight during login anyway).
Improved lock.c on windows to use C's access(0) function instead of doing fopen/fclose when testing for existence of files.
Re-added the 'static' attribute to mapindex_getmapname_ext's buffer; returning the address of a non-static local variable is undefined behavior (see r13901).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14144 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-13 21:06:21 +00:00
brianluau
f3ca552ec5 - Fixed a typo in Strawberry Cake (12319). (bugreport:3702)
- Fixed a typo in Halloween 2009 Event. (bugreport:3711)
- Updated SQL item/mob databases to latest. (thanks Peter)
- Applied the change from r14087 to @tonpc, @shownpc, @hidenpc. (bugreport:3599)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14142 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-11 21:49:50 +00:00
Inkfish
3959ec7218 Fixed the flag from my last commit not working
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14137 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-08 14:32:36 +00:00
Inkfish
c9c033cea3 Fixed mob is removed from map right after his rebirth.
Fixed dead event does not trigger when a mob has rebirth skill and dies for the second time.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14136 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-08 05:50:58 +00:00