1937 Commits

Author SHA1 Message Date
Lance
46c0cbffff * Removed unreferenced local variable in pc.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6371 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 13:42:12 +00:00
Lance
2fc07bb1c8 * Reverted npc_checknear to exclude check for class_ -1.
* Removed npc_checknear in npc_buysellsel, npc_selllist and npc_buylist as enough preventive measures of hacking are already implemented.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 13:25:12 +00:00
Lupus
687b2210a7 Updated STEAL skill (WIP), added a battle config option: 'skill_steal_max_tries' to set max number of stealing tries. It could help to fix stealing exploit on mobs with few drops
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6367 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 11:16:21 +00:00
skotlex
2dc08e9bda - Added another missing prev/next = NULL setting in chat.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 07:39:59 +00:00
skotlex
54e4cd9afc - Added support for packet 0x229 (clif_changeoption).
- Bumped up PACKETVER to 7 to enable use of packets 0x229 and 0x22c
- Small cleanup on the calculation in the skill tree regarding spirit skills.
- Added missing next/prev initialization in chat-creation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6359 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 07:30:19 +00:00
Lance
b0698104c3 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6357 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-04-29 04:17:17 +00:00
skotlex
552bc8752c - Clones can't be class-changed now
- Readded the class == -1 distance check in npc_checknear
- Replaced check sd->trade_partner for sd->state.trading in clif.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6356 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:13:21 +00:00
Lance
020b35d68a * Using malloc for memory allocations that doesn't need to be pre-initialized.
* Eliminated initializations for pointers returned by calloc.
* Moved grfio_final to do_init since it's not used after server boot.
* Optimized scripts to return CONSTSTR instead of allocating memory just to return a constant string. Some buildin functions still need work. 
* Disabled graph since it doesn't work yet.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:00:19 +00:00
skotlex
38243e373c - Modified the mob_db structure. The mvp related columns were moved to before the drops, amount of drops increased from 10 to 15.
- Updated sql-files/mob_db.sql to latest.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6354 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 00:34:36 +00:00
skotlex
c791cc651f - Modified HP conversion so that it fails when you don't have enough Hp. Also updated it to enable casting on "someone else" (effect: target loses Hp and gains Sp based on the max HP of the caster, will someone ever use this? who knows, but it's nice to have :P)
- Cleaned up Strip skills so that the skill animation will only show when something was stripped.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6349 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 17:27:53 +00:00
skotlex
f8db64c952 - Added constant MAX_MOB_DROP to specify the amount of normal drops a mob has. The mob_db reading code will automatically parse the file according to the number of drops expected (the Mexp/Mper and MVP item rewards must still be after the normal drops). Set to 10 currently.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 15:53:03 +00:00
skotlex
1b38364cab - Storm Kick's range increased to 2.
- Mobinfo's drop list will use jName rather than Name for drop names.
- Some cleaning of the ASC_BREAKER code in skill_attack
- Modified skill_attack so that all skills with amotion get their damage delayed (should fix mob walk-teleport issues)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6346 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 15:20:28 +00:00
skotlex
0f3de92a52 - Added function stristr to strlib.c, used by mob.c and item_db.c for case-insensitive seeks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 14:36:55 +00:00
skotlex
6469df410d - Removed the sending of the online guild list when you log-on, may fix the "getting stuck" problem.
- Added battle config default_skill_delay. Specifies the default skill delay for most skills, it is also applied as a walkdelay (total skill walkdelay is default_skill_delay + that skill's can't walk delay)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 13:58:59 +00:00
celest
63a226a4a0 Rearrange makefile so dependencies won't get overwritten by 'make depend'
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 03:27:28 +00:00
skotlex
4ded556eb0 - skill_castend_id and skill_castend_pos will trigger unit_stop_walking with flag 1 (fix pos) rather than none. Should fix some skills making you appear moving while doing them.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6336 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 03:07:59 +00:00
skotlex
e967ccf396 - Modified clif_skill_nodamage to allow for a NULL source. This is to simplify code related to AL_HEAL/MG_RECOVERY effects where someone shows a healing value, but there's no "caster" in sight (Pitcher skills, Blood Drain, Kaahi)
- Updated Kaahi to use clif_skill_nodamage to display amount healed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 02:41:54 +00:00
skotlex
ebf3c20d6b - Added unlocking ud.target on mob_unlocktarget, fixes mobs chasing you around while cloaked.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6333 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 00:03:26 +00:00
skotlex
1e0a083910 - Changed the default rate of clone mob skills to 5% modified by mob_skill_rate setting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6332 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 23:07:45 +00:00
skotlex
7a07d3c6ec - Applied some changes in unit.c to make mobs pick chase paths as they should.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6330 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 22:42:31 +00:00
skotlex
a5e5db6539 - unit_remove_map will reset attackable-time, canact and canwalk delays.
- Added a timer in clif.c so that walk requests that are done while your cannot move duration will be delayed and processed afterwards (as long as the walk delay remaining is less than 2000 ms)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6329 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 21:00:39 +00:00
skotlex
38a15cc4e1 - Fixed compilation error/warning on script command setbattleflag.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6323 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 18:27:43 +00:00
skotlex
234ac1fddc - Some changes in the slave skill conditions. All their skills are triggered at a 10% chance now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6322 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 16:55:14 +00:00
skotlex
28a65510a3 - Changed in the behaviour of wedding skills, should invoke skill_castend_pos when skill_castend_id triggers, should enable all the config settings for land skills to apply to the wedding skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6321 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 16:15:41 +00:00
skotlex
6082535bca - Small change in @commands, may fix the null-pointer error.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6318 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 15:25:53 +00:00
skotlex
6e1f885043 - Small change in the pet_ai that should stop the "strange" catch-up behaviour of pets when you are much faster than them.
- Corrected the unequip script of the wedding dress/tuxedo (it should be Class, not bClass)
- Changebase script command will also refresh the weapon sprites (in case you changed into Wedding/Xmas class)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 15:15:22 +00:00
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
3caf2d4406 - Now when you do @baselevel to reduce your level and you don't have enough stat points to deduct, you will get a stat-reset and THEN your stat points will be reduced.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6314 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 14:25:02 +00:00
skotlex
2728afbb10 - Added at command @commands, displays the list of commands available to you.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6313 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 14:10:29 +00:00
skotlex
21b2151c97 - Added the missing clif_* calls to make changebase's view-class change update on the client.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6312 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 13:40:15 +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
11bb133151 - Fixed base-level up @ command giving stat points instead of taking them away when leveling down.
- Some small change in pc_heal which would let you have negative SP if you were killed on the same pc_heal invocation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6307 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 12:18:18 +00:00
skotlex
97f93f125a - Fixed unit_attack_timer mismatch warnings (this was solved yesterday, but I forgot to apply the fix to trunk)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6306 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 11:44:02 +00:00
Lupus
b662c487e4 updated 'setmapflag' script command
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6304 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 05:55:23 +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
66cb46e29d - Modified mob_drop_adjust function to receive unsigned int as initial parameter, should give a bit more room before data overflows.
- Increased range check for Extremity to 2.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 21:33:07 +00:00
skotlex
d66d94cd80 - Item use interval is set to a default of 100ms now.
- Updated Full Buster so that the can't act delay carries on to the weapon attack delay and can't use item intervals.
- Added script command getbattleflag to retrieve the current value of a battle_config switch.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6296 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 21:12:08 +00:00
skotlex
dfca545bcf - When Taekwons level up they get Bless and Agi Up level 10 instead of the S.Novice bonuses.
- Increased number of hits for TK kicks. 3 hits for TK_COUNTER and TK_TURNKICK, 2 hits for TK_STORMKICK and TK_DOWNKICK (until further information arrives)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6294 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 19:20:17 +00:00
skotlex
56571363d2 - Wedding Dress/Tuxedo now handle view-change using the onequip/onunequip scripts.
- Removed special state changebase and view-change check on status_calc_pc


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6292 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 15:35:47 +00:00
skotlex
6aa5c83229 - Changed the skill_wall_check to use shoot-path seeking. May fix skill_wall_check setting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6291 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 13:43:10 +00:00
Lance
33916be18e * Fixed typo in skill.c: skill_clear_group
* Fixed command descriptions in script_commands.txt
* Cosmetic changes to script.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6289 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 08:03:03 +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
65a1e97ed5 - Cleaned up a bit the implementation of SC_MAXIMIZEPOWER, SC_CHASEWALK and SC_CLOAKING to prevent infinite looping timers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6283 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 23:05:54 +00:00
skotlex
3f18944b8d - When battle_damage's flag is &2, the flag 3 is passed to mob_damage so that it won't give exp nor items. NPC_SUICIDE was updated to reflect this.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6282 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 20:47:26 +00:00
skotlex
6fff5230e5 - Moved the mapflag skill restrictions from skill_checkcondition to skillnotok, this makes auto-spells not work in maps where they aren't allowed.
- Added TK_HIGHJUMP to skillnotok, the skill is blocked in noteleport maps (with the exception of gvg ones)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6281 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 20:36:26 +00:00
Vicious
198047d6b7 updated the db to X.2/X.3's itemsummonlist.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 19:29:52 +00:00
skotlex
bb9ff12f90 - Added reporting when receiving an unknown packet in login-sql before ending connection.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6276 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 19:06:58 +00:00
skotlex
f983dc57c3 - Modified and simplified the random item group format. It now is <GroupID>,<ItemID>,<Rate>, where Rate normally is 1, greater numbers is the equivalent of adding the line multiple times.
- Added constants to identify all groups to db/const.txt
- Cleaned up and updated item_db to use these new constants (warning: item_db.sql needs to be updated!)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 18:05:40 +00:00
skotlex
35cda692bd - Simplified npc_gettimerevent_tick so that it should return a tick value even after the last ontimer label has been reached.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6264 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 03:20:32 +00:00
skotlex
bec2797d52 - All GMs will be sent to the char server through packet 0x2aff now.
- Made mob_searchname compare versus sprite, name and jname now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6263 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 02:51:01 +00:00