1317 Commits

Author SHA1 Message Date
skotlex
bec5bce06d - Small fix in the pet_ai
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5918 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06 02:21:11 +00:00
skotlex
3c79b79483 - Fixed an error on the error-message when job_db1 doesn't has enough columns.
- Fixed undisguising not clearing the mob sprite for the disguised character.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06 01:01:13 +00:00
skotlex
bafbe708b2 - Modified the item_db and added view_types to ammo: 1 arrows, 2 dagger (venom knife), 3 bullets, 4 shells, 5 grenades, 6 shurikens, 7 kunais.
- Fixed parsing of job_db1.txt due to the MAX_WEAPON_TYPE change.
- Updated skill_require_db to specify the ammo types required for GS/NJ skills (as best as I could understand them)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5916 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06 00:02:50 +00:00
skotlex
43dac339d7 - Fixed a compilation error due to a missing semicolon...
- TK ranking kicks can't be used on sucession now (can't use any of the kick skills twice in a row without using a different one first).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 21:28:28 +00:00
skotlex
bb95eb8e36 - Modified the ammo checks so that ammo is consumed at the end of battle_calc_weapon_attack (should fix element being lost on final arrow).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 21:07:42 +00:00
Vicious
a448ea553e added missing weapon type, W_HUUMA(or kazema.. but huuma would be more.. correct)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 19:55:40 +00:00
skotlex
f3d9444348 - Added a define list for weapon types in pc.h
- Cleaned up pc_checkallowskill and moved the Gatling fever check to it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5912 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 19:27:00 +00:00
skotlex
7aa1324af3 - Cleaned up the pet_ai_hard_lootsearch function to avoid doing map_id2sd calls.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5910 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 15:05:37 +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
fa1d4e5bf8 - Fixed pc_setpos using unit_remove_map with type 0 instead of 3, which confuses clients and makes them think the character in question is still standing on the spot where it was removed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 23:52:39 +00:00
skotlex
16e8d42194 - Fixed script command mapwarp.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 22:05:14 +00:00
skotlex
cbb91afccf - SC_AUTOCOUNTER now only blocks all attacks/skills when the flag is 0 (attempt to use skill)
- Autocounter triggers are now checked against flag 1 (cast-end) rather than 0.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5893 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 20:52:31 +00:00
skotlex
a007ab9457 - Fixed a typo in battle.c (status_get_atk invoked instead of status_get_atk_) for dual wielders.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 19:20:03 +00:00
skotlex
8980b04387 - Modified Rude-Attacked behaviour so that such skills only triggers when the rude-attacked count is greater than 3.
- Added config setting slaves_inherit_mode to determine whether slaves take on their master's aggressive/passive status (defaults to yes)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 18:43:19 +00:00
skotlex
de8f8cb6f7 - Removed the flag variable from the npc_data structure. Disabled NPCs are now handled through nd->sc.option&OPTION_INVISIBLE checks. Should fix disable/enablenpc calls not working.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5889 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 18:08:16 +00:00
skotlex
ac3277f2b2 - Moved skill_counter_additional_effect calls to trigger right after skill_additional_effect (which means they trigger at the end of the attack motion for physical attacks)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5888 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 16:26:38 +00:00
skotlex
b4c3de9686 - Oops, the overflow mentioned by foobar was actually because the equippable base-jobs field was unsigned short when we now need it to be unsigned int. Fixed now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5884 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03 14:17:53 +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
be26d920ed - Fixed npc_gettimerevent_tick returning the difference since the last triggered label instead of total elapsed time for the npc-timer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5874 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 18:25:46 +00:00
skotlex
b5203bb220 - Added a missing memset on ers_alloc'ing mob loot which was making data from looted items fill in normal drop info.
- Some more work on the display of Brandish Spear...


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5871 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 17:09:16 +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
Lance
ed9f08388d - grfio.c fixed compile warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 14:10:17 +00:00
Lance
863806c1e4 - Fixed my fix on multi-map leak thanks to Buuyo^.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5865 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 13:01:35 +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
156cd602dc Typo in login.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5860 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 06:01:56 +00:00
Lance
aad6982f1e Typo fix in map.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5859 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 05:22:18 +00:00
Lance
311e06085e * Loading waterheight aliases from resnametable.txt.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5858 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02 04:09:00 +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
34eeb7cd5b - Added a check to remove exp-even-share when someone leaves a party.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 23:47:24 +00:00
skotlex
76b9ca2fc1 - Fixed an error in the layout initialization of ice-wall. Thanks to Named for pointing it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5853 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 22:47:18 +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
skotlex
86cebfbf10 - Fixes to the mob_ai routines. Prevent casting rude-attacked skills in situations that shouldn't be considered as so. Fixed mobs failing to chase after enemies when range-attacked out of their view_range.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5848 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 19:07:58 +00:00
Lance
85843bfe0f * Should not exit when you can't find an NPC file..
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5845 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 09:48:17 +00:00
Lance
63eb37dc33 typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 09:40:31 +00:00
Lance
dcc37512f0 bl.subtype check.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5843 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 09:40:09 +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
skotlex
dde6f4f5f1 - Cleaned up and fixed @where command.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5840 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 06:26:20 +00:00
Lance
26864e6c9e Asssuming only __WIN32 (VC++) doesn't have strtok_r.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5839 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 06:02:43 +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
da1e588b9a - Fixed pc_setpos sending you to a random direction when the target tile was stacked (CELL_NOSTACK mod)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5836 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 05:15:21 +00:00
skotlex
376fa9d3e7 - Fixed standing up no really making you stand up.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5835 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 03:50:19 +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
a1eabcc481 - Fixed skill_require_db loading.
- Added a column to specify the amount of ammo required for skills that require ammo.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5831 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31 18:19:10 +00:00
skotlex
ab0693cbcf - Changed the terminology from arrow to ammo for the last update.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5830 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31 17:43:24 +00:00