1657 Commits

Author SHA1 Message Date
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
26cff5461b - Fixed sql compile.
- Some small adjustments on how the user/password in the char server are read.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-07 01:39:51 +00:00
skotlex
382bc65f07 - Fixed sql compile.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5205 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-06 18:47:28 +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
4fe9b3abb3 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5202 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-02-05 17:54:29 +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
Vicious
8ebda27095 Skotlex's Falcon Assault fix
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5189 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-04 20:00:25 +00:00
skotlex
b754855d60 - Fixed a wrong check being done for AM_TWILIGHT3
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5176 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-03 20:24:55 +00:00
skotlex
36ff68ba2f - Fixed the reported map when there is an error in report_src (script.c)
- Earth attacks now work on hidden enemies.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-03 18:53:26 +00:00
skotlex
a4c0233fb7 - Grand Cross/Grand Darkness can no longer get the ignore defense -armor piercing bonuses.
- Loki's weil is now ignored by bosses.
- Land Protector and Gantantein should now ignore traps.
- Fixed Shinobi card so that it fails when you aren't next to a wall.
- Cleaned up the function skill_landprotector.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5174 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-03 17:17:45 +00:00
skotlex
c6fb721bd8 - Meh, the status change start switch was supposed to be minimized, not altogether removed :X (the idea is to let anything with sc_data to go through)
- After a guild master change, the new gm has his guild skills blocked for 5 minutes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5171 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-03 14:09:02 +00:00
Komurka
78da77b702 Fixed txt-converter compilation errors (ASCII again + added missing ers.o to makefile)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-03 10:21:56 +00:00
Valaris
432aefc244 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5169 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-02-03 02:10:26 +00:00
Valaris
dacc1b195d * Crash fix in npc.c npc_timerevent.
was: struct timer_event_data *ted = (struct timer_event_data*)ted;
  changed: 	struct timer_event_data *ted = (struct timer_event_data*)data;
  Skotlex, I am assuming it's calling from the passed data var, If I'm wrong
  please fix it.  I just know what was there was definitely not correct. [Valaris]


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5168 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-03 01:51:44 +00:00
skotlex
28c32a9532 - Improved the NPC timer system to enable to have multiple timers going on at a time with different players attached to each. Now npc event timers are of two types: attached or global. The global timers don't have a player attached and can be started/halted by anyone. The character timers have a player attached, and they can only be stopped by a script that has the same player attached.
- Now player attached scripts will auto-abort when the atteched player quits the map server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5167 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-02 21:26:53 +00:00
skotlex
7d7c9b8324 - Fixed some includes in skill.c and npc.c, thanks to 252-rer for finding it out.
- Applied the entry reusage system to the battle delay damage structure.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5166 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-02 15:35:27 +00:00
skotlex
0496215b70 - Fixed the map server complain on the default user/password
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5161 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-02 13:17:48 +00:00
Valaris
3e1f72d709 * Fixed compile errors and warning in chrif.c and charsave.c. [Valaris]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5160 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-02 01:01:18 +00:00
Valaris
3983f053ea git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5159 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-02-02 00:50:39 +00:00
skotlex
d9f1d70901 - Map and char server now will complain if they are run using the default user/password set.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5158 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 20:56:48 +00:00
skotlex
1d94ae4856 - Trick Dead makes you stop walking now.
- Falcon Assault only does 1 hit now.
- Soul Burn is not affected by Lex Aeterna, not affected by target's cards.
- Freeze and Stone take preference over Benedictio
- Opt1 inducing SCs fail if the target has already another Opt1
- Fixed areamonster when the passed class is negative
- Removed the clear screen when launching the server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5156 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 19:14:28 +00:00
skotlex
697d29d7d4 - Fixed a typo bug in SC_STAR_COMFORT handling.
- Fixed a possible crash bug in SC_POISONREACT handling.
- Simplified the skill trigger code for ST_PRESERVE, SG_FUSION, SG_*_COMFORT
- Unified the status change variables into a single structure (sc_count, opt1, opt2, opt3, option, and the array of status change data) which should make it easier to handle sc related stuff.
- TK_DODGE now won't trigger if your opt1 is set ;)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 17:17:09 +00:00
celest
52384c3a70 Fixed plugin compile error
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5153 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 16:58:01 +00:00
celest
f151867517 * Fixed an overflow in grfio
* Changed resnametable loading behaviour
* Increased grfio filelist limit to 1048576

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5152 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 11:57:21 +00:00
skotlex
d13956c142 - Fixed skill_check_cloak to use the current skill level of the cloaking skill and not pc_checkskill() to know if a cloaker away from a wall should be uncloaked.
- Likely fixed opening guild storage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5146 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-31 18:22:14 +00:00
skotlex
b488f26468 - PF_SOULBURN no longer ignores mdef.
- HW_GRAVITATION should now invoke auto spells.
- Added function battle_calc_return_damage to unify the return damage code.
- Added autospell triggering to returned damage from normal attacks.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5141 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-31 17:00:34 +00:00
skotlex
3e1a4e221c - Cleaned up Summon Slave mob skill to only summon number of missing mobs to complete the skill level (that is, SS level 5 will always bring the total count of slaves to 5, never above)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5138 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-31 15:51:23 +00:00
skotlex
cf99ac6795 - Fixed being able to Encore skills you no longer have in your tree.
- Added no HP regen while Bleeding, -25% ATK and ASPD penalties as well.
- Added VIT reduces duration of confusion.
- Added MSC_SPAWN "onspawn" mob skill condition.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5136 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-31 14:44:39 +00:00
skotlex
4f5babb97d - Changed the exp tables format.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5135 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-31 13:45:04 +00:00
skotlex
523fed742d - Some compile warning fixes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 17:31:36 +00:00
skotlex
cff16d36a9 - Autoloot now uses the item's base drop chance rather than final drop rate to determine if it should autoloot the item or not.
- Fixed super novices getting +10 to all stats temporarily whentheir death count isn't zero.
- Fixed Kahai displaying HP-SP as the total healed instead of HP
- Cleaned up skill_repairweapon to prevent crashes when the target vanishes/changes/whatever before the weapon to repair has been selected.
- Parsing the Storage/Guild Storage from the char server will now fail if the storage has been modified and not saved yet.
- Being hit now cancels confuse.
- Added back the bleeding icon.
- Fixed Combo Finish Soul Linked Effect being a 11x11 area o.O


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5121 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 16:19:31 +00:00
Komurka
05eba2d392 * Added 'restricted' mapflag, based on lordalfa patch
- you can set restriction zone on map (see mapflag/restricted.txt)
- you can turn off item usage on certain restricted map in item_noequip.txt
- you can turn off skill usage on certain restricted map in skill_nocast_db.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5115 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 14:24:26 +00:00
Komurka
a09b779ee7 Moved MVP log code so it can log all MVP, not only when player gets MVP item, thanks to Hatred_
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5113 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 12:36:11 +00:00
Komurka
28c7a61687 One more small fix on 'bSPVanishRate' (tsd->status.hp * sd->sp_vanish_per/100 -> tsd->status.sp * sd->sp_vanish_per/100)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5111 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 10:02:11 +00:00
Komurka
152091d470 Implemented bonus2 bSPVanishRate for Dark Priest Card - it isn't finished - I get '[Warning]: pc_bonus2: unknown type 0 50 10!' ~.~
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5109 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 08:16:31 +00:00