4932 Commits

Author SHA1 Message Date
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
Komurka
c648d7e760 * Implemented SG_MIRACLE (Miracle of the Sun, Moon and Stars)
- duration is stored in battle_config.sg_miracle_skill_duration (currently it's set to 10 minutes)
- ratio is stored in battle_config.sg_miracle_skill_ratio (currently it's set to 0.01% chance per character move)
- this skill enables you usage of all Warmth skills, Comfort skills, and also 
  all mobs will be target of the Stars regardless of the day and map
- you'll see message "[Miracle of the Sun, Moon and Stars]" when skill kicks in

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5323 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-18 13:16:21 +00:00
skotlex
3804e1684f - Added an alternate path searching method for non-stacking mode.
- Allowed pc_setpos to place players on top of cells that are stacked in CELL_NOSTACK mode.
- Fixed a missing break that was making Heal, Resurrection and some others become attack skills x.x'
- Fixed a logic bug in the mob-walk code that was making them get stuck and not move (triggered quite often when the cell no stack mod is enabled)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5320 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-18 06:10:49 +00:00
skotlex
b2382e76f7 - Cleaned up irc.c (moved variable declarations before code commants >.>)
- Updated the VC project files by Joshuaali.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-18 01:59:26 +00:00
skotlex
8563167d94 - Fixed possible crash due to invalid index in the pet select packet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5314 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-18 00:36:16 +00:00
skotlex
994d991fc9 - Added NK value 3: No damage + area of effect skill (NK_SPLASH_NO_DAMAGE)
- Removed the double-cast specific code and made it use skill_addtimerskill instead.
- Modified party_foreachsamemap so that it returns to addition of the return value of the functions invoked. Type has been changed for "range", when 0, it scans all party members in the map.
- Updated most skill/battle code to use map_foreachinrange rather than map_foreachinarea.
- map_foreachinrange does not performs an exact range check anymore. However the relevant code is commented and anyone can enable it.
- Updated most skills to use skill_get_splash instead of hardcoded ranges.
- Added function skill_get_casttype which returns the type of function that should be invoked for that skill: skill_castend_pos, skill_castend_nodamage_id or skill_castend_damage_id.
- self skills are sent to skill_castend_nodamage_id regardless of nk (nk should signal if the skill causes damage above everything, it is used on autospell/effects).
- Due to the previous change, self skills where the target and src are different, and don't have an nk of no damage, they are sent to castend_damage_id (assumed target auto-selected skills)
- Applied the relevant updates to db/skill_db.txt, db/skill_unit_db also got updated, as trap ranges should all be 1, the splash damage range is defined now in skill_db
- Cleaned up the implementation of the code related to Gangster's paradise and TK_HP/SPtime


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5313 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 21:33:54 +00:00
skotlex
f0c78186b6 - Modified the included files in irc.c, used as reference the includes in common/socket.c, will it compile in Windows systems now?
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5310 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 14:49:35 +00:00
skotlex
d57406c09e - Char-SQL: Removed the ridiculous check for existing party/guild each time a character is saved. The check should be done upon loading (when the guild/party is not found, the char's party/guild id is set to 0 THERE)
- Removed the 'Quick loaded char' messages from the char-sql server
- Some cleaning of the guild sql saving routine.
- Various checks around the char-SQL server and a few memory leak fixes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5309 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 14:37:43 +00:00
skotlex
7429b0cd57 - Applied the suggested fixes by Joshuaali to fix the compiling of the sql map server on Win32 systems.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5308 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 13:48:04 +00:00
skotlex
eafb17b8fe - Fixed the memory leak on opt_2str as pointed out by End of Exam
- Fixed a few char SQL memory leaks as pointed out by End of Exam


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5307 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 13:36:49 +00:00
skotlex
a7d78d7670 - Fixed crash in AL_TELEPORT.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5305 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 03:53:39 +00:00
skotlex
fa5ad273ad - Now you can't close-confine and already confined mob.
- mysql/my_global.h now includes winnt.h under Windows systems...
- Updated SC_CLOSECONFINE to store the skill lv in val1 and the amount of locked targets in val2
- Some cleanup of status.c to use StatusSkillChangeTable where appropiate.
- Removed the check that prevented mobs from walking into a basilica.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5303 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 03:37:23 +00:00
skotlex
fbc4c4f453 - Added a new column in the skill_db to specify the splash-range/area-of-effect of skills. (Work in progress)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5302 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 21:53:05 +00:00
skotlex
0f1ea43892 - Autocasted AL_TELEPORT should now automatically pick menu entry rather than showing the box up.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5301 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 21:00:42 +00:00
skotlex
5044ec742c - In CELL_NOSTACK mode, mob_canreach will now ignore other players when checking if there's a path to the player.
- Added RG_RAID to the list of skills that need a status_checkskilluse on skill_attack.
- Added the mapflag check monster_noteleport to AL_TELEPORT.
- Fixed the sc_def rate not being reduced in status_change_start.
- The battle config options sp_rate and hp_rate are now applied independently of the same type of bonuses from cards.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5300 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 20:42:41 +00:00
skotlex
a56eb4b977 - Fixed the include in irc.c from strings.h to string.h, which fixes a bunch of compilation warnings here...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5299 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 20:37:44 +00:00
skotlex
dcd7d940b0 - Updated the login/char sql servers to let the sql tables autogenerate the new id, and then retrieve said id using mysql_insert_id rather than playing smart and loading the next insert ID on startup.
- Tables affected are: account creation, char creation, party creation, pet creation and guild creation.
- Also corrected some functions to be of type (void) rather than ()


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 20:15:21 +00:00
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
e3b57bb929 - Fixed @lvup commmand raising levels when you specify a negative value.. again. Some more signedness checks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5286 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-15 13:19:16 +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