1536 Commits

Author SHA1 Message Date
skotlex
a8cfb23165 - Cleaned up function pc_useitem and pc_isUseitem
- Moved a bunch of code from pc_useitem to pc_isUseitem.
- Removed the skill heal block on pc_itemheal due to Gospel.
- Cleaned up the pc_heal and pc_itemheal functions.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 15:24:26 +00:00
skotlex
62cb3db4e0 - Fixed crash in chrif_load_scdata warning message.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5293 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 03:12:22 +00:00
skotlex
3c59d5f027 - Fixed pets displaying "strangely" when they did not have their pet armor
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5291 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 01:10:56 +00:00
skotlex
2d461432b8 - Added battle config option pk_level_range for specifying valid level ranges to engage in PK
- Added battle config allow_es_magic_player to enable SL_S* skills to work on non-mobs.		


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5290 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-15 21:04:05 +00:00
skotlex
e0fb2a113f - Fixed the char servers to store correctly exp as uints. They are also capped to LONG_MAX before being sent to the client.
- TK_DODGE now dodges all ranged attacks, when used with SPURT, dodges everything.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5289 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-15 20:18:11 +00:00
skotlex
00bbc7673b - Made the warm skills BF_WEAPON type so that they may trigger effect cards.
- Also changed their pl to -1 so they carry the elemeso they carry the element.
- Warm skills now damage other players for 60sp per hit.
- Warm skill damage interval decreased to 100ms instead of 1000ms.
- TK_DODGE  now only dodges ranged weapon attacks, while under Spurt mode it dodges everything.
- Cleaned up and expanded the sc_def_rate battle config. The new battle flags are mob_sc_def_rate, pc_sc_def_rate, mob_max_sc_def, pc_max_sc_def
- Modified Marionette Control so that the max bonus stats you get is capped to your server's defined max stats instead of 99.
- Mobs are no longer affected by the vs_traps_bctall switch.
- Added function pc_damage_sp to damage the SP of players.
- Modified Warm skills so that it only hurts SP of players while attacking/knocking back mobs.
- Autospell loop breaks after one skill is successful.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5288 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-15 18:56:54 +00:00
skotlex
66560a7f83 - Fixed @lvup commmand raising levels when you specify a negative value...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-15 13:14:30 +00:00
skotlex
931033a7b1 - Some cleaning of the slave moving code.
- Fixed the icon for Provoke not showing.
- Fixed skill_timerskills (type was not being stored, water-ball at least got broken, doing only 1 hit always)
- pc_setinventorydata won't try to set data for positions with no item.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5283 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-15 03:51:59 +00:00
skotlex
af144b690d - Removed the declaration of puchar and pchar from my_global.h which was preventing compiles on native win NT systems. Drawback is now Win9X systems will fail to compile instead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5279 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-14 21:38:20 +00:00
skotlex
c1263b25da - Hiding cancels Close Confine.
- Added the move enable condition to High Jump and Jump Kick.
- ST_MOVE_ENABLE now also checks for pc_can_move(), and only perform a walk check if the skill is ground targetted.
- Moved the berserk_cancel_buffs code to status_change_start.
- Moved most checks of status_isimmune() to status_get_sc_def
- Allowed Endow skills to go through status_isinmune characters.
- Added variable type to skill_castend_nodamage_id which holds the value of SkillStatusChangeTable[skillid] to simplify code reading afterwards.
- Fixed PR_BENEDICTIO not taking away all SP
- Fixed the most horrible typo ever. (SC_STAN -> SC_STUN)
- Added StatusSkillChangeTable which returns the Skill for a given SC. Used in skill_additional_effect for SC cards.
- Removed the whole ugly static implementation of SkillStatusChangeTable, see status_initChangeTables() for new format which is much easier to read.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5278 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-14 21:35:53 +00:00
skotlex
ea91239d66 - Added battle config sc_def_rate which adjusts natural defense of characters against status changes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 21:37:10 +00:00
skotlex
72347df4fa - Updated the eamobs spawnsets for Geffen 3, Juperos Lv1 and Glast Heim
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5273 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 21:11:41 +00:00
skotlex
e647a2cbe3 - Pet eggs won't be deleted upon selection for hatching, but on pet data retrieval now.
- Added check to pc_readdb to printout if a certain job is missing it's experience table.
- Added Job_Wedding to db/const.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5272 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 20:55:09 +00:00
skotlex
a8c65c476c - Made the NPC_BREAK* skills attack skills again, their chance of equipment breaking code was moved to skill_additional_effect.
- Added zeroing of skilltarget in skill_castend_id when skill fails.
- Now when the exp table does not has enough data to reach the max level specified, the max level will not be reduced to enable leveling through quests/scripts/gm-commands/etc.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5271 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 19:48:56 +00:00
skotlex
7e716db3aa - Made Land Protector Block Hammerfall.
- More signed/unsigned comparison fixes.
- Added dummy_item variable to itemdb. It will be used on all itemdb_searches that do not yield a valid item from the db.
- Added itemdb_load, which is the one used for item_db loading (if the item does not exists, it'll be created)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5270 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 18:58:14 +00:00
skotlex
59e17a948b - Modified PA_GOSPEL so that the random damage attack becomes a BF_MISC attack.
- Added pc_resetskill when lowering job level and there's not enough skpoints to substract.
- Fixed compile error of SG_FUSION in pc.c
- Modified pc_resetskill to receive a flag to indicate if it should or not do status_calc_pc and send skill block updates. Meant to optimize performance when used in the middle of a larger update.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5269 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 16:54:24 +00:00
skotlex
ff483b7810 - Fixed SG_FUSION costing SP to deactivate.
- Some cleaning up at pc_setpos to prevent calling pc_clean_skilltree
- Added pc_clean_skilltree on pc_recv_reg
- Enabled use of TF_HIDING while Cloaked.
- pc_resetstate won't remove wedding skills now


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5268 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 16:06:32 +00:00
skotlex
cf059ff1a9 - NPC_POWERUP now gives +40% atk per level.
- Water elementals can be frozen again.
- Fixed the sc_def equation in status_change_start
- Fixed an extra semi-colon that broke win32 compiles.
- Some rewriting of bounds checks in @baselvup, @joblvup and the # equivalents to prevent signed/unsigned comparisons.
- Now slaves give exp/loot (exception: player slaves still stick to the old rules)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5267 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 15:04:11 +00:00
skotlex
a969cee4d2 - Added CELL_CHKSTACK to check if a map cell is stacked (CELL_NOSTACK server mod)
- Added flag 0x3000 to path_search to specify that path searching should go through stacked cells. Used for skill_wall_check calls.
- easy path_search will be successful in CELL_NOSTACK mode if the search fails only on the target cell (it is presumed the target cell contains the character one is trying to reach). The walk routines will take care of stopping the character from walking into another one when stacked.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5263 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 04:04:46 +00:00
skotlex
62fb6045d4 - Added handling of type BL_PET to skill_unitgrouptickset_search. I know pets normally aren't affected by skills, but their structure already had support for this, so....
- Rewrote/simplified functions skill_addtimerskill/skill_cleartimerskill
- Fixed SC_DANCING for non players (was making dances only last 1 second for them)
- Modified map_moveblock to handle calls to skill_unit_move_unit_group and cancelling of Close Confine effects, removed these checks from the walk functions and skill_blown functions.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5262 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 02:34:19 +00:00
Vicious
cf0228c664 Valkyrie item fix, Sonic blow fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5257 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-11 04:57:05 +00:00
skotlex
5e170d8da9 - The status window now shows the addition of the damage of your both weapons when dual wielding.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5256 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-11 04:46:36 +00:00
Valaris
2c19f4bfcd Removed #include <lcms.h> from irc.c, which caused compile errors.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5255 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-11 00:55:55 +00:00
skotlex
81b7073131 - Changed the server's default MAX_LEVEL capacity to 1000.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5253 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 21:28:15 +00:00
skotlex
328de1ec52 - Lures won't be lost now when you use them on a non-mob.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5252 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 19:29:10 +00:00
skotlex
5b7bbaa4eb - Added pc_issit check to pc_can_move
- Stone/Freeze/Stun/Sleep now make you stand up as well.
- Some logic pointer fixes on map_searchrandfreecell.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5251 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 15:30:10 +00:00
skotlex
f8df39576f - Made the NPC_BREAK* skills no damage skills. Removed their code from the skill cast end damage id function.
- Also raised their max level to 10. Made their breaking chance 10%*lv


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5250 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 14:57:49 +00:00
skotlex
2f074dc2d4 - Modified map_searchrandfreecell to always do a check on a 9x9 area around the target tile, and to return the x,y coordinates modified with the new target.
- Modified map_addflooritem so that the type is &1 for mvp drops and &2 for stacking checks, when &2 the item to drop cannot stack on the floor, otherwise it has no stacking limit.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5248 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 14:21:52 +00:00
skotlex
6a96ab5afc - NPC_POWERUP gives now +20% attack per skill level.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5246 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 13:34:14 +00:00
skotlex
72f625000d - Fixed setting setting SP_BASELEVEL
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 04:06:03 +00:00
skotlex
0de0f92568 - Added range checking to mob skill loading of permillage and delay.
- Fixed pc_gainexp not working for next level exp requirements above INT_MAX.
- Fixed the display of @showexp not working right for exp values above INT_MAX.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5242 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 03:17:19 +00:00
Valaris
ad49453e0e * Removed the conf sql code for now. Maybe will continue later with that project.
Lowered the irc keepalive timer, and added some checks for use_irc that should have been there.
	  Added a return line \n to the beginning of the title screen. [Valaris]


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5241 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 00:09:29 +00:00
skotlex
66a453cc74 - Added function mob_respawn which makes a mob respawn on spot 3 seconds after deafeat if SC_KAIZEL is active.
- Modified NPC_REBIRTH to use Kaizel level 1.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5240 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-09 19:43:13 +00:00
skotlex
1e53de04f6 - Added setting max_exp_gain_rate which caps how much exp you can get from a single kill.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5239 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-09 17:26:55 +00:00
skotlex
4ccd4a6c5f - pc_readdb will now cap experience required per level to UINT_MAX, it will warn the exp table has exp values above said limit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5238 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-09 16:18:33 +00:00
skotlex
fca56907fe - Changed the default of skill_delay_attack_enable to no.
- Modified Magnum break's delay to 0, time1 to 2 secs, time2 to 10 secs. Time 1 is for the skill reuse delay, and time2 the weapon fire bonus time.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5236 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-09 14:43:35 +00:00
skotlex
2a9dbcf690 - Code rewrites in mob_damage and party_exp_even_share for correctly handling overflow issues. Now uses UINT_MAX for range comparisons, as it should be.
- Also modified the mob_db reading to use UINT_MAX for exp limits, changed their exp/job exp fields to unsigned int as well.
- Modified multi_level_up behaviour to work as specified by Kyoki.
- removed functions pc_next[base/job]after as they are no longer needed.
- Modified the skill attack display of Meteor Assault and the Warm Skills (I think the caster should no longer do fancy animations now on each hit)
- Added back water elemental targets being inmune to SC_FREEZE
- Fixed the status_change_start line in charsave.c (I knew I was forgetting something)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5235 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-09 14:21:41 +00:00
Komurka
4ade31e5ea SQL compile fix (Skotlex, check line 470 in charsave.c, I've added here rate value = 10000)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5234 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-09 11:51:34 +00:00
skotlex
f1e4549f12 - Added battle config options:
- skill_caster_check (does a status_checkskilluse on all skill attacks)
- status_cast_cancel (invokes skill_castcancel for opt1 type status changes)
- Fixed the death exp penalty underflow bug


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 19:33:01 +00:00
skotlex
d25d952fc6 - Cleaned up and reorganized status_change_start. Now it also receives the success % rate (0->100)
- Added local function status_get_sc_tick which takes care of reducing the effect duration as need is be.
- Modified status_get_sc_def to handle defense against all related statuses, now returns defense on a scale where 10000 is 100%.
- Added time2 to pangvoice, it is the player effect's duration while time1 is for the mon's effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 16:56:53 +00:00
skotlex
516668a5ec - Modified exp2.txt to use the default official levels instead of 1000
- Corrected exp2.txt's job lines for novice/baby novice.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5225 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 15:39:00 +00:00
skotlex
7964763fb7 - Modified battle_check_range to use check_range_bl rather than range_bl for range checking, as the range_bl aproximations can lead to situations where battle_check_range returns true while the attack function range check fails >.>
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5223 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 03:20:08 +00:00
skotlex
cd88503b76 - Removed the max level configs from battle/exp.txt
- Now NPC_POWERUP uses SC_INCATKRATE instead of SC_EXPLOSIONSPIRITS for enhancing damage. Instead of +1k atk per skilllv, it is +50% atk per skilllv.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5220 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 01:53:52 +00:00
skotlex
53b671c36f - Fixed Char-SQL server setting up the save/last point to the novice grounds when either x, y or the map is 0.
- Commented the char server setting up Prontera as default point when there's none (this bug should not exist)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 00:39:47 +00:00
skotlex
1e1ed0a338 - Fixed SG_STAR_ANGER not getting it's damage bonus at all.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5216 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 00:15:26 +00:00
skotlex
99466e67c1 - Increased char buffer for reading the exp table to up to 24000 chars per line.
- Added my custom experience table that goes up to level 1000.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5209 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-07 04:34:46 +00:00
skotlex
1e07d35220 - Fixed startnpctimer starting multiple timers if the npc timer was already started.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-07 02:52:55 +00:00
skotlex
d69479b946 - Added define clif_deadsit to send the dead state into player packets if the player is in trick dead state.
- Venom Splasher always hits (but splash damage targets can still avoid it)
- Using autoloot with no arguments now toggles it between @autoloot 0 and @autoloot 100%
- Falcon Assault now takes Blitz Beat lv5 as base damage.
- Fixed pc_makesavestatus not updating status.option correctly.
- Corrected Waterball so that higher levels can do insane amount of hits.
- Altered slave behaviour. No more random walking, will stay within 2 cells of their master.
- Reverted the Summon Slave behaviour to not adjust level based on number of current slaves.
- Coma no longer sends SP to 1.
- Updated Meteor so that when level 11 or more is casted, the area over which meteors fall is tripled.
- Dark elemental characters are now inmune to Curse.
- Fixed sc_data saving to sql buffer building method. Thanks to its_sparky.
- Changed the map zone reading from using pow to a bit shift.
- Experience has now been changed to unsigned int, and is read as such from the dbs.
- Increased HT_DETECTING seek range to 7x7
- Added function map_foreachinrange which actually checks distance of nearing objects (unlike for each in area which uses a square area), may come handy for future code.
- Corrected Venom Splasher: Being hit does not cancels it, works at 75% or less of target's HP, being hit normally while under the count has a chance of causing poison. Damage is +400% + 50*lv%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-06 18:38:51 +00:00
Valaris
8e410ec582 * Added some of eAIRC bot code, written by me and LittleWolf. It is disabled and has no configuration options yet, as it is not finished. [Valaris]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5201 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-05 17:53:53 +00:00
skotlex
1b71a1a4da - Small fix in pet_attack that would make pets not unlock their target in some situations.
- Fixed invisible shops. callshop scrip command now works!
- Added proper documentation of script command callshop


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-05 11:24:46 +00:00