351 Commits

Author SHA1 Message Date
skotlex
ec6a69b266 - Fixed Warp Portal.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5740 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-24 23:58:40 +00:00
skotlex
7a8371273a - Merged the unit_data structure from jA for handling unit-related data (attack times, walking, auto-attack timers, skill related data)
- Modified unit_skillcastcancel to receive flag&2, which stands for "cancel casting only if current skill is cancellable"
- Battle config options changed from yes/no to BL_TYPE settings: skillrange_by_distance, skill_noreiteration, skill_nofootset, gvg_traps_target_all, skill_log, attack_direction_change, auto_counter_type
- Clif.c will disconnect sessions that send an unknown command packet above 0x30000 instead of just ignoring it.
- Cleaned up/rewrite of the pet ai, same for pet_calc_pos
- Implemented use of mob variable attacked_players as it is used on jA
- Cleaned up error reporting during mob-skill loading to be less spamy with non-loaded mobs.
- Corrected water_height reading. I forgot to give credits to LittleWolf for providing the water-reading function :X


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 23:58:16 +00:00
LuzZza
12408e51c3 Fix on not showing guildmembers logins/logouts messages.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-21 17:46:27 +00:00
Lance
6ef4e75bb4 * Recoded getmobdata script function. Fixed mob_damage typo sd -> mvp_sd. Cleanep up confusing indentation in clif.c.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-19 04:36:53 +00:00
Lance
ceea8fde6c * Final fix on Juperos NPC.
* Fix on initnpctimer not attaching rid.
* Fix on OnTouch ignoring -1 NPCs.
* Fix on @reloadscript crashing due to passing non BL_SKILL bl to a function that accepts only BL_SKILL bl.
* Added area NPC detection in clif_parseLoadEndAck.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5638 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-17 06:39:58 +00:00
Lance
d5cf7d95e0 * mob_chat_sub fix. Added buildin_pcblockmove.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5628 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16 16:08:01 +00:00
Lance
46bdee18f9 * BL_PC and BL_MOB control script commands (experimental).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16 15:39:49 +00:00
skotlex
8955a37a9b - Added mapflag nodrop, fixed mapflag notrade.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15 21:07:00 +00:00
skotlex
40a34b3912 - Fixed a possible crash in Venom Splasher if the countdown is too high.
- Small cleanup in clif.c hoping that it'll fix a mysterious crash.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5606 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15 02:55:50 +00:00
skotlex
2f09d39c17 - Fixed incorrect range check in autospell2 triggers.
- Modified Wedding recall skills to behave as in officials.
- Modified Arrow Shower to be a ground-based skill and work as it should on officials.
- Fixed skill_additional_effect triggering every time you were being hit even if no damage was returned.
- Fixed battle_calc_damage_return to make magic damage be returned by 100%, and received damage nullified


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5598 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14 17:51:42 +00:00
skotlex
fad5deaa7b - Added a check that forces self skills to cast on yourself in skill_use_id
- Skills with INF_SELF_SKILL + INF2_NO_TARGET_SELF are now "combo" skills in the sense they auto-select your attack target, and do not stop your attacking animation. Attackable time by default is adjusted by amotion.
- Gospel won't start taking effect until after 10 secs have passed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5501 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 21:31:01 +00:00
skotlex
9e7f9a41ad - Fixed a pair of missing map_freeblock_unlock
- Changed around a bit the code of the skill_get defines to return 0 if you ask for an id of the place where the guild skills are placed. Also moved the guild skills block to ID 900~915. Also stuff like skill_get_inf will return the relevant guild data as defined on skill_db.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05 16:06:30 +00:00
skotlex
db973e2998 - The rate passed to status_change_start must now be in 0->10000 range.
- Added macros sc_start and sc_start4 to simplify invocation of status_change_start.
- Cleaned the active guild skills, requirements moved to skill_check_require, should now be usable by non-players as well (pets/mobs).
- Updated skill_cast_db time info. Magnum's time2 is skill-block time, St. Recovery/ Cure's time2 is the confuse/blind duration, added NPC_POWERUP/NPC_AGIUP durations, Napalm Vulcan's time2 is curse length, and most of Tarot Card's effects last time2 as well.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04 01:54:56 +00:00
skotlex
389c773fd2 - Fixed crash on the NPC whisper system when the message's size was 1.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5452 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 22:28:15 +00:00
skotlex
1e302d8177 - Fixed compilation error on windows
- Strip sc's are now removed on logout.
- Some cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 20:01:00 +00:00
skotlex
373436fbde - Added event 8 for mobspawns that should spawn with special ai set.
- Modified battle_check_target so that mobs with special ai's default enemy are mobs with no special ai.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 17:15:09 +00:00
skotlex
8a67a7cf35 - Fame list size is now defined by MAX_FAME_LIST constant (mmo.h)
- Char server can now specify the max size for blacksmith/alchemist/taekwon rankers.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5435 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 21:11:50 +00:00
skotlex
f6b78466ab - Fixed the CL_WHITE define, thanks to FlavioJS
- NPC break equipment stuff now has a 1.5% per skilllv success rate.
- pc_setpos won't random warp players if placed on top of Moonlight Petals
- Removed the check in clif.c for npc_shopid as the client never sends a packet when the trade is cancelled...


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-24 04:04:24 +00:00
skotlex
260f904cea - Player-summoned mobs won't level up now.
- Fixed Super Novice explosion spirits triggering no matter what you said on the third line. It now triggers on the fourth line....
- Fixed GTB blocking targetted spells when gtb_pvp_only was set.
- Merged the code of Ankle snare and Spider web. It no longer moves target if sc failed.
- Players should stop walking as soon as they start vending or get into a chat.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-24 01:16:33 +00:00
skotlex
ada437dcaf - Added mob skill conditions myhpinrate and friendhpinrate for using HP ranges instead of a fixed "less than" condition.
- Added mob_ai condition &16, enables skills that are normally used on 'friends' to also pick up caster as target.
- Fixed npc_shopid not being reset to 0 when buying/selling. FIXME: The client sends a packet when you cancel? It is required so that npc_shopid will be cleared and prevent the player from being stuck.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5380 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-23 21:33:35 +00:00
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
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
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
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
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
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
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
59e17a948b - Modified PA_GOSPEL so that the random damage attack becomes a BF_MISC attack.
- Added pc_resetskill when lowering job level and there's not enough skpoints to substract.
- Fixed compile error of SG_FUSION in pc.c
- Modified pc_resetskill to receive a flag to indicate if it should or not do status_calc_pc and send skill block updates. Meant to optimize performance when used in the middle of a larger update.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5269 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 16:54:24 +00:00
skotlex
5e170d8da9 - The status window now shows the addition of the damage of your both weapons when dual wielding.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5256 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-11 04:46:36 +00:00
skotlex
2a9dbcf690 - Code rewrites in mob_damage and party_exp_even_share for correctly handling overflow issues. Now uses UINT_MAX for range comparisons, as it should be.
- Also modified the mob_db reading to use UINT_MAX for exp limits, changed their exp/job exp fields to unsigned int as well.
- Modified multi_level_up behaviour to work as specified by Kyoki.
- removed functions pc_next[base/job]after as they are no longer needed.
- Modified the skill attack display of Meteor Assault and the Warm Skills (I think the caster should no longer do fancy animations now on each hit)
- Added back water elemental targets being inmune to SC_FREEZE
- Fixed the status_change_start line in charsave.c (I knew I was forgetting something)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5235 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-09 14:21:41 +00:00
skotlex
d25d952fc6 - Cleaned up and reorganized status_change_start. Now it also receives the success % rate (0->100)
- Added local function status_get_sc_tick which takes care of reducing the effect duration as need is be.
- Modified status_get_sc_def to handle defense against all related statuses, now returns defense on a scale where 10000 is 100%.
- Added time2 to pangvoice, it is the player effect's duration while time1 is for the mon's effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 16:56:53 +00:00
skotlex
d69479b946 - Added define clif_deadsit to send the dead state into player packets if the player is in trick dead state.
- Venom Splasher always hits (but splash damage targets can still avoid it)
- Using autoloot with no arguments now toggles it between @autoloot 0 and @autoloot 100%
- Falcon Assault now takes Blitz Beat lv5 as base damage.
- Fixed pc_makesavestatus not updating status.option correctly.
- Corrected Waterball so that higher levels can do insane amount of hits.
- Altered slave behaviour. No more random walking, will stay within 2 cells of their master.
- Reverted the Summon Slave behaviour to not adjust level based on number of current slaves.
- Coma no longer sends SP to 1.
- Updated Meteor so that when level 11 or more is casted, the area over which meteors fall is tripled.
- Dark elemental characters are now inmune to Curse.
- Fixed sc_data saving to sql buffer building method. Thanks to its_sparky.
- Changed the map zone reading from using pow to a bit shift.
- Experience has now been changed to unsigned int, and is read as such from the dbs.
- Increased HT_DETECTING seek range to 7x7
- Added function map_foreachinrange which actually checks distance of nearing objects (unlike for each in area which uses a square area), may come handy for future code.
- Corrected Venom Splasher: Being hit does not cancels it, works at 75% or less of target's HP, being hit normally while under the count has a chance of causing poison. Damage is +400% + 50*lv%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-06 18:38:51 +00:00
Valaris
8e410ec582 * Added some of eAIRC bot code, written by me and LittleWolf. It is disabled and has no configuration options yet, as it is not finished. [Valaris]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5201 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-05 17:53:53 +00:00
skotlex
697d29d7d4 - Fixed a typo bug in SC_STAR_COMFORT handling.
- Fixed a possible crash bug in SC_POISONREACT handling.
- Simplified the skill trigger code for ST_PRESERVE, SG_FUSION, SG_*_COMFORT
- Unified the status change variables into a single structure (sc_count, opt1, opt2, opt3, option, and the array of status change data) which should make it easier to handle sc related stuff.
- TK_DODGE now won't trigger if your opt1 is set ;)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 17:17:09 +00:00
skotlex
4f5babb97d - Changed the exp tables format.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5135 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-31 13:45:04 +00:00
skotlex
cff16d36a9 - Autoloot now uses the item's base drop chance rather than final drop rate to determine if it should autoloot the item or not.
- Fixed super novices getting +10 to all stats temporarily whentheir death count isn't zero.
- Fixed Kahai displaying HP-SP as the total healed instead of HP
- Cleaned up skill_repairweapon to prevent crashes when the target vanishes/changes/whatever before the weapon to repair has been selected.
- Parsing the Storage/Guild Storage from the char server will now fail if the storage has been modified and not saved yet.
- Being hit now cancels confuse.
- Added back the bleeding icon.
- Fixed Combo Finish Soul Linked Effect being a 11x11 area o.O


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5121 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 16:19:31 +00:00
Valaris
2178a86317 AS OF SVN REV. 5901, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EVERYTHING ELSE
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5094 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:10:48 +00:00
Valaris
fd99753f8e Clearing trunk.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:00:45 +00:00
amber
616a90cc09 G++ is now the default on trunk [MouseJstr]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@1443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-07 18:42:53 +00:00
celest
171609d4a2 * Readded @disablenpc
* Fixed @reloadscript not removing old NPC's and monsters first
* Some changes in mob and NPC unloading
* Changed the original @disablenpc to @hidenpc

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1429 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-07 15:14:35 +00:00
celest
67a9cafa79 * Fixed a crash in clif_send when checking packet version
* Fixed a crash in Deluge, Volcano and Violent Gale
* Allow super novices to rent carts from the Kafra

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-06 11:55:55 +00:00
amber
ae0db54f77 More g++ fixes to make it cleaner [MouseJstr]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1362 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-31 20:23:57 +00:00
amber
5f5b45e2a4 eAthena VC7 solution and support added for native builds [MouseJstr]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-30 22:14:36 +00:00
celest
72f63ee03e * updated map server to jA1137~1159
* Some tidying up in mob.c and skill.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1342 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-30 11:44:12 +00:00
amber
dfd7258882 Fixe compile time problems with our mixed C++/C conformance
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 06:18:21 +00:00
amber
150683e2e6 Fixed use of storage variable to conform to ANSI C spec [MouseJstr]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1327 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 05:05:50 +00:00
celest
5927adb9bd * Some tidying up in mail.c
* Added an invalid pointer check in clif_displaymessage

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1320 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 03:37:06 +00:00