351 Commits

Author SHA1 Message Date
skotlex
fc449ba30f - Fixed the compilation error. Gee, how did that slipped by...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 14:43:55 +00:00
skotlex
1a3d6004c5 - Corrected the hit value of the TK kicks (from single hit "6" to multi-hit "8")
- All kicks do 3 hits now.
- Added battle config hide_woe_damage which hides damage on woe maps packet-wise.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6311 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 13:31:29 +00:00
skotlex
af55aa1e6e - Updated item_db.sql to current.
- Some small code-cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 23:01:55 +00:00
skotlex
d44188210b - Renamed skill_clear_element_field to skill_clear_group, it accepts a flag to determine what to erase. &1 for elemental fields, &2 for traps. Also rewrote how it works to prevent missing elements (since each time an element is erased, the array contents shift)
- Added battle config traps_setting to determine how traps should behave. With &1 traps are invisible if you didn't see them get set up. With &2 traps will be removed after changing maps. The default is 2.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 23:58:19 +00:00
skotlex
cb00c164f7 - Idle skills won't trigger while the mob is walking.
- Idle skills will now trigger each IDLE_SKILL_INTERVAL iterations (10 currently)
- Added support for walk packet 0x22c (disabled currently as it's non-walk packet equivalent is yet missing), it will be used when PACKETVER is set to 7 or above.
- Normal walking will now also trigger mob skills (due to the walk skill condition)
- Updated mob_skill_db: all idle and walk skills had their rate go up x10.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 02:45:17 +00:00
skotlex
41a6c38e23 - Added SC_KEEPING/SC_BARRIER to calc_flag in status_change_end
- Added Option constants for Carts, fixed OPTION_FLYING (it conflicts with OPTION_XMAS?)
- Updated clif.c to check for OPTION_WEDDING|OPTION_XMAS instead of view class to block attacks and skill usage.
- Removed struct pc_base_job and functions pc_calc_base_job/pc_calc_base_job2 which are no longer used anywhere (were long ago deprecated infavor of the new jobid system)
- Cleaned up change-cart code.
- Modified SC_XMAS to not change your view anymore and only set the proper option value (OPTION_XMAS)
- Cleaned up the code regarding char_gm reading.
- Changed the option field to unsigned short to make room for the higher values.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-22 05:21:24 +00:00
skotlex
ffce65e7bf - Raised the buffer size in clif_MainChatMessage to 200, removed the message length in atcommand_main.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6197 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 19:42:54 +00:00
skotlex
d6cb791e3c - Fixed buffer overflow in clif_MainChatMessage. It now prints a Debug message with the offending line.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 19:30:24 +00:00
skotlex
63eec80717 - Added support for n to specify minutes to @charban.
- Fixed a logic typo on the way dummy_npc_id was defined.
- Added state.trading to specify when a trading has started. Now you should be able to walk around until the trade is either rejected or started.
- Armor defense is no longer reduced by the amount of characters targetting you.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 16:04:47 +00:00
skotlex
8c6c2841f8 - Added back the "you can't walk delay while attacking" to unit_attack_timer, now when you want to walk during your attack animation, you will only stop attacking, you will have to click again to move.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 00:08:46 +00:00
skotlex
6b9fd3cf04 - Removed message 592 from trade.c
- Removed mapflag nopvp
- Added support for disabling mapflags on a mapflag line:
  comodo.gat	mapflag	nomemo <- turns on nomemo mapflag
  comodo.gat	mapflag	nomemo	off <- turns off nomemo mapflag
- Cleaned up and optimized the restricted/zones mapflag. Restricted cards will just not work in disallowed maps rather than blocking the compounded equipement from being used.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 16:01:26 +00:00
Lance
c0b1eb7787 * Shinomori's method (kinda) of remote script execution with interaction.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6151 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 11:40:36 +00:00
Vicious
2ee927ae9b cleaned the invisible fix a bit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 03:52:18 +00:00
Vicious
5dbbb0f42d better way to fix invisible npc! :D
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6146 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 03:38:19 +00:00
skotlex
cbea996edc - Fixed pet being incorrectly removed when it had intimacy 0.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6139 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 18:44:59 +00:00
Lance
1be152193d * Clearing the dummy npc after fooling the client.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6128 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 09:08:16 +00:00
Lance
78bf3ea131 Skot please fix the remaining code by removing the fake npc after sending the input.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6116 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:45:25 +00:00
Lance
44c387b2a7 Initialization in send_fake_npc. Still needs fixing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6115 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:36:16 +00:00
Lance
53614089eb Please fix my packets :S
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6113 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:32:12 +00:00
Lance
88cf55de08 * Sending fake npc for inputs and menus for NPC without map coordinates.
* Fixed npc.h compiler warnings.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6112 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 14:57:54 +00:00
Lance
458f135cd7 * Temperory fixed compiler warnings/errors. Please compile before commiting. [Lance]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 02:40:46 +00:00
skotlex
5b9305fe41 - Removed the ->prev != NULL checks in skill_attack due to the fact that the code should check elsewhere how it should behave (eg: if traps are not cleared on death, stepping on one afterwards SHOULD cause damage)
- Removed use of packet 0x1c9 for skill_unit display, except for Graffiti (which is the only unit which requires the much larger packet)
- clif_getareachar_skillunit will sent the unit_id of UNT_ATTACK_SKILLS for traps (this is to prevent them from displaying on the client)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-15 19:17:47 +00:00
skotlex
de415edfde - Fixed being able to do all the stuff you shouldn't be able to during the petrifying state.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-14 15:58:56 +00:00
skotlex
a489ed4364 - Changed clif_damage/clif_skill_damage to return the walk-delay based on the passed on damage-delay.
- Changed battle_damage to accept the walk-delay as well.
- Removed the walk-delay timers from unit.c, merged them to battle_delay_damage.
- Traps will not be displayed when you walk within their range.
- Added HT_DETECTING revealing traps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 23:58:55 +00:00
skotlex
add318fc2f - Some cleanup of clif_parseloadendack, fixed guild-member list being sent on all map-changes.
- Removed the hardcoded removal of characters who spawn in a castle. All castle maps got the flag nosave now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5909 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 14:16:47 +00:00
skotlex
491228d9cc - Added inter config connection_ping_interval which specifies interval in hours at which mysql_ping's must be done on all connection handles to keep the mysql connection alive. Defaults to 0 (disabled)
- Removed login sql handle from the map server as it isn't used for anything.
- Made the login sql handle on the char-sql server be used only when gm_read_method 1 is enabled.
- Small fixes to npc_enable, added BL_NPC handling on status_get_sc.
- Added a path_search check in map_random_dir, so that the random direction picked up doesn't goes through walls and all that.
- Some changes to close-confine, status start will fail when the source is not found or it doesn't has sc-data.
- pc_setoption no longer changes the character's class when mounting/dismounting, it only changes the view-class.
- The peco-crash-fix from the char servers is still needed. This packet must be wrong! We likely need to sniff it.
- Modified the char-txt server to modify the class of mounted characters to their non-mounted version. Added an upgrade_svn file to handle the class update on the sql tables.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 00:23:18 +00:00
skotlex
cabad21166 - Cleaned up (fixed?) a possible overflow in pc_isUseitem, thanks to foobar.
- When you have the wrong ammo-type equipped the skill-failed message is now "skill can't be used with this weapon", which is less misleading than "please equip arrows first".
- Corrected pet-equipment display (I originally assumed they went in the shield view-position, when they actually go in the head-bottom position).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5883 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 14:13:13 +00:00
skotlex
eb6eaff618 - Added preventing sending packet clif_clearchar_id when the character in question is invisible.
- Added packet 0x7c in clif_spawn which was supposed to be used for non-players.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5869 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 16:36:07 +00:00
skotlex
8f76fb4c7b - Forgot to set state.night = 1 in the night timer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5864 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 08:40:07 +00:00
skotlex
e7a2020fc5 - Moved the night icon invocation to clif_parse_LoadEndAck
- Changed function clif_set01e1 to clif_spiritball_single
- Removed clif_spawnpc as it wasn't really needed.
- Added clif_weather_check to handle the weather changes checks.
- Merged Larry's fix of using a timer to get rid of the glow-issue when you login to night-enabled map.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 08:27:14 +00:00
Lance
715da93848 * Workround the warnings for clif.c (what to do? the original codes are ugly.. passing values as pointers omgwtfbbq).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5856 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 00:30:24 +00:00
skotlex
d336815c66 - Added function clif_changetraplook to handle changing the appearance of traps as they are triggered (rather than using clif_changelook which is meant for view_data objects)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5852 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 22:42:54 +00:00
skotlex
27e01b2442 - Fixed berserk not raising your HP to your new cap.
- Fixed ground-skills not displaying damage done.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5851 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 22:21:26 +00:00
skotlex
b11e202bc2 - Fixed a few functions sending a negative ID for disguised characters (such as clif_specialeffect) which very likely produced client crashes.
- A small cleanup on npc-whispering which could fix a reported crash on it.
- Removed the gm-whispering of the charnameack hack notice since it isn't perfected yet.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5850 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 20:55:08 +00:00
Lance
008b473603 Fixed the dynamic shop system memory allocation and id_db problem. Added sample script.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5842 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 09:37:50 +00:00
Lance
e051037bce * Dynamic shops support with script callback. (needs testing)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5841 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 07:29:54 +00:00
Lance
f2e352bb0f * Fixed compiler warnings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 05:30:12 +00:00
skotlex
e9c44b50c8 - Added structure view_data to handle sprite information for all characters (equipment, weapons, hair, dyes, etc). Unified a bunch of clif functions now that you only need to handle the view_data (so instead of clif_spawn[pc/mob/npc/pet] you just have clif_spawn)
- Fixed the clif_change_class packet (it should check for non players classes, not a class above MAX_PC_CLASS), it fixes morphing enemies.
- Rewrote the way cloth dye packets are resent to optimize bandwidth usage.
- Fixed the npc_item_flag thing (enable_items/disable_items script command)
- Rewrote the disguise implementation to be bandwidth friendly.
- Modified the hide options to change your class to INVISIBLE_CLASS, since such classes don't even get their view packets sent around.
- Rewrote several clif functions to adapt to the new view_data class;
- Added class 139 to npcdb_checkid which was required by some npcs in the swordman quest? o.O


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5833 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 02:23:56 +00:00
Lance
343deba71c * April fool! Improved soundeffectall script command. (No, this is not a lie)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5832 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 02:11:23 +00:00
skotlex
e19503185b - Fixed an infinite recursion in the Wedding Recall skills.
- UNT_ATTACK_SKILLS unit packets won't be sent to the client as they are supposed to be invisible anyway.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31 15:53:36 +00:00
Lance
140e77689e * Should fix a bug in GM stealth mode (@hide).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5823 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31 09:21:54 +00:00
skotlex
39d33a2f80 - the auth function in login.c won't jstrescapecpy passwords that were encrypted.
- Moved the Endure and Gravitation sc ends to battle_damage from pc_damage.
- Endure level 11 and above are now considered infinite-endure.
- Set the minimum pet hungry delay to 10
- modified function skill_delayfix to only receive skill/lv, actual time is now always acquired from skill_get_delay. It also now will never return a value below min_skill_delay_limit.
- Modified brandish spear so you won't see the skill-animation for every targetted mob. Also cleaned it up to use map_foreachincell calls.
- splitted skill_cast_fix into skill_cast_fix and skill_cast_fix_sc, the first does cast adjustments based on dex and server settings, the later only based on sc changes. Mobs use the later while everyone else use the former (which invokes the later when appropiate)
- Added the Steel Body icon to auto-berserk.
- Now you can't cast auto-counter while the previous one is active.
- For the duration of Berserk, infinite-endure is activated.
- Added Veider's suggestion to do a hack-report when players request the name of an invisible/cloaked character.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-30 15:50:54 +00:00
Lance
6becc9dafb * Modified clif_getareachar_pc to hide hidden GMs from normal players (players with GM level > 0 still able to view) by NOT sending the coordinates.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-28 09:54:27 +00:00
skotlex
5d8b522d76 - Small fix that should help on multi-map servers when characters are swapping between servers too quickly
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-28 03:11:08 +00:00
skotlex
17c15fc2bc - HW_GANBANTEIN now also removes traps.
- PF_DOUBLECASTING takes effect amotion time after the initial cast instead of amotion*div
- SG_KNOWLEDGE now lasts time1 after you quit a map before it clears out (defaults to 10 mins currently)
- Modified Intravision to modify the status-change packet to specify SI_INTRAVISION instead of cloaking/hiding/chasewalk.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27 16:14:00 +00:00
skotlex
876cc3f814 - Pet catching now uses the menuskill variables to prevent item usage from disrupting the catch process.
- Added Safetywall to the list not blocked by Dispell.
- Added some include limits.h required by window compiles.
- Corrected Wedding rings being trade-able. 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27 14:54:40 +00:00
Lance
5d286a9b08 * GCC on Cygwin still complaining, resorted to including limits.h in malloc.h
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27 13:33:11 +00:00
Lance
14fe8c03e8 * Refixed the fix with a constant list for Win32 users - limits.h (imported from MSVC)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27 13:23:53 +00:00
skotlex
f2d2edd1cd - Changed status_point/skill_point to unsigned short. Adjusted the code as necessary to prevent overflows.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27 01:24:34 +00:00
skotlex
cafe894ecc - Fixed a pair of "Conditional jump or move depends on uninitialised value(s)", thanks Valgrind!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5747 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-25 21:59:12 +00:00