summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-05-29- Cleaned up some status_get functions.skotlex5-47/+61
- Optimized a bit the SC_PROVOKE code (to use val3/val4) - Fixed draining when the amount drained is negative (invoke zap rather than heal) - Implemented GS_FLING as per the current skill description. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6819 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29Fixed Green Ale's effect, thanks to NLZ.MasterOfMuppets2-1/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6818 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29- Fixed pc_readparam/pc_setparam to use battle_status.hp/sp rather than ↵skotlex6-18/+36
status.hp/sp, fixes scripts reading the wrong Hp/Sp values - Added some missing SC_* entries on the initial listing (potion related and speed up ones) - Fixed function declaration of map_getcellp() git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29* [Fixed]: Lance3-4/+9
- status.c:920: warning: 'mbl' might be used uninitialized in this function - skill.c:6648: warning: 'matk_min' might be used uninitialized in this function - skill.c:6648: warning: 'matk_max' might be used uninitialized in this function - skill.c:2826: warning: 'sid' might be used uninitialized in this function git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29[Optimized ] Lance8-11/+9
Removed unused variable (account_id) in storage_guild_storagesaved. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6815 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29[Optimized] Lance14-22/+19
- Removed unused checks for unsigned data type and possible logic error for char type (gcc treats char as unsigned). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6814 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29Jobchanger fixed typos from Theif to ThiefLance1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29Cleaned up Changelog (guys don't tidy up much do they? xP)celest2-3650/+3650
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6812 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29[Fix]: Ressurect instead of making you die again when logging in.Lance1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6811 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29- Relogging in with 0 HP didn't trigger dead event.Lance3-1/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6810 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28Implemented a small quest in Einbroch and fixed the name of the spawning ↵MasterOfMuppets3-3/+399
mobsters in Lighthalzen. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6809 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28- Added functions status_revive, pc_revive and mob_revive to handle revival ↵skotlex12-99/+130
(it doesn't handles player respawning, though) - Corrected alive, raisemap, raiseall to use these functions. - Updated resurrection/mob-kaizel to use status_revive - Added SC_BLADESTOP to the skill enum at the beginning of status.c (fixes Bladestop causing an unknown status change message) - Fixed MSS_DEAD state skills not triggering. - Corrected some compilation warnings on the merc.* files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6807 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28Changed undeads to by default always sustain 100% of the damage from firewalls.MasterOfMuppets2-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6805 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28Implemented the second entrance to biolabs and added some crap NPCs. The ↵MasterOfMuppets4-4/+252
sewer pipe does no longer require a lab passport, but it requires completion of the cube quest. The second entrance to biolabs does not require completion of the cube quest, but it does require a lab passport. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6804 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28Readded some aDelay fixes which were accidentaly revertedPlaytester2-34/+36
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6803 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28- Reverted buildin_setd to use NULL as reference.Lance1-3/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6802 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28[Fixed] script functions that doesn't pass references, thanks to End_of_exam.Lance2-35/+39
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6801 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28Bah, fixed..MasterOfMuppets1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6800 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28Revert.MasterOfMuppets2-4/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6799 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28Fixed a mistake causing an NPC to appear in bio labs 3 instead of LighthalzenMasterOfMuppets2-1/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6798 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28* [ Protected ] : clif_parse_LGMmessage from possible hacksLance2-3/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6797 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28DTS warper uses binary values; less variables.evera2-334/+181
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6796 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28- Fixed unable to store n items into storage unless n was the total amount ↵skotlex2-3/+5
of items you had. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6794 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28- Suppressed compilation warnings (unsigned and signed mismatches)Lance6-17/+20
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6793 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27- Addded missing include of limits.h to battle.cskotlex1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6792 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27- Added structure status_data which holds status-related information (str, ↵skotlex27-39416/+38599
agi, etc, speed, amotion, adelay, dmotion, weapon-damage, race, size, etc) and weapon_atk structure with the weapon specific info (atk, atk2, element) to be used by all combat structures (TODO: Homun needs to be updated to use it) - Cleaned up TBL_PC, TBL_MOB, TBL_PC and mob_db structures to use status_data. - Set the NPC-Change Attribute duration on Time1, updated their max to 1 in the db. - Berserk's HP cost interval is now defined as time2. - Split damage received functions into pc_damage/pc_dead and mob_damage/mob_dead - Rewrote the @heal related functions to use the new status_* healing functions. - Added status functions to deal with damage and healing (status_damage, status_heal, status_percent_change) and a bunch of defines for easier handling of them (status_percent_heal, status_percent_damage, status_fix_damage, status_kill, etc) - Splitted mob_once_spawn into two. mob_once_spawn_sub creates the mob instance without spawning it. - Added defines for Elements (ELE_*) - Modified battle_calc_(weapon/magic/misc)_attack to use the status data structure. - Rewrote and cleaned up battle_calc_misc_attack - Merged config options pc_attack_attr_none, mob_attack_attr_none, pet_attack_attr_none into attack_attr_none (type 4) - Removed config options player_defense_type, monster_defense_type, pet_defense_type in favor of weapon_defense_type - Cleaned up pet.c to stop invoking status_calc_pc when unnecessary - Modified skill_calc_heal to take into account the MEDITATION bonus. - Cleaned up code of Adjustment, Madness Cancel and other GS/NJ skills inside skill_check_condition - Added status change SC_MODECHANGE which handles mob state changes (this SC is continous until manually ended, eg: like Weight50) - Modified Slim Pitcher so it will work when casted by non-players. Will now also work with SP-healing items. - Rewrote Freedom of Cast code to use function status_freecast_switch to switch adelay/speed when cast begins/ends. - Modified Magic Power to store amplified MATK/MATK2 in val3/val4 for easier updating when used in conjunction with ground skills. - Fixed Asura Strike being usable from within a combo regardless of combo skill. - Modifed SC_DANCING to store speed-change in val3 (it is shared with skill duration...) - Added StatusChangeFlagTable to store which statuses are changed by each SC - Added SCB_* constants to specify the different stats that each sc changes. SCB_PC is the only one that means a change hardcoded in status_calc_pc, the rest are handled by status_calc_bl - Added some helper functions to simplify with basic status calculations (status_base_atk, status_calc_misc, status_base_pc_maxhp, status_base_pc_maxsp) - Added status_calc_mob which calculates initial status and special base status alterations (HP changes, stat changes due to big/small mobs, etc) - Made all the status_calc functions static. - Added status_calc_bl_sub_pc for PC related calculations that must happen after status-change adjustments. - Added status_calc_bl which does status-change related calculations using as base the base_status of the bl object and the SCB_* flag passed. - Added status_get_status_data and status_get_base_status to retrieve the bl objects current status_data and basic status_data (current never returns null, instead it returns a dummy structure with basic data) - The main switch in status_change_start now only sets the tick and val values, therefore it is skipped when loading (flag&4) - Cleaned up status_change_start and replaced many of the ex-japanese comments for english ones. - Changed Hiding to store the speed penalty on val3. val4 stores interval SP cost. - Changed Chase Walk to store Speed adjustment on val3, sp cost in val4 - Changed Cloaking to store speed penalty on val3, val4&2 signals wall-present, val4&1 is infinite cloaking. - Changed Wind walk to store speed bonus on val3 - Rewrote Marionette Control to store the status to add/substract in val3/val4, it now works on anyone (players/mobs) - Changed Improve concentration to store Card bonuses (which are not counted for total % increase) on val3/val4 - Changed SC_ADRENALINE, SC_CONCENTRATION, SC_ANGELUS, SC_IMPOSITIO, SC_MELTDOWN, SC_TRUESIGHT, SC_SUN_COMFORT, SC_MOON_COMFORT, SC_STAR_COMFORT, SC_QUAGMIRE, SC_GATLINGFEVER to store the bonus modifiers in their val values rather than calculate them in status_calc_* - Status_change_start/end will use clif_status_load rather than clif_status_change when related bl is not on a map. - Modified status_change_timer to use the status_charge function rather than directly substracting SP - Added SC_ELEMENTALCHANGE to modify someone's base defense element. - pc_clean_skilltree will now also remove item-granted skills. - Learning skills will now only invoke status_calc_pc when the skill is passive. - Cleaned up pc_steal_coin - Cleaned up pc_check_base/job_lvup to only invoke the lv-up related packets and functions ONCE regardless of skill-levls earned. - Cleaned up pc_ regen related functions. - Made player-sprite mobs have item pickup animation and walkdelay when taking items. - Cleaned up mob_dead code. - Removed paramb, parame from struct map_session_data, replaced them by param_bonus[6],param_equip[6] - mob special ai state 3 signals summon flora. - Moved petDB pet_hungry_timer vars from TBL_PC to TBL_PET - Cleaned up some pet functions, made the menu functions receive as argument both pet and master. - Clones will copy a player's base status rather than battle status (so status-change alterations are not cloned) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6791 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27Fix possible compile mistakes in there. >_>blackhole896-19/+601
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6790 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27Implemented the friendship quest.MasterOfMuppets2-2/+1271
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6789 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27Added Red Chile drop to Kraben & small aMotion fixPlaytester2-3/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6788 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27Temporary fix for Rebirth skillPlaytester1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6787 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27Modified Kiel Lab spawns and changed Rebirth so it still works even with the ↵Playtester3-13/+14
dead skill not trigger bug git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6785 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26And another possible crashLance1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6783 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26* Fixed crashing in mob.cLance2-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26Uncommented Odin and Kiel spawn files, they are mostly safe to usePlaytester4-6/+9
- you still can't access Kiel's place, though git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6781 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26Added missing Odin drops (guessed)Playtester2-3/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6780 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26* Patches to allow everything to work right. + 1 more sample script.Lance11-66/+236
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26Updated Kiel and added Odin mob dropsPlaytester2-12/+15
- low drop rates as long as not known - still missing Makeup Kit, Angel Hairband and not sure which Survivor's Rod git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6777 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26Added a few more events in..Lance4-11/+36
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6776 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26updated descLupus1-3/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6773 ↵Lance2-12/+15
54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6772 ↵Lance1-28/+29
54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6771 ↵Lance3-3/+14
54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26* Mob control engine tested 99% working so far.Lance10-76/+167
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26* Change scripting engine's NPC scope vars to dot (.) style.Lance8-80/+94
* Improved and (should be fully) fixed the mob control engine. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26fixed jeweled boxLupus2-1/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26* Fixed typos in char.c Lance2-2/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6766 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26I'm still here!DracoRPG9-129/+335
Rewrote fame ranking lists git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6764 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26Fixed Abyss Lake spawnsPlaytester2-17/+20
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6763 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26Fixed Thanatos Tower spawns + small fix to mob dbPlaytester3-66/+60
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-25- Simplified ASC_BREAKER by making it a BF_WEAPON attack with an additional ↵skotlex3-28/+10
int-based damage component (which is added right before elemental modifiers). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6760 54d463be-8e91-2dee-dedb-b68131a5f0ec