1536 Commits

Author SHA1 Message Date
skotlex
af55aa1e6e - Updated item_db.sql to current.
- Some small code-cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 23:01:55 +00:00
skotlex
d66d94cd80 - Item use interval is set to a default of 100ms now.
- Updated Full Buster so that the can't act delay carries on to the weapon attack delay and can't use item intervals.
- Added script command getbattleflag to retrieve the current value of a battle_config switch.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6296 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 21:12:08 +00:00
skotlex
dfca545bcf - When Taekwons level up they get Bless and Agi Up level 10 instead of the S.Novice bonuses.
- Increased number of hits for TK kicks. 3 hits for TK_COUNTER and TK_TURNKICK, 2 hits for TK_STORMKICK and TK_DOWNKICK (until further information arrives)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6294 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 19:20:17 +00:00
skotlex
56571363d2 - Wedding Dress/Tuxedo now handle view-change using the onequip/onunequip scripts.
- Removed special state changebase and view-change check on status_calc_pc


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6292 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 15:35:47 +00:00
skotlex
6aa5c83229 - Changed the skill_wall_check to use shoot-path seeking. May fix skill_wall_check setting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6291 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 13:43:10 +00:00
Lance
33916be18e * Fixed typo in skill.c: skill_clear_group
* Fixed command descriptions in script_commands.txt
* Cosmetic changes to script.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6289 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 08:03:03 +00:00
skotlex
d44188210b - Renamed skill_clear_element_field to skill_clear_group, it accepts a flag to determine what to erase. &1 for elemental fields, &2 for traps. Also rewrote how it works to prevent missing elements (since each time an element is erased, the array contents shift)
- Added battle config traps_setting to determine how traps should behave. With &1 traps are invisible if you didn't see them get set up. With &2 traps will be removed after changing maps. The default is 2.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 23:58:19 +00:00
skotlex
65a1e97ed5 - Cleaned up a bit the implementation of SC_MAXIMIZEPOWER, SC_CHASEWALK and SC_CLOAKING to prevent infinite looping timers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6283 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 23:05:54 +00:00
skotlex
3f18944b8d - When battle_damage's flag is &2, the flag 3 is passed to mob_damage so that it won't give exp nor items. NPC_SUICIDE was updated to reflect this.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6282 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 20:47:26 +00:00
skotlex
6fff5230e5 - Moved the mapflag skill restrictions from skill_checkcondition to skillnotok, this makes auto-spells not work in maps where they aren't allowed.
- Added TK_HIGHJUMP to skillnotok, the skill is blocked in noteleport maps (with the exception of gvg ones)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6281 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 20:36:26 +00:00
skotlex
f983dc57c3 - Modified and simplified the random item group format. It now is <GroupID>,<ItemID>,<Rate>, where Rate normally is 1, greater numbers is the equivalent of adding the line multiple times.
- Added constants to identify all groups to db/const.txt
- Cleaned up and updated item_db to use these new constants (warning: item_db.sql needs to be updated!)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 18:05:40 +00:00
skotlex
35cda692bd - Simplified npc_gettimerevent_tick so that it should return a tick value even after the last ontimer label has been reached.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6264 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 03:20:32 +00:00
skotlex
bec2797d52 - All GMs will be sent to the char server through packet 0x2aff now.
- Made mob_searchname compare versus sprite, name and jname now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6263 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 02:51:01 +00:00
skotlex
5c222891f3 - Added script command escape_sql. It will return an escaped string for use in the sql_query script command (in case you want to use input of players in your queries).
- Removed the skill packet from TK_RUN as the client ignores the walkok packet sent right after it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6262 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 23:09:12 +00:00
Zido
e79642ff57 - DNSBL. Refer to changelog.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6258 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 21:08:40 +00:00
skotlex
bf3e426dc1 - Corrected mob_spawn_delay/boss_spawn_delay/plant_spawn_delay settings (they were named rate rather than delay in monster.conf)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6254 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 20:14:02 +00:00
skotlex
e8e49ec9be - Cleaned up @grind2
- Updated @monsterbig, @monstersmall to use the event 2 and 4 rather than the max_mob_db code check.
- Modified override_mobs_names to work only on the mob spawn files.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6252 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 17:46:16 +00:00
skotlex
eac7f93dbc - Added logging of deleted characters when the char_log is enabled.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6251 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 15:55:04 +00:00
skotlex
9f19b5cfdc - Fixed skill_delayfix not altering delay at all after you reached 150.
- Applied ers to pet loot drops.
- Cleaned up the pet loot drop function.
- Mob skill state MSS_ANY won't include MSS_DEAD now.
- Added mob skill state MSS_ANYTARGET ("anytarget") which means any state (except dead) on which the mob has a target set.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6250 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 14:52:11 +00:00
skotlex
72faf33f97 - Added new column to mob_db Sprite_Name to hold the mob's sprite name. Columns Name and JName now hold the mob's english and kro names respectively.
- Currently both Name and Jname have the KRO names, so someone will have to update them.
- Updated mob_db.sql and mob_db2.sql to latest.
- Added battle_config option override_mob_names to make the spawned mob names use the mob_db names instead of the specified names in the spawn files.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6246 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 03:53:29 +00:00
skotlex
cb00c164f7 - Idle skills won't trigger while the mob is walking.
- Idle skills will now trigger each IDLE_SKILL_INTERVAL iterations (10 currently)
- Added support for walk packet 0x22c (disabled currently as it's non-walk packet equivalent is yet missing), it will be used when PACKETVER is set to 7 or above.
- Normal walking will now also trigger mob skills (due to the walk skill condition)
- Updated mob_skill_db: all idle and walk skills had their rate go up x10.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 02:45:17 +00:00
shinomori
1f3b70b776 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6239 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-04-23 10:58:04 +00:00
Zido
7536eb546f - Fixed angelus
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6234 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-22 20:24:49 +00:00
skotlex
41a6c38e23 - Added SC_KEEPING/SC_BARRIER to calc_flag in status_change_end
- 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://svn.code.sf.net/p/rathena/svn/trunk@6229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-22 05:21:24 +00:00
skotlex
47d5784da3 - SC_CLOAKING's val4 now holds whether cloaking ends or not on attack.
- 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://svn.code.sf.net/p/rathena/svn/trunk@6223 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21 19:55:35 +00:00
skotlex
3ffd7ebdb9 - Updated the HP/SP leech structures to have race-data attached to them.
- 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://svn.code.sf.net/p/rathena/svn/trunk@6221 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21 18:42:35 +00:00
skotlex
bd17bad4eb - Fixed items not really getting unequipped when they should.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21 13:35:41 +00:00
skotlex
e49d9e7dac - Fixed the equip/unequip scripts not triggering for compounded cards.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21 03:22:41 +00:00
skotlex
0db2a0aa0b - Char server will now ignore packet 0x65 for already authentified accounts.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6206 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21 00:19:14 +00:00
skotlex
c69118e1e5 - Added two columns to item_db: equip_script and unequip_script are scripts 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://svn.code.sf.net/p/rathena/svn/trunk@6204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 23:24:20 +00:00
skotlex
d6cb791e3c - Fixed buffer overflow in clif_MainChatMessage. It now prints a Debug message with the offending line.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 19:30:24 +00:00
skotlex
91b4a76cbd - Cleaned up a bunch of GS/NJ skills
- Fixed Gatling Fever crashing server when used by non players.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6193 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 16:47:33 +00:00
skotlex
63eec80717 - Added support for n to specify minutes to @charban.
- 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://svn.code.sf.net/p/rathena/svn/trunk@6192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 16:04:47 +00:00
skotlex
a65352a081 - Updated the doc/script_commands.txt documentation in regards to npc mob spawn lines.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 02:52:02 +00:00
skotlex
8c6c2841f8 - Added back the "you can't walk delay while attacking" to 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://svn.code.sf.net/p/rathena/svn/trunk@6185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 00:08:46 +00:00
skotlex
66bab4bc3d - Fixed a pair of wrong mapflag lines in nopvp.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6183 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-19 20:03:15 +00:00
skotlex
8934d52b73 - Removed the max cap of autoloot so you are now allowed to set autoloot 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://svn.code.sf.net/p/rathena/svn/trunk@6182 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-19 18:44:01 +00:00
skotlex
a2ba8edd25 - Fixed a typo in map_search_freecell which was returning incorrect cells according to the ranges given. Increased the max number of iteration for finding a suitable cell to 100.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-19 00:28:42 +00:00
Zido
411991788d git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6171 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-04-18 22:03:40 +00:00
Zido
bc11c8b54f - IRC Bot can now auto-join when kicked from the channel
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 21:28:35 +00:00
Zido
b17413e395 - Added @who to IRC Bot, Refer to changelog.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 21:13:13 +00:00
skotlex
a0b8ab2e66 - Changed the memory manager fatal errors when allocating memory to print out the size request as well as the file and line where they originated.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6165 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 18:37:56 +00:00
skotlex
c176a131f0 - Fixed the delete_timer (@summons, alchemist plants) not invoking 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://svn.code.sf.net/p/rathena/svn/trunk@6161 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 17:07:16 +00:00
skotlex
6b9fd3cf04 - Removed message 592 from trade.c
- 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://svn.code.sf.net/p/rathena/svn/trunk@6159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 16:01:26 +00:00
Playtester
64272bf114 Converted the format of the battle conf files to windows format
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6155 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 14:21:07 +00:00
Lance
c0b1eb7787 * Shinomori's method (kinda) of remote script execution with interaction.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6151 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 11:40:36 +00:00
skotlex
6ec369963a - skill_clear_unitgroup is now invoked in unit_remove_map only on death if 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://svn.code.sf.net/p/rathena/svn/trunk@6145 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 23:54:49 +00:00
Zido
d1f8093b08 Refer to changelog
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6144 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 23:17:24 +00:00
Zido
b8eb36637b - Added @users command to the IRC Bot. Checks no. online users.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6143 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 23:03:58 +00:00
Zido
736c2bd9ca Refer to changelog
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6141 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 19:12:01 +00:00