581 Commits

Author SHA1 Message Date
toms
e67db33d16 - Added clif_skill_fail for homunc to skill_castend_id & skill_castend_pos ('skill has failed' will may be appear 2 times)
- Fixed homunc skill 8016 not considered as homunc skill


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8386 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20 20:24:13 +00:00
skotlex
cb1a6f5bf0 - @useskill will now cause your homun to use the skill instead of you if the skill is a Homun skill and you have an active homunculus.
- Some cleanups...


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8383 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20 20:01:07 +00:00
toms
96c1fe1903 - Fixed some Homunc issues with HR servers (capping some values)
- Added @hominfo command to obtain real values (not capped ones)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8378 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20 18:54:18 +00:00
toms
a2f9e1bd0a - Fixed @homlvup bug
- Fixed AM_REST & AM_RESU consumming SP if they fail
- Fixed homunc spawning bug

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-19 21:04:17 +00:00
toms
f07bb1871a Fixed @homlvup
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8346 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-18 15:03:26 +00:00
skotlex
04d969e781 - @produce now can make any kind of equipment
- Fixed a warning on the mob_ai
- Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster and target.
- AM_REST shouldn't be checking for a range now (since it's a self skill)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8318 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-16 16:31:30 +00:00
skotlex
ee8298bb8a - Cleaned up some of the pet related @/# commands, same for some script commands.
- Moved s_pet structure from map_session_data to pet_data, this enabled the removal of a few redundant values in the pet_data structure (name, class, equip)
- Pet offensive skills who's inf value is self will be casted on the pet now (for stuff like Grand Cross)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8301 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 21:12:45 +00:00
skotlex
1d2c4f8950 - Removed @itemcheck as it was totally pointless.
- Corrected states killer/killable being easily dispellable.
- Fixed the totally wrong text messages being used for @killer/@killable related atcommands, added appropiate entries to msg_athena
- Magic and Misc attacks will now get type "flee" when they do less than 1 damage, this blocks them from causing additional status effects when they are blocked.
- Cleaned up a bit the Basilica code, it should now properly end when you walk.
- Added an unnecessary qty check when inserting cards :P
- Fixed some logs not working when you enabled all logs.
- Corrected unmute being a level 60 command by default (should be 80)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8256 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-13 06:14:27 +00:00
toms
5cdcef4080 Heard skotlex voice, changed all msg_table[] into msg_txt() in atcommand.c ;)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8201 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 12:34:03 +00:00
skotlex
0c91b56537 - Crash-protections in the mail-checking function.
- Changed a bunch of msg_table use into msg_txt in atcommand.c, there's still a lot left... am not feeling inspired to finish this >.<
- Some additional parenthesis on equipment check in pc_equipitem, seems to have fixed the mid/lower headgear-sprites not showing up.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 00:49:38 +00:00
skotlex
8157062811 - Casting Kaensin will clear out Suiton and viceversa now.
- Fixed drop-rates (@whodrops) getting duplicates when you use @reloadmobdb
- Fixed unjailing not sending characters to Prontera.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8188 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 17:55:37 +00:00
skotlex
4b49756a40 - Updated @mobinfo to display slots in the drop information.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8141 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-05 01:32:02 +00:00
skotlex
8c98388bc5 - Enabled Mastery damage on Soul Breaker again, moved adv katar mastery out of the mastery function so that it may apply to all skills except Soul Breaker.
- Changed name of the setting log_pick to log_filter since that's what it does now.
- Modified enable_logs so that instead of a 0/1 setting, you can specify which kind of events to log (so you can use a combination), see log_athena for the bitmask configuration.
- Cleaned a bit the contents of log_athena.conf


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8129 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 16:38:54 +00:00
toms
b34ef7be7c Fix a bug in atcommand_charspeed
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8100 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 15:13:43 +00:00
skotlex
34eea8ae57 - Cleaned up the last NJ update code.
- Added @ command `charspeed`
- Fixed @jailfor using MAP_PRONTERA as jail instead of MAP_JAIL
- Removed case for GS_SPREADATTACK on damage packets to see if the skill displays correctly now.
- Corrected Deluge/Volcano/V. Gale overlaps so that the placing tiles are removed, NOT the ones who were already placed.
- Made SC_SPEEDUP0 and SC_SPEEDUP1 use different icon IDs, to fix icon-confusion when both are enabled at a time.
- Mob rude-attacked count is not reset now on picking a new char (gotta investigate this further)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8096 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 14:39:38 +00:00
toms
c68d6a5717 Fixed homunculus error message
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8073 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 21:34:01 +00:00
skotlex
56c9df875c - Cleaned up some more the SC_JAILED code
- merged in atcommands jailfor, jailtime, charjailtime. Thanks to Meruru and Coltaro for the code.
- Cleaned the code of atcommnds jail and unjail
- Be warned that the code MAY contain bugs as I adjusted it to save the character's position before jailing, allowing the automatic unjailing to warp you back to the exact spot you were at before being jailed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8038 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 17:59:34 +00:00
toms
be50bd5620 Little fix on duel
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8014 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 22:41:40 +00:00
toms
35fc0dc4f3 Added possibility to restrict duel usage to same map
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8013 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 21:21:55 +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
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
9a745cdd3c - Applied Toms's suggested corrections to homun code.
- Corrected Cannibalize/Marine Sphere ignoring the selected summon spot.
- Fixed looting pets ignoring the item pick-up priority of other players.
- Should have fixed a signess warning in login txt.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-22 16:47:03 +00:00
skotlex
8c8732ede2 - Added blocking of @me when muted or in berserk status.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7822 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-22 04:04:12 +00:00
skotlex
f750c3ed73 - Small bug fixes found during merging to stable process, includes correct HP scaling when hp-meter is enabled and max hp is above SHRT_MAX
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7802 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-21 15:46:36 +00:00
skotlex
ce467089e1 - corrected @homlevel up and one entry in the homun exp table as reported on the forums by Albator.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 17:31:39 +00:00
skotlex
478e0bc736 - Should have fixed @refine applying multiple times to equipment that uses multiple equip slots.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 13:56:37 +00:00
skotlex
094db48cae - Added atcommand @partyoption, lets you alter the party item-distribution type on the go. Usage is "@partyoption <pickup share> <item distribution>", where both arguments can be 0/1, yes/no, etc.
- Updated @changeleader and @partyoption to use msg_Athena entries.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 21:12:35 +00:00
skotlex
97b00a11ad - Added a proper check to make aggressive mobs never override homun targets regardless of distance.
- Removed a bunch of homun-related variables that are not needed at all. The alive condition is removed, now the code checks for the hp value to know if the homun is alive or not.
- Cleaned up a bit the skill-id function, homun skill checks (such as delay and skill-lv learned) should be correct now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 13:25:21 +00:00
skotlex
6abed14141 - Updated mob_db.sql to current mob_db.txt data.
- Some cleaning on chrif.c
- The char-server will allow off-line character saves when said char is tagged for final-save (this is the scenario when the char-map reconnect).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 02:41:10 +00:00
Euph
377f6c281d atcommand_follow is now more verbose.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7711 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-17 07:49:28 +00:00
DracoRPG
15dd140846 Orn's and Albator's Homunculus system, finally, YAY!!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7706 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-17 00:15:33 +00:00
skotlex
d984baa013 - Fixed @storeall and @charstoreall failing when the target character already had the storage open.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7656 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-13 16:33:44 +00:00
skotlex
305fa67812 - Made @monsterignore be an universal ignore. Means you cannot be targetted as an enemy by anything. Also added alias "@battleignore" which does the same as monsterignore.
- Fixed magic power setting your min matk as max-matk.
- Modified the packets involved in @fakename in hopes it'll refresh correctly on nearby clients now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 20:55:54 +00:00
skotlex
cd8587dc4d - Fixed clif_parse not checking for func_parse before sending data to the connected clients. This in turn required various code-rewrites in:
- duel related messaging functions (added clif targets DUEL/DUEL_WOS).
- intif whisper to gm function
- day/night timers
- Rewrote the parse_console function to stop allocating/deallocating memory on every call.
- Modified chrif_charselectreq to receive the player's ip among the data.
- Added function clif_disp_message, which is the same as clif_disp_onlyself, except you can specify the targets (it sends a guild-chat packet)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7617 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 20:16:55 +00:00
skotlex
a6c3f3a1fc - Coded @reset.
- Reenabled @changesex
- Added function pet_create_egg which handles creating pet eggs correctly (when passed item id is indeed a valid petegg). Applied this on @createitem and getitem.
- Cleaned up code of @item
- Added define UNKNOWN_ITEM_ID (512 = apple)
- Added IT_* enumation item_Types to identify said data from items.
- Cleaned up the itemdb_isequip functions. itemdb_isequip will now return if the item is equipable by players, itemdb_isstackable returns if the item can be stacked, and itemdb_isidentified returns if the item should drop identified.
- Added defines CARD0_PET/CARD0_FORGE/CARD0_CREATED to identify if a given item has "invalid" cards, added define function itemdb_isspecial to simplify this check.
- Removed itemdb.c considering item ids above 20000 as invalid.
- Cleaned up script commands getitem and card-counting related ones. 
- Cleaned up a bit more pc_isequip


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 16:32:37 +00:00
skotlex
104eeac167 - Fixed mobinfo displaying exp as signed ints rather than unsigned.
- Added status_check_visibility to check if an object is within range of view of another. Nothing more, nothing less. It's used by unit movement to check whether you can continue chasing your target or not when the "chase target" directive is given.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7582 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08 17:49:26 +00:00
skotlex
31832cfdc7 - Added EQP_/EQI_ constants in pc.h to identify equip position and equip indexes, makes equipping related code much easier to read.
- Also cleaned up pc_equipitem. When dual wielding or equipping accessories, if the client actually specifies one of the two positions, it will be taken into account.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 18:47:11 +00:00
skotlex
bfebad480a - Updated @refine to take account of MAX_REFINE, thanks to Omega... GM Designer.
- Also optimized the @refine loop for better performance.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7537 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 14:11:12 +00:00
skotlex
07af745abf - Cleaned up a bit the code for @item
- Fixed character/storage being sent to be saved TWICE when you logged out while the storage is opened.
- Added save_settings map config. Specifies after which events do characters get saved (defaults to all): 1 - Trade successful, 2 - Vending transaction, 4 - Closing storage/guild storage, 8 - hatching a pet.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 16:09:13 +00:00
skotlex
5407f6eed1 - Corrected the element of hunter traps.
- Deadly Poison now also reduces def2 by 25%
- Changed skill_setmapcell to use skill splash rather than range.
- Cleaned up a bit skill_moonlit, now it knocks back the correct amount of cells.
- Fixed @mi displaying always 0 instead of the mob's class.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27 03:49:08 +00:00
skotlex
3296652856 - Fixed @autoloot being off by 0.01% when entering a manual value.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7303 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 00:04:10 +00:00
skotlex
50134b5191 - Corrected autoloot so that you can specify rate with decimal precision ("@autoloot 0.01" should work)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7294 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-22 14:14:41 +00:00
Lance
59d0fde84a * [Added]:
- DNS (WAN) sync for those pesky disconnections (dynamic ip renewal). 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-21 10:55:26 +00:00
skotlex
24159ab464 - Corrected @speed to alter your base speed instead of battle one. Means the change remains for much longer (until status_calc_pc is invoked, which could be due to equipping/unequipping stuff)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:59:22 +00:00
skotlex
fcbec4d4e6 - Updated clif_disp_onlyself to not use dynamic memory and write directly to the player's buffer.
- Updated @noask to also tell the rejected what he has just rejected (added msg_athena entries for each of the different requests)
- Since noask already does a player lookup, updated the corresponding parsing functions to take the player rather than the player id (prevents double lookups)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 03:54:35 +00:00
skotlex
4597fbab18 - @heal no longer displays a healing animation. Fixes the client believing you couldn't be healed more than 32K.
- Now you can use any skills (except encore/dancing ones) while under Longing for Freeding.
- Now you can use any skills while under Marionette Control.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7111 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-12 21:34:38 +00:00
skotlex
0158ab793e - Fixed npc_checknear's distance check returning the opposite of what it should (false when the range is correct and viceversa)
- SL_STIN/SL_STUN have dex-reducable casting times now.
- Added a warning on item loading when an item is of equippable type but has no equippable position.
- Turning an alliance to an opposition won't work now during WoE
- Slaves can summon other mobs now. The only ones who can't do this are player summoned mobs.
- Merged the following functions for faster processing of items:
  clif_storageitemlist + clif_storageequiplist = clif_storagelist
  clif_guildstorageitemlist + clif_guildstorageequiplist = clif_guildstoragelist
  clif_itemlist + clif_equiplist = clif_inventorylist
- Increased max knockback value support to 25.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7109 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-12 21:14:28 +00:00
skotlex
55df062534 - Added structure party_data and party_member_data to the map server to hold party-specific required information about parties including Monk/TK/SG/SN states and party member count.
- party Hp updates are no longer done each time the Hp is modified, but together with the party xy timer.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-10 03:58:15 +00:00
skotlex
2e5660ec68 - Fixed @mapinfo displaying incorrectly maps with nosave which send you back to your last savepoint.
- Moved guild_exp_rate from a mapserver battle config setting to a char server config. It no longer modifies the total taxed exp as seen on the guild information window, but directly modifies the exp that the guild earns.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 15:12:53 +00:00
skotlex
668bd449ac - Fixed @skilltree printing out Unknown job for most targets used.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7056 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-08 21:00:05 +00:00