2783 Commits

Author SHA1 Message Date
skotlex
7f460dc646 - Fixed the Auto-Berserk giving you back defense when it triggers during berserk's HP penalty.
- Some small changes in the pet ai to make it more responsive.
- Rewrote the pet looting behaviour (taken from the mob's), pets are much more smarter now when looting from multiple possible items.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9291 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-22 05:04:16 +00:00
skotlex
52d0596d42 - Fixed pets/homunc trying to be deleted twice when they had 0 intimacy and their master logs out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9290 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-22 00:18:41 +00:00
skotlex
1c5fbb2231 - Various GS skill requirement corrections:
- All coin related skills can be used with any weapon. Those that require ammo can be used with any ammo.
- Added support for specifying ammo type = 99 in the skill_require_db file, it can be used to specify that any kind of ammo can be used with the skill, but you NEED to have ammo equipped.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9289 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-21 21:38:56 +00:00
skotlex
e47c69b87b - Corrected GS_DISARM, it is now a normal attack, which, when it connects, has a chance to do strip weapon ar a 3*lv% rate (modified by dex)
- Fixed GS_PIERCINGSHOT, it should ignore defense
- Corrected Gatling Fever costing SP when trying to turn it off. Also, speed increases bonuses won't take effect while it's active.
- Updated the main makefile with a new OPT line. It is commented by default since it only works with GCC 4.X, when unset, it will hide away a huge amount of warnings that have to do with stuff that is not gonna be corrected in eA anyway.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9287 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-21 20:54:22 +00:00
skotlex
4f9e65d7ee - Corrected TripleAction's damage. It should do 150%*3 instead of 100*3% damage.
- Updated GS_CRACKER's stun chance using Doddler's info as reference.
- GS_FLING won't reduce armor defense when used on players.
- Added constant MAX_STEAL_DROP to determine up to which slot you can steal.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9286 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-21 19:47:20 +00:00
skotlex
0f433c6c45 - Moved ignoreAll to state.ignoreAll so it saves some space.
- Cleaned up clif_parse_Wis to prevent crashes from forged packets (using a strlen() on a string where you don't know if it's null-terminated is a NO-NO)
- Cleaned up the implementation of the ignore list so it's more efficient.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9282 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-21 18:23:08 +00:00
skotlex
bcb011580c - The max level of NPC_SPLASHATTACK is now 1.
- Implemented NPC_DEFENDER. Reduces ranged Physical+Misc damage by 80%
- Improved the battle config reader so it accepts hexadecimal values. Updated the monster_ai description to make use of this.
- Added monster_ai&0x200. When set, mob skill delays are shared. That is, if the mob has several lines with the same skill, when the skill is used, the delay will be set to all of them, not just the one entry used.
- Cleaned mob.c to use hex values when refering mob_ai
- Corrected NPC_BARRIER so it grants 100 def/mdef (and not just mdef)
- Weapon ATK bonuses will now only apply to watk and NOT watk2 on players (on players watk2 is refine bonus)
- Corrected NPC_KEEPING. it should give 90 def, not 100


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-20 21:25:47 +00:00
skotlex
12e7c68c78 - You now can't use other skills while a skill-induced "window" is up (teleport, refining, etc). However, be warned that we aren't quite sure how the server will clear this out if you decide to hit cancel on the window, so skill-blockage is likely to happen (temporary solution: whenever you change maps or warp the state is reset server-side).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9276 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-20 18:02:08 +00:00
skotlex
208cf8d875 - Fixed itemskill variable being cleared before parsing the skill, this causes auto-casted teleport to fail to skip the skill menu. It is now cleared on castend_pos/id directly.
- The item skill/lv variables now use 0 as default to signal they aren't being used (instead of -1)
- Skills with state 'move_enable' will now do a "walk path" check between target cell/object and caster instead of a "shoot path" check, this would fix skills like snap or charge from letting you "teleport" across pits.
- Fixed a possible double map_addblock when hatching a pet egg right before going through a warp.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-20 17:25:05 +00:00
skotlex
943bff73bc - Raised the amount of skills that can stack on a single cell before the "in-area/out-area" detection code breaks to 24 (from 8)
- Fixed a crash in clif_SkillInfoBlock if the passed player already disconnected.
- Added limiting drop rate to 100% from item-bonuses that depend on the mob's level so that "@autoloot 100" will catch them.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9270 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-20 15:08:43 +00:00
Lance
9b4d416b15 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9269 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-11-20 12:43:39 +00:00
Lance
11e7a6e143 - atcommand and charcommand backwards compatibility
modified   src/map/script.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9268 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-20 12:39:27 +00:00
Lance
d4e444ebd4 - Removed security check since source level patch is applied. Reverted select(), created prompt().
modified   Changelog-Trunk.txt
modified   npc/airports/airships.txt
modified   npc/cities/amatsu.txt
modified   npc/cities/gonryun.txt
modified   npc/cities/hugel.txt
modified   npc/cities/lighthalzen.txt
modified   npc/cities/niflheim.txt
modified   npc/cities/valkyrie.txt
modified   npc/custom/eAAC_Scripts/disguiser.txt
modified   npc/custom/eAAC_Scripts/quest_warper.txt
modified   npc/custom/jobs/jobmaster.txt
modified   npc/events/idul_fitri.txt
modified   npc/jobs/1-1e/gunslinger.txt
modified   npc/jobs/1-1e/ninja.txt
modified   npc/jobs/novice/novice.txt
modified   npc/merchants/kunai_maker.txt
modified   npc/merchants/novice_exchange.txt
modified   npc/merchants/refine.txt
modified   npc/other/comodo_gambling.txt
modified   npc/other/dts_warper.txt
modified   npc/other/marriage.txt
modified   npc/other/powernpc.txt
modified   npc/quests/Lvl4_weapon_quest.txt
modified   npc/quests/gunslinger_quests.txt
modified   npc/quests/quests_ein.txt
modified   npc/quests/quests_umbala.txt
modified   npc/sample/monster_controller.cpp
modified   src/map/script.c



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9267 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-20 10:11:20 +00:00
skotlex
d1005fced1 - Removed grfio include from core.c as it's totally unneeded
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9264 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-20 01:47:14 +00:00
Lance
22de482fce * Hack protection from packet monkeys in clif_parse_NpcSelectMenu.
modified   Changelog-Trunk.txt
modified   src/map/clif.c
modified   src/map/map.h
modified   src/map/script.c



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9261 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-19 06:08:49 +00:00
Lance
97919b1a6f * Added 'cancel' button parsing in buildin_select menu system. Now scripts will continue to load if 'cancel' is pressed and 255 will be returned.
modified   Changelog-Trunk.txt
modified   notice.txt
modified   src/map/script.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9258 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-19 04:15:32 +00:00
Lance
568b2b5eb7 Calculation error in clif_parse_Wis.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9254 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-18 01:42:13 +00:00
skotlex
0b585ba393 - Corrected use of the party invitation reply packet, thanks to FlavioJS.
- Removed requirement of "Changelog-Trunk" in the common/Makefile, why was it even there??
- Minor cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9251 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-17 21:20:58 +00:00
Lance
a7d5f271df * Fixed potential hack by modifying packet of whispers.
modified   Changelog-Trunk.txt
modified   src/map/clif.c
 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-17 17:27:19 +00:00
Lance
3bfc48996a * Fixed potential crash in IRC processing message with '%' using *printf.
* Fixed memory leaking caused by homun_data not freed when removed.

* Minor adjustments to sign/unsign in script commands.

modified   Changelog-Trunk.txt
modified   src/map/irc.c
modified   src/map/script.c
modified   src/map/unit.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-17 16:48:04 +00:00
skotlex
617a4d0850 - Fixed client not validating the chat-kick-request packet, which can cause crashes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9243 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-17 14:48:50 +00:00
skotlex
68bc8eb99d - Updated map_quit to handle removing of players who are not even authenticated yet.
- New connection requests are now also blocked when there's a player already online but hasn't finished loading yet.
- Because of these changes, the friendlist notification when people join has been moved to LoadEndAck from pc_authok


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9241 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-17 13:57:15 +00:00
Lance
3e7a154f59 * Edited atcommand and charcommand syntax. Now it doesn't need the useless character name and ":".
modified   Changelog-Trunk.txt
modified   src/map/atcommand.c
modified   src/map/atcommand.h
modified   src/map/charcommand.c
modified   src/map/charcommand.h
modified   src/map/clif.c
modified   src/map/map.c
modified   src/map/script.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9230 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16 15:26:27 +00:00
skotlex
b1e1b423f6 - Shadow Jump and Kirikage won't "move" you if you use them in GvG grounds. Fixed Kirikage so it first warps you, and then you unhide.
- Corrected Zeny Nage so the Zeny spent on the attack is always the exact same value as the damage you are dealing. Also corrected it so it does half damage when used on players.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16 15:09:05 +00:00
skotlex
17f4afab04 - Overlapping song/dances will now cause dissonance/ugly-dance level 1 instead of retaining the level of their song/dance.
- Fixed the misleading description of what item_avail does.
- Fixed wrong check in @petrename, thanks to The Ultra Mage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9228 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16 13:45:02 +00:00
skotlex
c97cbb77c4 - Characters with Karma may fight amongst them anywhere.
- Added mapflags partylock and guildlock, which lock the state of the parties/guilds on said maps. partylock blocks user party requests to create/invite/leave/kick, while guildlock blocks user guild requests to create/invite/leave/expel/make alliance/make opposition/delete alliance/delete opposition/break


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9216 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-14 14:21:47 +00:00
skotlex
b8591e80ca - Reverted the hp conversion formula "fix" as it was correct before.
- Increased the trigger rate of Warmth skills from 500ms to 200ms.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-14 13:34:03 +00:00
skotlex
35b7b85fbd - Fixed a bug where the char-txt server was incorrectly saving memos, causing character data to be lost on restart.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9209 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-13 20:04:43 +00:00
skotlex
bd25ce6f90 - HP Conversion will fail when used at max SP. It should not display any errors to the client.
- Modified yet again the login procedure. The initial status_calc_pc is invoked when the variable registries arrive, but the initial LoadEndAck will not be parsed until the registries have arrived. In the rare case this happens, pc_reg_received will take care of invoking the LoadEndAck function itself.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-13 19:15:03 +00:00
skotlex
fe7ede9fc5 - Volcano/Deluge/Violent Gale are now interchangeable, in the sense that as long as one of these is out, casting any of the three will not consume gems, and will use the remaining time of the previous one. In turn, Land Protector will now always consume gems on every cast.
- Small cleanup in the Land protector code which may fix it not blocking AoE skills.
- Fixed the interpretation of "head_dir". Removed setting head_dir to match character direction in the whole code. Now it is only reset to 0 (look forward) when unit_setpos is invoked, or when a character begins walking. Thanks to FlavioJS for figuring out how the client parses the head direction.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9206 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-13 14:35:43 +00:00
Lance
b568e34ca3 * Moved status_calc_pc back to pc_authok.
modified   Changelog-Trunk.txt
modified   src/map/pc.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9202 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-13 05:40:47 +00:00
Lupus
13b42f8089 Fixed debug message in login_sql
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9200 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-11 23:40:28 +00:00
skotlex
5166b75157 - Fixed some line delimiter issues in script.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9196 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10 22:47:08 +00:00
skotlex
3b530a5702 - Deluge/Violent Gale/Volcano tiles will now fail to be placed on cells that are already ocuppied by anything else.
- status_is_immune will now return 0 or the amount of immunity of the target. In which cases it returns 100 for WoH and the GTB bonus when they have passed the gtb_sc_immunity setting. This enables targetted spells to not "fail silently" unless GTB's magic reduction is 100.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9194 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10 19:20:59 +00:00
skotlex
fff660eb38 - Fixed Homunculus being spawned as soon as they arrive from the char-server even if the Master has not spawned on the map yet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9193 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10 18:11:10 +00:00
skotlex
2de16acdeb - AL_TELEPORT now fails when used on top of Land Protector.
- Some minor cleanings in pc_setpos, it may (or not) help fix that homunc-caused "map_addblock" error message.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10 16:17:13 +00:00
skotlex
11f97275da - Removed the inf2 = TRAP of FirePillar and Spider Web so they are blocked by Land Protector.
- Renamed skill_landprotector to skill_cell_overlap since that is more coherent with what that function does now.
- Corrected fog of wall, so that the deleted/doubled-duration effects are calculated on a cell-by-cell basis.
- Updated Land Protector: It will now delete/block effects of ALL ground skills EXCEPT: Song/Dances/Traps (encores are still blocked). Land skills blocked/deleted by LP also can't be casted on top of an existing LP. The code uses the inf2 value of the skill to determine if it is a song/dance/trap.
- Ganbantein, mimicking LP, will now also remove ensembles.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9191 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10 15:27:53 +00:00
skotlex
39f2b31168 - Fog of Wall will fail when casted on top of a Volcano/Violent Gale
- Applied FlavioJS's fix to the npc whisper system.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9190 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10 13:58:43 +00:00
skotlex
0b3a00dce8 - Fixed status-change loading not working.
- Fixed permanent mob-spawn script-events not working.
- AL_CURE won't confuse undead players.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9187 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-09 23:32:09 +00:00
skotlex
9dd5eb5674 - Reduced the check area of hermod to 3x3, you now have to literally stand next to a warp for it to work.
- Corrected the Fog of Wall check so that it lasts 2x when it is placed on TOP of a suiton/deluge, not when the caster is on top of them.
- Updated status_check_skilluse so that when the caster has a disabling status change (stun/petrify/etc) it will block the skill in all cases EXCEPT on cast-end when the skill is ground-targetted.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-09 20:02:56 +00:00
Lupus
4f851fe900 Fixed Health Conversion skill formula bug
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9181 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-09 07:02:14 +00:00
skotlex
834e829a50 - Fixed Desperado's hit-rate.
- Some miscellanous cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-09 04:49:42 +00:00
skotlex
74e7e67806 - The GVG map-packet will now also be sent for guild dungeon maps.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9178 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08 20:04:26 +00:00
skotlex
b4e089ee01 - Did some cleaning in pc_authok and clif_parse_LoadEndAck
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08 19:14:03 +00:00
skotlex
69c98bdfa2 - Some cleaning of the Gospel code.
- Added clif_gospel_info which displays info about the buffs you are receiving. Thanks to Rayce for the packet information.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9174 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08 16:51:13 +00:00
skotlex
405f4633ec - Moved the duel functions to pc.c since they are so totally out of place in atcommand.c
- Fixed Spider Web not ending when hit by a fireelemental attack.
- Cast-time reductions from status changes will not be executed until right before casting, to prevent status changes from ending when attempting to cast and the attempt fails (invalid cells, not enough sp, wrong target, etc, etc)
- Added check to prevent Wand of Hermod from seeking for a partner to encore, since the partner is supposed to be the warp.
- Moved the duel auto-reject on logout from map_quit to unit_free
- Corrected the mob spawn reading code so that the event-name can be up to 50 characters long (which is the actual event length) and so that it can read spaces within them, it will also strip the leading/trailing quotes if you use them so that the event is actually found on mob-death (so you can do stuff like "My NPC::OnDead" as a valid event).
- Moved the homunc inherit speed from the master from status_calc_pc to LoadEndAck, since the hom's speed matches that of the master each time the master changes maps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9173 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08 16:17:30 +00:00
skotlex
5ccc607bfe - A few reorders and type-changes in the map_session_data structure for better memory allocation of the variables. Also fixes a size conversion warning.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07 21:05:46 +00:00
skotlex
cb53caa46a - Applied FlavioJs's patch which enables colored console output for Windows systems. It also includes a config setting called "stdout_with_ansisequence" with which you can turn off the color codes (in case you are logging all output)
- Added error reporting when the max number of ground unit cells has been reached (this may be the reason why sometimes it fails to recognize when you step out of a song/dance/encore)
- Added passing the Endure effect to other devoted people. Note that the "hit count" is individual for each character, and only when it ends on the Crusader himself will that force it to end on everyone else. It also will not transfer on gvg grounds, but it does transfer in pvp.
- Fixed Reflect-Shield triggering Auto-Guard instead on devoted chars.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9168 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07 20:56:28 +00:00
skotlex
23ebb95f4d - Fixed a fake nullpo when parsing the reply to a guild alliance request.
- Fixed the position of a nullpo in guild.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9164 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07 16:39:33 +00:00
skotlex
9ef52ebac7 - Added a check to prevent casting ground skills on a target and vice-versa when said skill use packets are received. It really shouldn't be exploitable, but doing that certainly makes the server print a lot of "unknown skill used!" messages.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9163 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07 16:29:08 +00:00