summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2006-04-22- Added SC_KEEPING/SC_BARRIER to calc_flag in status_change_endskotlex5-121/+27
- Added Option constants for Carts, fixed OPTION_FLYING (it conflicts with OPTION_XMAS?) - Updated clif.c to check for OPTION_WEDDING|OPTION_XMAS instead of view class to block attacks and skill usage. - Removed struct pc_base_job and functions pc_calc_base_job/pc_calc_base_job2 which are no longer used anywhere (were long ago deprecated infavor of the new jobid system) - Cleaned up change-cart code. - Modified SC_XMAS to not change your view anymore and only set the proper option value (OPTION_XMAS) - Cleaned up the code regarding char_gm reading. - Changed the option field to unsigned short to make room for the higher values. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21- SC_CLOAKING's val4 now holds whether cloaking ends or not on attack.skotlex4-24/+22
- Implemented NPC_INVISIBLE, it starts SC_CLOAKING with val4 set to 1, skill duration is 30 secs. - Moved uncloaking on attack from attack_timer_sub to battle_calc_weapon_attack. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6223 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21- Updated the HP/SP leech structures to have race-data attached to them.skotlex6-174/+242
- Merged all leeching code to battle_drain function. - Added an enum for races (they match the RC entries in const.txt, except they are in all caps) - Cleaned up atk_mods and aspd_base to be MAX_WEAPON_TYPE sized rather than MAX_WEAPON_TYPE+1 - Simplified a bit the code for Signum Crucis - Added script bonuses: bonus3 bHPDrainRateRace,<Race>,<Activation Rate>,<Drain %> bonus3 bSPDrainRateRace,<Race>,<Activation Rate>,<Drain %> bonus2 bHPDrainValueRace,<Race>,<Value> bonus2 bSPDrainValueRace,<Race>,<Value> git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6221 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21- Fixed items not really getting unequipped when they should.skotlex1-1/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21- Fixed the equip/unequip scripts not triggering for compounded cards.skotlex1-5/+40
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20- Added two columns to item_db: equip_script and unequip_script are scripts ↵skotlex5-101/+156
that are executed once when the corresponding item is equipped or unequipped respectively. - Removed bonuses bDamageWhenUnequip, bLoseSPWhenUnequip - Updated sql-files/item_db.sql with latest. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20- Raised the buffer size in clif_MainChatMessage to 200, removed the message ↵skotlex2-4/+1
length in atcommand_main. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6197 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20- Fixed buffer overflow in clif_MainChatMessage. It now prints a Debug ↵skotlex1-2/+5
message with the offending line. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20- Cleaned up a bunch of GS/NJ skillsskotlex1-31/+17
- Fixed Gatling Fever crashing server when used by non players. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6193 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20- Added support for n to specify minutes to @charban. skotlex7-12/+20
- Fixed a logic typo on the way dummy_npc_id was defined. - Added state.trading to specify when a trading has started. Now you should be able to walk around until the trade is either rejected or started. - Armor defense is no longer reduced by the amount of characters targetting you. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20- Added back the "you can't walk delay while attacking" to ↵skotlex2-7/+4
unit_attack_timer, now when you want to walk during your attack animation, you will only stop attacking, you will have to click again to move. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-19- Removed the max cap of autoloot so you are now allowed to set autoloot ↵skotlex3-6/+19
values above 100. - Initialized w1/w2/w3/w4 before reading each npc line to avoid sending unread values to the parsers (for example, if w4 has a value in one line and none on the next, it will be parsed with the previous value of w4 on the following lines) - Updated getpartymember to receive an int which specifies what to retrieve. 0: Character names (array $@partymembername$), 1 character char ids (array $@partymembercid), 2 character account ids (array $@partynameaid). By default it returns party member names. - Updated script_commands.txt with the updated behaviour of getpartymember. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6182 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-19- Fixed a typo in map_search_freecell which was returning incorrect cells ↵skotlex1-2/+2
according to the ranges given. Increased the max number of iteration for finding a suitable cell to 100. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6171 ↵Zido1-0/+1
54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18- IRC Bot can now auto-join when kicked from the channelZido1-0/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18- Added @who to IRC Bot, Refer to changelog.Zido1-1/+18
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18- Fixed the delete_timer (@summons, alchemist plants) not invoking ↵skotlex2-2/+4
unit_free, hence causing memory leaks and the like. - Applied jA's patch to fix a bug in the scripting engine in regards to priority of operators. Thanks to End of Exam for the information. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6161 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18- Removed message 592 from trade.cskotlex9-121/+122
- Removed mapflag nopvp - Added support for disabling mapflags on a mapflag line: comodo.gat mapflag nomemo <- turns on nomemo mapflag comodo.gat mapflag nomemo off <- turns off nomemo mapflag - Cleaned up and optimized the restricted/zones mapflag. Restricted cards will just not work in disallowed maps rather than blocking the compounded equipement from being used. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18Modifying st->oid is dangerous. Using sd->state.using_fake_npc as identifier ↵Lance1-2/+1
instead. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6152 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18* Shinomori's method (kinda) of remote script execution with interaction.Lance5-17/+30
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6151 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18cleaned the invisible fix a bit.Vicious2-11/+15
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18better way to fix invisible npc! :DVicious1-39/+23
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6146 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- skill_clear_unitgroup is now invoked in unit_remove_map only on death if ↵skotlex5-38/+25
the applicable battle setting is set. It is now also invoked in unit_free. - Changed setting clear_unit_ondeath to a type 4 (bl-based) which defaults to BL_ALL. - Fixed Absorb spirit sphere not working on mobs, thanks to Vividd. - Cleared the ud->target on pc_stop_attack to prevent attack resuming an other such oddities. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6145 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17Refer to changelogZido1-3/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6144 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- Added @users command to the IRC Bot. Checks no. online users.Zido1-8/+21
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6143 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17Refer to changelogZido1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6141 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- Fixed pet being incorrectly removed when it had intimacy 0.skotlex2-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6139 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- Added state.running to unit_data to make it easier to check for running ↵skotlex8-121/+88
characters (saves having to get the sc data and check for the corresponding timer all the time) - removed pc_run, pc_walktodir, replaced with unit_run. - moved the code that makes you walk that extra cell to unit_stop_walking, which is now invoked before resetting the walk-target. - Flag &2 in unit_stop_walking is now to make the character force-move that extra tile if the walkpath pos is 0 at hit time. - Added variable walk_count to unit_data to be use as a counter for cells walked for walk-triggered skills (walk path_pos is not good enough since it keeps resetting each time the walk path is updated) - Increased WALK_SKILL_INTERVAL to 5 (it is the closest value that makes the average mob trigger a chase skill every second) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6137 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- Fixed TK_RUN having a cast-bar when attempting to stop-running and ↵skotlex2-5/+10
generating timer_delete errors when halting as well. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6135 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17* Clearing the dummy npc after fooling the client.Lance1-22/+42
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6128 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- Fixed the first call to the walk timers having the tick interval halved, ↵skotlex1-5/+14
which made all walking timers be off by half cell with the actual position displayed client-side. - Changed the data component of the walktoxy timers to hold the speed (timer interval) so that when you are halted when walking, if you have walked more than half the distance to the next cell, your position is fixed at the next cell. - If you are halted (damaged) while walking and before reaching the first cell of your walking path, then you are halted at the next cell, this effectively will block stun-lock regardless of aspd of the attacker. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6127 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- Changed the npc_id mismatch warning to be more informative.skotlex2-27/+13
- Modified @monster command to use map_search_freecell (prevents mobs spawning on non-walkable tiles) - Modified @nuke to invoke skill_cast_nodamage_id instead of the damage_id version (fixes sprite and splash damage for the skill) - Corrected Venom Knife's requiring two knives per use. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6124 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16- Fixed Magnum break's animation not showing if the fire-elemental bonus did ↵skotlex3-8/+5
not start. - Removed some last traces of waterlevel reading. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6120 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16- Removed water_height.txt reading (since it is always done from the rsw now)skotlex1-44/+8
- Fixed a possible crash in grfio_find_file - Corrected water-level-reading to account for a return of null from the previously mentioned function git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16Skot please fix the remaining code by removing the fake npc after sending ↵Lance1-1/+1
the input. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6116 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16Initialization in send_fake_npc. Still needs fixing.Lance1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6115 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16- Fixed mysql ping setting being in minutes rather than hours.skotlex5-39/+36
- Removed npc_event_sub from npc.h and moved it to npc.c - Cleaned up #warp to prevent spitting non-walkable tile warnings. - Changed the meaning of msg_athena 2, it is now "invalid target cell, randomizing". git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6114 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16Please fix my packets :SLance1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6113 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16* Sending fake npc for inputs and menus for NPC without map coordinates.Lance2-1/+23
* Fixed npc.h compiler warnings. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6112 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16Optimized. (What am I thinking)Lance1-4/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6111 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16Fix my fix.Lance1-3/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6110 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16* Missing lines in npc_parse_script!Lance1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6109 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16* Experimental npc_event_doall_sub with queue and npc_id allocation when needed.Lance2-29/+42
* Added warnings to npc_scriptcont for easier debugging. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6106 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16- Fixed wrong check of Deluge + Suiton which broke the water-requirement ↵skotlex1-1/+1
check for skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6103 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16- Cleared ud->target on remove-map, it should fix the phantom mob sprite issue.skotlex1-3/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6102 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16* Temperory fixed compiler warnings/errors. Please compile before commiting. ↵Lance1-2/+2
[Lance] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-15- Removed the ->prev != NULL checks in skill_attack due to the fact that the ↵skotlex4-69/+52
code should check elsewhere how it should behave (eg: if traps are not cleared on death, stepping on one afterwards SHOULD cause damage) - Removed use of packet 0x1c9 for skill_unit display, except for Graffiti (which is the only unit which requires the much larger packet) - clif_getareachar_skillunit will sent the unit_id of UNT_ATTACK_SKILLS for traps (this is to prevent them from displaying on the client) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-14- Fixed being able to do all the stuff you shouldn't be able to during the ↵skotlex1-2/+2
petrifying state. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13- Added an Info message when pinging the SQL servers.skotlex3-3806/+3804
- Changed line terminators back to *nix on map.c because otherwise it's impossible to run a diff between the stable and trunk versions of the file. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13- Fixed crash when looking for SC_MIRACLE in battle_calc_weapon_attackskotlex3-19/+22
- Some more standard C code cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6038 54d463be-8e91-2dee-dedb-b68131a5f0ec