1946 Commits

Author SHA1 Message Date
skotlex
04d6132e76 - Moved back Soul Drain code from mob_dead to skill_counter_additional_effect. Now we are back to where the skill animation does not shows, but you DO get SP T.T' (fixing this is turning out so difficult...)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7253 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 16:10:19 +00:00
Lance
715c9e9a69 Reverting my change.. lalala
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7252 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 15:25:28 +00:00
skotlex
44a9bcba8f - Some cleanups and corrections in battle.c to account for negative (absorbed) damage.
- Fixed umbala.txt's Elemental Stones Quest bug. Thanks to Vhan Morthis.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7250 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 15:19:25 +00:00
skotlex
3833a911c5 - Fixed the compilation errors of my last commit... >.> <.<
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 14:50:43 +00:00
skotlex
ba4de26c1e - Removed the mysterious array of two of char_dat (char/sql server), replaced it with a static structure.
- Added function char_loadName to extract the character name of a given ID.
- Fixed fame-list updating crashing char-sql server when the given char-id just got into ranking.
- Sorry I didn't check if it compiles cleanly because I don't have sql here <.< (am gonna test it in a second, though)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7248 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 14:45:26 +00:00
Lance
6e67ac7a7e Idiot RO client have inconsistent signed/unsigned shorts
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7243 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 08:32:43 +00:00
Lance
6d57c556d9 * [Fixed]:
- Typo in status.c add_sc() using 'skill' instead of 'sk' as index, resulting in filling the SkillStatusChangeTableArray with junk data.
- > NEEDS CONFIRMATION < Ends casting if player is knocked with freezing/stun/whatever

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7241 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 07:37:23 +00:00
Lance
67e445d784 * [Fixed]:
- Typo in parse_frommap.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7240 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 06:13:21 +00:00
Lance
b72d2b9a66 * [Fixed]:
- clif_initialstatus using SHRT_MAX instead of USHRT_MAX for status_point

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7237 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-18 15:02:27 +00:00
Lance
0985a26455 * [Temperory Fixed]:
- Crashing of SQL char-server in parse_frommap case 0x2b01.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7236 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-18 11:38:19 +00:00
Lance
93aac53572 - Fix for #102547
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7235 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-18 09:11:43 +00:00
Lance
a800be65ec git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7234 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-18 02:54:17 +00:00
Lance
61cf41923c * [Removed]:
- Large part of scripted mob control commands are removed.
- Large part of scripted player control commands are removed.
- Scripted mob slaves changing master ID.

[Added]: 
- Unit control commands.
- CALLBACK_NPCCLICK for scripted mobs, added this to db/const.txt too.
- Macro RECURSIVE_MASTER_CHECK in battle.c

[Modified]: 
- buildin_skilluseid and buildin_skillusepos -> buildin_unitskilluseid and buildin_unitskillusepos.
- md->callback_flag to short (double word).	[Lance]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7233 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-18 02:42:41 +00:00
skotlex
7e10a0586c - Added IG_LottoBox for that tricky Lotto Box item.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 17:13:57 +00:00
skotlex
370e1df5bd - Devotion absorbed damage will now appear to come from oneself (instead of the original attacker changing directions towards the Crusader)
- Updated clif_refres to send inventory, cart, and weight info.
- Fixed intif_guild_memberinfoshort to not leave a dangling pointer when someone logs out <.<
- Cleaned up a bit guild_check_member


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7226 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 16:23:57 +00:00
Lance
58b728cc4a * [Added]:
- buildin_checkcell, buildin_mobwarp, buildin_pcattack.
* [Improved]:  
- buildin_skilluseid and buildin_skillusepos to accept a few more arguments.
- mob_script_callback to return sucess value.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7219 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 07:48:10 +00:00
skotlex
bf907b14ae - Fixed the party HP packets to send max HP 10000 and scale HP accordingly when the player's HP doesn't fits in the packet's field. Fixes HP bars not correctly displaying the % of life when max HP is above 32k.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 06:52:06 +00:00
skotlex
3f63aa775e - Fixed option value being reset'ed on login (fixes cart/peco/falcon being lost)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7217 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 22:31:16 +00:00
skotlex
24159ab464 - Corrected @speed to alter your base speed instead of battle one. Means the change remains for much longer (until status_calc_pc is invoked, which could be due to equipping/unequipping stuff)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:59:22 +00:00
skotlex
ece6f8f781 - Removed unused variable aspd_rate in map_session_data.
- Modified aspd_rate in status_data to hold aspd change on a base of 1000 = 100% rather than 100 = 100%. All status changes that affect aspd have been updated. Study and Single Action should now correctly give +0.5% aspd per level.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7213 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:49:28 +00:00
skotlex
974277a787 - Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100 setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic damage be reduced by half. This bonus stack, so two cards with bNoMagicDamage,50 will give magic immunity.
- Removed setting gtb_pvp_only and replaced it with gtb_sc_immunity which specifies the threshold before the bNoMagicDamage starts blocking support statuses as well. ie: gtb_sc_imunity: 75 will mean that "bonus bNoMagicDamage,70;" reduces magic damage by 70%, but does not blocks heal or support status, while "bonus bNoMagicDamage,80;" does.
- Updated GTB's card script to be "bonus bNoMagicDamage,100;"


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7212 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:35:27 +00:00
skotlex
b45cf7f99c - Whoops, fixed compilation issue on mob_dead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7210 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 16:44:27 +00:00
skotlex
5ebc258ce8 - Removed db_tables.sql as it's no longer used.
- the mvp_sd is removed when the mob is the emperium and there's no killer/exp-awarded (assumed killed by script), this prevents the on-kill event from triggering and giving the castle to whoever damaged the most the emperium without destroying it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 15:39:16 +00:00
Lance
d79df825cd - Removed return from CALLBACK_ASSIST
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7205 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 15:11:39 +00:00
Lance
68a5b7bea5 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7204 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-16 14:52:44 +00:00
Lance
971900f126 * [Added]:
- Added option #25 to buildin_setmobdata to set the callback_flag.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7203 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 14:46:15 +00:00
Lance
397f255a23 * [Improved]:
- Cleaned up Custom Mob Script Callback codes. Looks much better now :B.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7202 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 14:42:16 +00:00
Lance
cb523907f0 * [Fixed]:
- intif_parse_RenamePetOk for not compatible with ANSI-C initialzation specification.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7199 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 07:07:02 +00:00
skotlex
c185d6ae82 - Merged Adam's patch to let the char-server handle validation of pet-name-change requests through the allowed char letters config.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 03:05:29 +00:00
skotlex
196a7240bb - Fixed "wedding_ignore_palette: yes" not working when relogging with the gear already equipped.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7189 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 22:23:47 +00:00
skotlex
981af2f058 - Added blocking of the Kick skills when you are a Soul Linker.
- Added enabling to turn off a kick-stance regardless of class.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7187 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 21:24:57 +00:00
skotlex
a14314da55 - Altered a bit how status_set_viewdata behaves in regards to Wedding/Xmas options.
- Added back OPTION_XMAS, but the actual value is missing!
- Corrected chrif_save so that the player is not set offline on map-change.
- Added change-look support in pc_setoption when specifying OPTION_XMAS
- Fixed clif_parse_RemoveOption removing all options instead of just Falcon/Cart/Peco


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7183 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 18:56:54 +00:00
skotlex
553c87f39e - Fixed clif_send not sending packets to SELF when specifying AREA if the source is not on the map yet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 14:48:35 +00:00
skotlex
63c259b4c8 - Fixed and cleaned up script command 'equip'
- Fixed 'autoequip' items.
- Fixed Aspd not being updated in your status window after Agi/Dex increasing statuses take effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7179 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 14:15:16 +00:00
skotlex
38f30d053d - Fixed map_nick2sd so that searching for "Adam" will not match a char named "Adam Smith". Thanks to Adam for reporting it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-15 01:40:59 +00:00
skotlex
f9c36c217e - Modified how luk reduces status changes by reducing the gap. Eg: resist = vit; resist += (max - resist)*luk/300;
- Added battle settings pc_max_sc_luk/mob_max_sc_luk to handle which is the luk threshold at which you gain inmunity (defaults to 300).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7168 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 20:10:36 +00:00
blackhole89
f7fa729e23 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7164 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-14 17:13:56 +00:00
skotlex
c811ab0d88 - blocked again skill usage during marionette.
- Some minor code cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7162 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 15:35:25 +00:00
skotlex
e74e095778 - Fixed main.sql adding a key on char_id rather than account_id for the char table.
- Cleaned up character saving in char-sql, it no longer needs to query the database to see if the player exists on each char-save, instead it checks the received data against the online-players db. 
- Added an error message on the char-server when the received player data size does not matches with the expected size (should avoid the crash that happens on such a memcpy).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7160 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 14:18:30 +00:00
Lance
4ef75d85f3 - A quick fix for lazy scripters -_- sheesh
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 08:57:38 +00:00
Lance
0ec9bef7cb * [Improved]:
- script_save_mapreg for MapregSQL Saving to display perfomance only in slow queries. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7150 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 08:00:48 +00:00
Lance
54b592fe29 * [Improved]:
- npc_parse_script to show information and remove duplicated NPCs.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 06:55:27 +00:00
skotlex
227f21ee71 - Fixed a packet_ver error with the #defines in clif_spawn.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7145 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 21:29:04 +00:00
skotlex
324bf6e522 - Fixed compilation error on clif.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7135 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 17:41:04 +00:00
skotlex
c5909b0e34 - Marionette and Devotion will now check raw distance and ignore obstacles and the like.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7134 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 17:37:08 +00:00
skotlex
785e089deb - Added irc_channel_pass setting and prevent crashing when irc server lookup by host fails. Thanks to Trancid for the details.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7133 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 17:02:03 +00:00
Lance
d9b25389a7 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7130 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-13 15:32:46 +00:00
Lance
6dd1c22d41 * [Fixed]:
- clif_parse_GetCharNameRequest displaying false alarm for legitimate GM snooping.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7129 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 15:32:25 +00:00
skotlex
89a6b23a92 - Added HM_SKILLBASE, MAX_HOMUNSKILL to specify the skill level range of Homunculus.
- Added support for reading correctly status change data from Guild and Homun skills.
- Added support for reading Homun skill data (which means the HM skills are now safe to add to skill_db, skill_require_db, etc)
- Moved StatusSkillChangeTable to StatusSkillChangeTableArray and made a function called StatusSkillChangeTable to do the conversions taking into account HM/GD skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7128 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 15:06:16 +00:00
skotlex
9c860c13a4 - Oppositions can't be made during WoE now.
- Fixed a few compiler warnings from VC
- Commented out the Homunculus Skills<->Status Change link which was causing some memory corruptions.
- 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7127 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 14:06:05 +00:00