1657 Commits

Author SHA1 Message Date
skotlex
c042d6153c - Power Up and Agi Up now increase Hit/Flee by 20%/lv
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6629 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-17 13:46:05 +00:00
reddozen
0277ebc706 Removed AtCommand_Monster and replaced it with AtCommand_Spawn for Skots [Reddozen]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-17 01:03:22 +00:00
skotlex
4fcac3b2f9 - Modified "hide woe damage" to send the number of hits rather than 1 as damage Because when the damage is less than the number of hits, the client will display MISS.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6624 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-16 18:51:20 +00:00
skotlex
99dbd259be - Added a check to map_searchfreecell to handle the case when no ranges are specified (returns the center tile).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6622 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-16 14:54:37 +00:00
skotlex
1bac98be0c - Fire Pillar will now do 200%MATK damage per hit when level is >10.
- Blood Drain always hits now.
- Fixed Mob Area Skills not updating their use-time (rendering their skill delay useless)
- Search free cell will now skip picking the center-tile as target location. Will prevent slaves from walking on top of their master, or mobs placing stuff right under themselves with the "around" target conditions.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6621 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-16 14:42:54 +00:00
skotlex
1b1249c5d8 - When reading mapflags, when a map is set to be pvp or gvg, the other will be turned off (disables pvp mapflags in gvg maps for pk-servers)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6610 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 21:09:45 +00:00
skotlex
c832510453 - Firepillar's damage per hit is now 100% MATK (rather than 20%) when the skill level is above 10.
- Sorted out the item_data structure, getiteminfo should work correctly now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6608 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 20:24:37 +00:00
skotlex
96c03caf7e - Soul Drain will now show the SP drained regardless of drain display settings.
- SC_COMBO state will now end in skill_attack rather than skill_check_condition (as it is required there to apply damage bonuses based on combo-casted skills)
- Spirit skills now have 500ms delay.
- KA skills can now be casted on other Soul Linkers as well without the Spirit requirement.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6607 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 19:30:35 +00:00
skotlex
b2b800212c - Fixed the nocast flag 2 (not usable in pvp) returning true in pk-mode servers.
- When removing a castle's owning guild, the char servers will erase the guardian data now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6602 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 18:35:18 +00:00
skotlex
aed41cb881 - Changed the behaviour of immobile mobs when they can't chase their target. Rather than using a longrange skill and then unlocking, they will use an attack/angry state skill and then unlock.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 17:10:41 +00:00
skotlex
2c902be399 - Removed Lance's checks in clif.c to prevent sending packets when a player is in OPTION_INVISIBLE mode. Now pc_disguise won't change your viewclass when you diguise while hiding. The disguise should "show up" when you uncloak, instead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6597 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 15:22:02 +00:00
skotlex
eb63227578 - Fixed clif_GlobalMessage being the exact same function as clif_message (the fiirst should send to ALL_CLIENT and the later should send to AREA_CHAT_WOS). Should fix globalmes script command.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6596 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 14:43:22 +00:00
skotlex
125e05d3cd - Added SC_BLADESTOP to the switch listing in status_change_start
- Characters in vending are now always considered "idle" if the idle_no_share setting is active.
- Corrected 10 Geminis spawning in Lhz1 rather than 2.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 14:15:04 +00:00
Lance
6fa0186000 * Players with OPTION_INVISIBLE should not be sent to clients.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6594 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 10:19:14 +00:00
Lance
38703db7c9 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6593 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-05-15 09:55:50 +00:00
Lance
f5631c0f3f * Added NPC event deprecated warnings to ease debugging old scripts.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6592 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 09:54:51 +00:00
Lance
164ac7c02a * Supplied fake NPC ID in sd->npc_id for item scripts.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6590 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 09:10:56 +00:00
Lance
dd4a935ce2 @_@ this is getting more confusing...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6586 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-14 13:08:26 +00:00
Lance
05736737c7 * Bugfix on fake npc
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6585 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-14 12:57:50 +00:00
blackhole89
96bf1fd79e data.x=x; data.y=y was not done at all except when using random coordinates. dfhsdfhsdfh
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-14 11:01:13 +00:00
skotlex
a7301992bc - Reverted again the change that stuns the caster on Ske, Ska, Swoo when the target is a nonplayer (rather than always)
- Modified mob_spawn_once so that coordinates -1,-1 are "random around the player" while 0,0 are random around the whole map (regardless of whether there's a player attached or not)
- Knockback will no longer work on traps during woe.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6566 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-12 21:16:44 +00:00
skotlex
46d5c713cd - Updated cast times of Kaupe and Kaahi.
- Some small code cleanups.
- Sma has cast-dex reducable now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-12 16:30:51 +00:00
skotlex
0b816774d5 - NPC_POWERUP and NPC_AGIUP now cause a increase in hit/flee (respectively) of 40% per level.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6558 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11 20:58:45 +00:00
skotlex
a0bf90e52c - Changed a bit the MAX_ZENY checks in trade.c to prevent overflows.
- Rewrote npc_selllist for a more proper-clean implementation.
- Increased NPC_POWERUP's dex bonus to +25*lv
- Moved TK_DOWNKICK's stun time from time to time2
- Added TK_TURNKICK's stun to splash-pushed mobs. Duration is 2secs (time2)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11 20:03:22 +00:00
skotlex
1425da7fa6 - Merged the code for Ska, Ske, Swoo. Swoo stun duration is now 10 secs (reducable) if you target a mob that already has Swoo active.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6555 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11 14:14:32 +00:00
skotlex
64bd8b1dbe - Added the missing semi-comma from the upgrade_svn6533.sql file. Thanks to Tanaous
- Added back the missing code that substracts arrows when normal-attacking.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6554 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11 13:38:30 +00:00
skotlex
aa09f1ddd5 - Fixed compile errors in adduser.c and ladmin.c under win platforms.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 17:57:57 +00:00
skotlex
03ac2b977e - Changed the state of Asura back to explosionspirits, added a hardcoded move_enable check when invoking Asura and NOT while in BladeStop or a Combo.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6552 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 16:18:16 +00:00
skotlex
9ddea7953a - Moved the OPTION defines from map.h to status.h (where they belong)
- Added back SC_XMAS to status.c (how was it... lost?)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 14:38:12 +00:00
skotlex
ae5d5020c0 - Changed wedding costumes to use setoption rather than changebase.
- Modified setoption so that flag 1 or no flag adds an option, and flag 0 removes it.
- Updated script_commands with the new behaviour.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 13:43:00 +00:00
Zido
b467a6bfbc Finished DNSBL, Although untested, It's simple code and should work fine.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6543 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 05:38:27 +00:00
skotlex
e2eadf7bb2 - Rewrote/cleaned up trade.c for a more clean trading implementation.
- Added @request commands, sends a request to all connected GMs of lowest_gm_level or above as a whisper message. Defaults to gm level 20 users.
- Made SC_COMBO status start delay attackabletime and walkdelay by sc's duration regardless of skill used (previously it was only for TK kicks, now it's for both those and Monk combos)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6542 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 04:04:36 +00:00
skotlex
0b8b0ffa96 - Modified @commands to use Meruru's code which is faster and does a fair attempt at tabulating the commands presented.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 00:37:24 +00:00
skotlex
fd4f9d05ef - Updated SKA to return a random value between 0 and 99 each time status_get_def is invoked.
- Updated Making Arrow to not include unidentified items in the list.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6540 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 23:04:56 +00:00
skotlex
61b786eceb - Reduced drop slots from 15 to 10.
- Updated mob_db.sql with the current data.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 22:57:03 +00:00
skotlex
73b98ea723 - Updated setoption script command to receive a second (optional) argument flag. If the flag is 1, the option is added to what the player currently has; likewise using flag 2 removes only that option. No flag (or any other value) is the older behaviour of removing all other options and setting specificly what is passed.
- Updated script_commands information for setoption due to this change.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 21:09:53 +00:00
skotlex
20ebb32eb0 - Small fix in npc-created chat rooms to properly include the terminating 0 on the chat's event.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6537 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 20:23:53 +00:00
skotlex
9df8532910 - Fixed Fog of Wall's symmetry in respect to Misc attacks, they no longer get reduced by 50% regardless of who is standing on the fog.
- monster_ai&2 will now trigger the rude-attacked skill when the mob can't move and the attacker is out of it's attack range.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6536 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 20:11:47 +00:00
skotlex
483d1d7418 - Added missing icon for Joint Beat
- Mob-search functions will now skip enemies with no exp/job_exp.
- Treasure chests will now be excluded from the mob-drop listings (@whodrops)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6534 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 19:43:43 +00:00
skotlex
26a517cd08 - Fix on pc_skill which fixes overlapping when one gets more than one bonus for the same skill.
- Updated main.sql's loginlog table structure.
- Added svn_update6533.sql to update the loginlog structure as suggested by theultramage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6533 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 19:28:58 +00:00
skotlex
24e26035ff - Cleaned up somewhat the implementation of BladeStop.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 19:02:47 +00:00
skotlex
5e73485603 - Fixed the head_bottom (pet-armor) position in packet 0x22c when crafted for non-players.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6530 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 18:28:10 +00:00
skotlex
05667b0fa9 - Script commands sc_start, sc_start2 and sc_start4 will now start regardless of sc defense of the target player (that is, they cannot be avoided)
- Fixed a possible counter overflow in attacked_count, changed the var size to unsigned char since the code can handle the overflow now.
- Multiple targets again reduces armor defense, as reported by Tharis.
- Increased dex increase of NPC_POWERUP to +20 per level.
- Fog of Wall's -50 hit reduction is now only for ranged attacks.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6528 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 17:08:09 +00:00
skotlex
ff08d639d8 - Reverted the change that was making ES skills stun the caster always.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6523 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 00:34:33 +00:00
skotlex
e63cc72bd7 - Removed the fixpos packet sending when damaged. Aegis sends no such packet.
- Fixed warp-portal being unusable if it was invoked through an item script.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6522 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 23:28:03 +00:00
skotlex
e78ae404f9 - ES magic will now put the caster on stun for 0.5 secs regardless of whether the skill-target is a mob or not.
- Added function clif_party_join_info which sends packet 0x1e9 each time a party-member joins. This packet (as redundant info as it has) should also contain the field for "adoptability", but that needs to be coded in yet.
- Added clif_ParseAdoptRequest which does the basic adoption handling. More checks and the reply packets still need to be coded in.
- Happy State and TK stances won't dispel on death now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6521 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 20:53:46 +00:00
skotlex
3dc2f37e5f - Cleaned up combo-skill implementation, SC_COMBO is automatically ended in skill_check_condition now.
- Modified TK-ranker infinite combos to behave as described by AuronX (it could use some optimization, since as it currently stands, it invokes the pc_istop10fame function twice per skill invocation).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6520 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 19:05:08 +00:00
skotlex
3d666eeb94 - Corrected Stun Duration for Meteor assault
- Made all Soul Link Spirit skills not be castable on self.
- Changed rate of NPC status effect skills to 50+10*lv% base chance (guessed)
- Changed max level of NPC status effects to 5


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6519 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 18:11:03 +00:00
skotlex
139b098c54 - Increased max number of tries to find a random spot in maps to 1000 since some maps have so many non-walkable tiles it's hard to find one in just 100 tries.
- Reduced Stun duration of multiple skills to 3 secs. Skills affected: Meteor Storm, Land Mine, Bash (fatal blow), Throw Stone, NPC_LICK, Raid, shield Charge, Cart Termination.
- status_set_viewdata will remove the Wedding Option status when you set a class that is not wedding. 
- Removed the Job_Novice range check in pcdb_checkid since it's causing warnings when checking versus vd->class_ (and when will we use a negative value class anyway?)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 17:33:24 +00:00
skotlex
aae1ae1832 - Fixed compilation error.
- idletime will now be updated on attack-request, not on sit/standup
- Party members sitting will no longer be considered idle.
- hide_gvg_damage will now send 1 instead of -1 as damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 16:19:02 +00:00