387 Commits

Author SHA1 Message Date
skotlex
eb63227578 - Fixed clif_GlobalMessage being the exact same function as clif_message (the fiirst should send to ALL_CLIENT and the later should send to AREA_CHAT_WOS). Should fix globalmes script command.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6596 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 14:43:22 +00:00
skotlex
125e05d3cd - Added SC_BLADESTOP to the switch listing in status_change_start
- Characters in vending are now always considered "idle" if the idle_no_share setting is active.
- Corrected 10 Geminis spawning in Lhz1 rather than 2.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 14:15:04 +00:00
Lance
6fa0186000 * Players with OPTION_INVISIBLE should not be sent to clients.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6594 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 10:19:14 +00:00
Lance
dd4a935ce2 @_@ this is getting more confusing...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6586 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-14 13:08:26 +00:00
Lance
05736737c7 * Bugfix on fake npc
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6585 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-14 12:57:50 +00:00
skotlex
46d5c713cd - Updated cast times of Kaupe and Kaahi.
- Some small code cleanups.
- Sma has cast-dex reducable now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-12 16:30:51 +00:00
skotlex
a0bf90e52c - Changed a bit the MAX_ZENY checks in trade.c to prevent overflows.
- Rewrote npc_selllist for a more proper-clean implementation.
- Increased NPC_POWERUP's dex bonus to +25*lv
- Moved TK_DOWNKICK's stun time from time to time2
- Added TK_TURNKICK's stun to splash-pushed mobs. Duration is 2secs (time2)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11 20:03:22 +00:00
skotlex
fd4f9d05ef - Updated SKA to return a random value between 0 and 99 each time status_get_def is invoked.
- Updated Making Arrow to not include unidentified items in the list.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6540 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 23:04:56 +00:00
skotlex
5e73485603 - Fixed the head_bottom (pet-armor) position in packet 0x22c when crafted for non-players.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6530 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 18:28:10 +00:00
skotlex
e78ae404f9 - ES magic will now put the caster on stun for 0.5 secs regardless of whether the skill-target is a mob or not.
- Added function clif_party_join_info which sends packet 0x1e9 each time a party-member joins. This packet (as redundant info as it has) should also contain the field for "adoptability", but that needs to be coded in yet.
- Added clif_ParseAdoptRequest which does the basic adoption handling. More checks and the reply packets still need to be coded in.
- Happy State and TK stances won't dispel on death now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6521 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 20:53:46 +00:00
skotlex
aae1ae1832 - Fixed compilation error.
- idletime will now be updated on attack-request, not on sit/standup
- Party members sitting will no longer be considered idle.
- hide_gvg_damage will now send 1 instead of -1 as damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 16:19:02 +00:00
skotlex
3b5ab1ba35 - Removed SP_DISGUISE from the bonus list.
- Moved Sharp Shooting display to the block with Auto-Counter (since that's the other skill that can show critical as well)
- Corrected some fields in the still packet (guild emblem being stored as a Long when it should be Short)
- Modified most fields of view_data to be unsigned shorts rather than signed ones.
- On-Touch NPCs will now make you stop walking when you trigger them.
- Reduced stun duration of most skills to 3 secs.
- ShadowJump/JumpKick will make you land on the target's cell now.
- Fixed Kaahi triggering only once per skill duration.
- Added the kaahi_heal_timer to the list of status change functions.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 15:11:25 +00:00
Lance
dacea0478a * Optimized clif.c clif_scriptmenu/input/inputstr to check for sd->state.using_fake_npc before sending one (as it's not required to send twice).
* Reinitialize sd->state.using_fake_npc in clif_parse_LoadEndAck (for scripts that warps players and still continues execution to work).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-07 01:27:29 +00:00
skotlex
db83032024 - Added a npc-script-event cache to avoid looking up event-scripts every time they need to be executed. Events cached are all those defined in script_config.
- Since the cache holds direct pointers to the npcs/events, do NOT unload the related NPCs or you'll get dangling pointers. However, @reloadscript will work fine.
- Set the etc_log to on to see a summary of npcs/events loaded for script execution on startup.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6494 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05 23:22:16 +00:00
skotlex
82ae461fa7 - The Rest bonus activated by using /doridori while in rest should now trigger with all the class tree (TK/SL/SG)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6493 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05 21:25:20 +00:00
skotlex
266148ef5f - /doridori now won't double the HP/SP regen of TKs, it only activates their "happy" state.
- Added the -50 hit penalty when standing on Wall of Fog.
- Cleaned up status_calc_mdef2
- Uncommented the status_calc_mdef2 call in status_calc_pc.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05 17:57:37 +00:00
skotlex
391e5359ad - OnEquip scripts will be trigger on log-on now.
- Infinite Endure will no longer give mdef bonus.
- Removed bInfiniteEndure bonus, Eddga card now uses onequip/onunequip to start/end infinite endure.
- Hammer fall's stun duration is now 1+lv seconds.
- Fixed Kaahi's SP cost per heal.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6487 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05 14:13:03 +00:00
skotlex
740958837d - Now when walkdelay is set to 0, characters will stop walking when hit, but will not have any walk delay.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6486 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05 12:39:28 +00:00
skotlex
4ef4e4dc84 - Stun time for using ES magic on non-mobs reduced to 0.5 secs.
- Eska is now usable on bosses.
- Swoo will stun you if attempted on an already 'swooned' enemy.
- clif_skill_failed will print out a debug line with the skill_id (since the current null_po does not helps at all to fix it)
- Applied TheUltraMage's suggested fixes to the grfio module.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6467 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-04 15:18:30 +00:00
skotlex
01340a866e - Kaite, Kaute will now show a skill effect when they trigger.
- Fusion's cast time reduced to 0.
- Knowledge will now only trigger if you logon to the memorized map, not walk into it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6462 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03 17:53:57 +00:00
skotlex
a312cf5d84 - Corrected @whomap directly invoking msg_table[] rather than msg_txt()
- Guessed where the pet data goes in spawn packet 0x7c
- Updated Charge Attack's state from none to move_enable.
- Made tomahawk an NPC_SKILL so that it may not be plagiarized.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03 14:15:20 +00:00
skotlex
827f003768 - Fixed standing up not really standing you up.
- Moved battle_consume_ammo to the end of skill_castend_damage_id, skill_castend_nodamage_id and skill_castend_pos2 rather than battle_calc_weapon_attack. They will trigger when the player's arrow_atk state is active and a ground skill was not invoked. It should fix all issues with splash/ground skills consuming ammo per target rather than once per skill use.
- Added structure state to the ground skills, their fields are magic_power, into_abyss and ammo_consume to indicate the states that were previously stored in val3.
- Corrected Desperado ammo consumption (should be 10)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03 04:02:17 +00:00
skotlex
9b6b46c455 - Absorb Spirit Sphere now gives +10SP per sphere as per discussions with Haplo.
- Changed a <= into a < in pc_steal_item. This means drops with 0.01% are impossible to steal unless you have at least 100% steal-rate (where steal rate is dex - opponent dex + skill_lv*3% + 10%)
- Cleaned up clif_parse_action_request to enable sitting/standing while in shops, interacting with npcs, etc.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 19:53:38 +00:00
skotlex
5a5d30b660 - Removed OPTION_XMAS, it seems to not exist....
- Added SC_SMA to handle "ready to use SMA" status (rather than SC_COMBO) since it has a visual effect to use.
- Corrected the value of OPTION_FLYING
- Using SG_FUSION ends Soul Linked effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6438 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 00:06:58 +00:00
skotlex
a5b4b2d05e - status_setviewdata will set your option accordingly when the previous/new view-class is wedding or xmas suit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6437 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 22:07:15 +00:00
Lance
49fc4fe81d * Optimized fake npc system. Added npc_checknear back to npc_buysellsel.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 05:48:06 +00:00
skotlex
c24b68e5eb - Some corrections in the clif_parse_whisper function which should fix crashes in the chat_log under "certain" conditions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 03:31:31 +00:00
skotlex
ffea9656f8 - Removed attack_type from sd->state structure (it's only use was for soul-drain!)
- Moved the soul-drain code to skill_counter_additionaleffect


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 06:01:16 +00:00
skotlex
99a6cf0627 - Changed checks of item's identify field from 0/1 to 0/non-zero
- Corrected TK_JUMPKICK to place the caster on the tile next to the target rather than on top of it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 19:03:46 +00:00
LuzZza
c2276ce3e2 Added @noask command: enable/disable deals/invites autorejecting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6376 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 15:54:20 +00:00
skotlex
54e4cd9afc - Added support for packet 0x229 (clif_changeoption).
- Bumped up PACKETVER to 7 to enable use of packets 0x229 and 0x22c
- Small cleanup on the calculation in the skill tree regarding spirit skills.
- Added missing next/prev initialization in chat-creation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6359 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 07:30:19 +00:00
skotlex
552bc8752c - Clones can't be class-changed now
- Readded the class == -1 distance check in npc_checknear
- Replaced check sd->trade_partner for sd->state.trading in clif.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6356 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:13:21 +00:00
Lance
020b35d68a * Using malloc for memory allocations that doesn't need to be pre-initialized.
* Eliminated initializations for pointers returned by calloc.
* Moved grfio_final to do_init since it's not used after server boot.
* Optimized scripts to return CONSTSTR instead of allocating memory just to return a constant string. Some buildin functions still need work. 
* Disabled graph since it doesn't work yet.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:00:19 +00:00
skotlex
6469df410d - Removed the sending of the online guild list when you log-on, may fix the "getting stuck" problem.
- Added battle config default_skill_delay. Specifies the default skill delay for most skills, it is also applied as a walkdelay (total skill walkdelay is default_skill_delay + that skill's can't walk delay)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 13:58:59 +00:00
skotlex
e967ccf396 - Modified clif_skill_nodamage to allow for a NULL source. This is to simplify code related to AL_HEAL/MG_RECOVERY effects where someone shows a healing value, but there's no "caster" in sight (Pitcher skills, Blood Drain, Kaahi)
- Updated Kaahi to use clif_skill_nodamage to display amount healed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 02:41:54 +00:00
skotlex
a5e5db6539 - unit_remove_map will reset attackable-time, canact and canwalk delays.
- Added a timer in clif.c so that walk requests that are done while your cannot move duration will be delayed and processed afterwards (as long as the walk delay remaining is less than 2000 ms)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6329 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 21:00:39 +00:00
skotlex
fc449ba30f - Fixed the compilation error. Gee, how did that slipped by...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 14:43:55 +00:00
skotlex
1a3d6004c5 - Corrected the hit value of the TK kicks (from single hit "6" to multi-hit "8")
- All kicks do 3 hits now.
- Added battle config hide_woe_damage which hides damage on woe maps packet-wise.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6311 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 13:31:29 +00:00
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
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
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
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
ffce65e7bf - Raised the buffer size in clif_MainChatMessage to 200, removed the message length in atcommand_main.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6197 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 19:42:54 +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
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
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
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
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
Vicious
2ee927ae9b cleaned the invisible fix a bit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 03:52:18 +00:00
Vicious
5dbbb0f42d better way to fix invisible npc! :D
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6146 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 03:38:19 +00:00