2606 Commits

Author SHA1 Message Date
skotlex
a9cc1889c2 - Applied Snufkin's patch to fix compilation on FreeBSD.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5428 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 16:17:47 +00:00
skotlex
a9ad111c03 - Fixed mobs targetting themselves after using a support skill.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5427 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 15:40:33 +00:00
skotlex
898a5cb482 - Gospel no longer blocks item usage of whoever is in the area of effect.
- Added the long/near attack_def_rate card effects to battle_calc_magic
- Cleaned up a bit the slim pitcher code.
- Elemental fields should vanish on map-change now.
- Land Protector only blocks magical skills.
- Adjusted the duration of blind/bleeding of Meteor Assault


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 15:31:16 +00:00
skotlex
bb7a50a009 - Fixed item pickup not picking anything unless you were in a party with item distribution set o.O
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 13:49:18 +00:00
codemaster
421a6e7f9c * Made it so players that are at the max level do not receive EXP. This makes it so a player at the max level (ie - 99) cannot join a party and feed all of his or her EXP to the other party members [Codemaster]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5422 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 09:19:02 +00:00
Lance
acb95c4f12 * Mapregsql will now fully depend on mmysql_handle.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5421 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 08:20:45 +00:00
Lance
16a1b9d809 * Optimized strcharinfo to use switch. Looks like Skot fixed the crash already XD.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 08:12:27 +00:00
skotlex
8397547da1 - Some cleanup of the mob skill reading. Added error reporting for unknown states/conditions, error reporting now specifies the file and line number.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5419 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 01:11:47 +00:00
skotlex
b7ebda3ccd - Silence will only block skills when they have begun casting, not when the cast bar is done.
- opt1 status will block skills when they are done casting only if the sc_castcancel option is set.
- strcharinfo now returns blank instead of crashing the map server when there's no player attached.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5417 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 21:35:46 +00:00
skotlex
518caa9b14 - Added sql init for the mapreg handle.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5416 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 20:51:21 +00:00
skotlex
343577ac3b - Checked and fixed the script engine barking when you try to have a label with the same name as a const.txt defined parameter.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5415 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 19:44:37 +00:00
skotlex
9321f524fc - Turn Undead and Offensive Resurrection should now work on undead players.
- Fixed the range checking of Repair weapon
- Rude attacked is now also triggered when you hit a target that can't move out of their melee attack range.
- Mob ai will attempt to do a long-range attacked condition skill before unlocking a target when it is attacked and said target is out of melee range of a non-walking mob.
- Corrected mobskill event to set the target_id before triggering.
- Moved MSC_SKILLUSED trigger to mobskill_event which is triggered in battle_calc_damage. It is also triggered on skill_castend_nodamage_id
- Added party_share_loot for handling party-share loot. it should now work with autoloot as well.
- Fixed skill_break_rate breaking stuff even if the rate is 0.
- pc_stopwalking will not send a fixpos packet if you are sitting.
- mob_can_reach rude-attacked condition now uses the mob's field of view.
- SC_NOCHAT is automatically started on pc_authok if manner is negative.
- Map server now refuses to start if you try to define a label with the same name as some const.txt defined character parameter.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5414 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 18:18:32 +00:00
LuzZza
e1a7d73f8d Some small changes in LAN support code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 13:20:49 +00:00
Lance
c2273620ad * Added script command 'setbattleflag'.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5407 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 07:15:33 +00:00
codemaster
e2b51026b8 * Corrected a few Compiling Warnings [Codemaster]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5405 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 05:43:41 +00:00
codemaster
018dec7fb4 * Added the ability to select GM loading via Login (default) or Char [Codemaster]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5404 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 05:35:21 +00:00
Lance
c46f652b8e * Added autoequip flag check (added script command 'autoequip' to manipulate in script.c) for pc_takeitem in pc.c If it impacts on perfomance, please remove it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5401 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-28 13:08:53 +00:00
Lance
465ab78484 * Added script command 'equip' to equip items.
* Fixed dependancies in map-server compiling (VC7.1).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5400 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-28 12:32:02 +00:00
LuzZza
9bb0a7eedb Rewrote LAN support code. Changed configuration file name lan_support.conf to subnet_athena.conf, changed it syntax.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5398 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-28 00:41:00 +00:00
skotlex
7954b15ccc - Prevented guild/party recall to work on GMs of greater level than yourself.
- Prevent muting players with higher GM level than yourself.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5388 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-24 16:03:05 +00:00
skotlex
a4b9893c90 - Fixed Lady Tanee's spawns.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5385 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-24 14:27:14 +00:00
skotlex
f6b78466ab - Fixed the CL_WHITE define, thanks to FlavioJS
- NPC break equipment stuff now has a 1.5% per skilllv success rate.
- pc_setpos won't random warp players if placed on top of Moonlight Petals
- Removed the check in clif.c for npc_shopid as the client never sends a packet when the trade is cancelled...


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-24 04:04:24 +00:00
skotlex
260f904cea - Player-summoned mobs won't level up now.
- Fixed Super Novice explosion spirits triggering no matter what you said on the third line. It now triggers on the fourth line....
- Fixed GTB blocking targetted spells when gtb_pvp_only was set.
- Merged the code of Ankle snare and Spider web. It no longer moves target if sc failed.
- Players should stop walking as soon as they start vending or get into a chat.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-24 01:16:33 +00:00
skotlex
ada437dcaf - Added mob skill conditions myhpinrate and friendhpinrate for using HP ranges instead of a fixed "less than" condition.
- Added mob_ai condition &16, enables skills that are normally used on 'friends' to also pick up caster as target.
- Fixed npc_shopid not being reset to 0 when buying/selling. FIXME: The client sends a packet when you cancel? It is required so that npc_shopid will be cleared and prevent the player from being stuck.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5380 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-23 21:33:35 +00:00
skotlex
90ec4f1d14 - Modified the way autospells stack to mimic official servers. Cards of the same ID cannot stack, but different cards with the same skill can each trigger indepedently of each other.
- Added battle_config autospell_stacking to enable stacking of cards of same ID.
- Moved card-specific battle options to items.conf
- Autospells triggered when hit will check the range to the target.
- Some cleaning up of status_calc_pc
- In status_change_start capped the passed success chance to 100%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5377 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-23 16:31:16 +00:00
skotlex
c7d2cec9c7 - Windwalk's bonus is now +5 miserable flee.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-22 21:33:41 +00:00
skotlex
7f4bc7d9e0 - Removed pc_break_equip, added function skill_break_equip which handles rates, defenses and all that. On non-players it causes the strip effect for the corresponding skill lv1.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5374 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-22 20:39:55 +00:00
skotlex
d090ba1d51 - Changed the MAX_MOBSKILL value to 50 to give some 'breathing' room.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5367 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-22 15:31:23 +00:00
skotlex
6232f11855 - Added map chk cells types CELL_CHKREACH and CELL_CHKNOREACH, they are the same as their PASS/NOPASS equivalents, but will ignore the cell-stacking mod when enabled.
- Updated path.c with jA's implementation, which should make long path searching more efficient.
- Also added some typedefs from jA for the common structure types (PC/MOB/NPC, etc)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5366 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-22 15:27:04 +00:00
skotlex
7f19811794 - Fixed all skills getting range 0.... (except close confine which got range 1 :X)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5362 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21 23:59:15 +00:00
skotlex
caa533d23c - Some cleanup in skill.c, moved the icewall flag check to skill_notok.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21 20:37:55 +00:00
skotlex
1d786d8491 - Modified party_send_movemap and guild_send_info_short to send the mini-dots to the player logging on.
- Added functions clif_party/guild_xy_single to send the xy dots to a single fd.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5359 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21 18:43:50 +00:00
LuzZza
17ddbf01a9 - Fix to prevent using main chat when it disabled in atcommand_athena.
- Fixed message codes in duel functions.
- Small fix in log_refine, incorrect compare expression.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21 18:37:35 +00:00
skotlex
9399f60ace - Some fine-tuning of the warp portal code which prevents it from messing up other skills if you "precast" it.
- Fixed the weapon refine code using sd->skillid instead of sd->menuskill_id
- Fixed some npc_event error reports (three error where displaying at the exact same msg, making it impossible to tell which one of the three actually happened)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5356 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21 15:59:38 +00:00
skotlex
d274e688a7 - Vending is now cancelled on a pc_setpos
- Pressure again ignores Basilica.
- Fixed attacker's sc being nulled when the target's sc is empty.
- Slaves now do a battle_check_target to check if the new target is an enemy when acquired through sd->skilltarget.
- Fixed SC_SKE halving defense2 twice.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21 13:53:36 +00:00
skotlex
d14c689500 - Oh yeah, made Super Novice explosion spirits trigger when the last phrase is said, no need for extra junk.
- Now the default delay of amotion is applied only for BF_WEAPON, non NK_NO_DAMAGE skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5352 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-21 01:19:26 +00:00
skotlex
c0652d7916 - Added back the char-sql server sending the GM list when the map server connects.
- Fixed a bug in the add_timer_interval error reporting.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 22:16:19 +00:00
skotlex
e20a35c322 - Play-dead and Basilica now do block Gospel
- Map SQL server will no longer ignore the gm-list packets received from char.
- Login-SQL server will not free the current GM listing if the SQL reading of it failed.
- Login-SQL will now read for the GM list ALL accounts with level above 0, not just those with level above min_gm_level (just like the TXT server does)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5349 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 21:28:44 +00:00
skotlex
9398266b65 - SC_NOCHAT won't be cancelled on death.
- Cleaned up the global message function. SN Explosion Spirits will no longer trigger in maps where said skill is unavailable.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5348 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 20:54:18 +00:00
skotlex
3dbf70680c - Close confine won't get the bonus range on cast as other skills do due to exploits.
- Fixed a bug in setnpctimer checking out the wrong variable.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 18:22:04 +00:00
skotlex
bc1aad166c - Added sd variables menuskill_id/menuskill_lv to store menu-based selections. These are used now to check the validity of skill use instead of sd->skillid/sd->skilllv
- Affected skills/packets: AC_MAKINGARROW/ AL_WARP/ AL_TELEPORT/ AM_PHARMACY (all refine functions)/ MC_IDENTIFY/ BS_REPAIRWEAPON/ SA_TAMINGMONSTER/ SA_AUTOSPELL/ WS_WEAPONREFINE/ SG_FEEL
- Removed feel_lv and repair_target variables as now they are handled by the previous two new variables.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 17:34:48 +00:00
skotlex
4b752d6757 - Corrected implementation of Gangster Paradise to just prevent mobs from targetting you.
- Likely fixed Close Confine not unlocking the target when you move/are moved.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 14:24:59 +00:00
Komurka
0fc8a2651c * Updated item_bluebox.txt, item_giftbox.txt, item_violetbox.txt, item_db.txt, mob_db.txt, added item_cookie_bag.txt
- new databases from Aegis 10.2
- implemented Cookie Bag item
- added missing mobs
- note: yes, I know that random item databases can be shorter (item_bluebox.txt, item_violetbox.txt, item_cookie_bag.txt, but not with current implementation of item randomizing
  for expamle:
	- there are 9285 items in item_bluebox.txt, and 1000000/9285 = real value
	- so line with Red Potion would contain rate = 1000000/9285*12 = real value (can't be)
  I think it's better to have bigger db, and do ONE rand check, than shorter and check it even 1000 times ~~ (in function itemdb_searchrandomid) so please, don't mess with them, or change them
* Changed MAX_RANDITEM from 2000 to 10000 to fit new databases
- Added reading of new file - item_cookie_bag.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5341 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 12:42:24 +00:00
skotlex
1fb95bcf98 - Fixed Taekwon stances not triggering.
- Added atcommand @exp
- Added error reporting when add_timer_interval receives a negative/0 interval value.
- Fixed a possible infinite recursion bug with splash self skills.
- Modified the way firewall_hits_on_undead works, to loop and invoke multiple skill_attacks based on the value.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 03:14:49 +00:00
Komurka
57c6147ff8 * Preparing eA for new mob_skill_db from Aegis 10.2 [Komurka]
- increased MAX_MOBSKILL 32 -> 40

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5333 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-19 23:04:02 +00:00
skotlex
1ba53ff18d - Fixed a compile warning this time ~.~
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5332 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-19 21:29:53 +00:00
skotlex
9ed113263c - Oops, fixed the compilation error.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5331 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-19 21:26:01 +00:00
skotlex
f0725b9248 - Added sd->canuseitem_tick = tick to the pc_authok initializer data. Fixes items not being usable under some circumstances.
- Removed the empty ack packets from pc_useitem, it is now invoked from clif.c when the function to use items fails.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5329 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-19 21:13:00 +00:00
skotlex
591f2d8046 - Fixed parsing of @kamic/@kamib to check for case.
- Now you can hide from Pressure.
- Weapon endowing will work on targets already endowed with the same element.
- Now reseff cards will take effect even if the status change is passed with &8 flag. In short, now reseff are ALWAYS applied to the status change defense.
- Removed a missing break that was making AM_TWILIGHT2/3 always fail.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5327 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-19 20:53:36 +00:00
skotlex
c8808b6ec0 - Removed the SP_<stat> cases from status_get_sc_def as they were colliding with some status changes.
- Some cleanup of the pc natural regen functions.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5326 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-18 21:44:27 +00:00