summaryrefslogtreecommitdiff
path: root/src/map/clif.c
AgeCommit message (Collapse)AuthorFilesLines
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-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-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.Lance1-0/+22
* Fixed npc.h compiler warnings. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6112 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 ↵skotlex1-64/+49
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-11- Changed clif_damage/clif_skill_damage to return the walk-delay based on ↵skotlex1-25/+89
the passed on damage-delay. - Changed battle_damage to accept the walk-delay as well. - Removed the walk-delay timers from unit.c, merged them to battle_delay_damage. - Traps will not be displayed when you walk within their range. - Added HT_DETECTING revealing traps. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05- Some cleanup of clif_parseloadendack, fixed guild-member list being sent ↵skotlex1-6/+13
on all map-changes. - Removed the hardcoded removal of characters who spawn in a castle. All castle maps got the flag nosave now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5909 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05- Added inter config connection_ping_interval which specifies interval in ↵skotlex1-4/+12
hours at which mysql_ping's must be done on all connection handles to keep the mysql connection alive. Defaults to 0 (disabled) - Removed login sql handle from the map server as it isn't used for anything. - Made the login sql handle on the char-sql server be used only when gm_read_method 1 is enabled. - Small fixes to npc_enable, added BL_NPC handling on status_get_sc. - Added a path_search check in map_random_dir, so that the random direction picked up doesn't goes through walls and all that. - Some changes to close-confine, status start will fail when the source is not found or it doesn't has sc-data. - pc_setoption no longer changes the character's class when mounting/dismounting, it only changes the view-class. - The peco-crash-fix from the char servers is still needed. This packet must be wrong! We likely need to sniff it. - Modified the char-txt server to modify the class of mounted characters to their non-mounted version. Added an upgrade_svn file to handle the class update on the sql tables. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-03- Cleaned up (fixed?) a possible overflow in pc_isUseitem, thanks to foobar.skotlex1-2/+2
- When you have the wrong ammo-type equipped the skill-failed message is now "skill can't be used with this weapon", which is less misleading than "please equip arrows first". - Corrected pet-equipment display (I originally assumed they went in the shield view-position, when they actually go in the head-bottom position). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5883 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02- Added preventing sending packet clif_clearchar_id when the character in ↵skotlex1-17/+38
question is invisible. - Added packet 0x7c in clif_spawn which was supposed to be used for non-players. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5869 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02- Forgot to set state.night = 1 in the night timer.skotlex1-1/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5864 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02- Moved the night icon invocation to clif_parse_LoadEndAckskotlex1-138/+100
- Changed function clif_set01e1 to clif_spiritball_single - Removed clif_spawnpc as it wasn't really needed. - Added clif_weather_check to handle the weather changes checks. - Merged Larry's fix of using a timer to get rid of the glow-issue when you login to night-enabled map. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-02* Workround the warnings for clif.c (what to do? the original codes are ↵Lance1-4/+4
ugly.. passing values as pointers omgwtfbbq). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5856 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01- Added function clif_changetraplook to handle changing the appearance of ↵skotlex1-0/+30
traps as they are triggered (rather than using clif_changelook which is meant for view_data objects) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5852 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01- Fixed berserk not raising your HP to your new cap.skotlex1-2/+4
- Fixed ground-skills not displaying damage done. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5851 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01- Fixed a few functions sending a negative ID for disguised characters (such ↵skotlex1-22/+12
as clif_specialeffect) which very likely produced client crashes. - A small cleanup on npc-whispering which could fix a reported crash on it. - Removed the gm-whispering of the charnameack hack notice since it isn't perfected yet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5850 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01Fixed the dynamic shop system memory allocation and id_db problem. Added ↵Lance1-5/+4
sample script. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5842 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01* Dynamic shops support with script callback. (needs testing)Lance1-8/+35
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5841 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01* Fixed compiler warnings.Lance1-3/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01- Added structure view_data to handle sprite information for all characters ↵skotlex1-1736/+823
(equipment, weapons, hair, dyes, etc). Unified a bunch of clif functions now that you only need to handle the view_data (so instead of clif_spawn[pc/mob/npc/pet] you just have clif_spawn) - Fixed the clif_change_class packet (it should check for non players classes, not a class above MAX_PC_CLASS), it fixes morphing enemies. - Rewrote the way cloth dye packets are resent to optimize bandwidth usage. - Fixed the npc_item_flag thing (enable_items/disable_items script command) - Rewrote the disguise implementation to be bandwidth friendly. - Modified the hide options to change your class to INVISIBLE_CLASS, since such classes don't even get their view packets sent around. - Rewrote several clif functions to adapt to the new view_data class; - Added class 139 to npcdb_checkid which was required by some npcs in the swordman quest? o.O git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5833 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01* April fool! Improved soundeffectall script command. (No, this is not a lie)Lance1-2/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5832 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31- Fixed an infinite recursion in the Wedding Recall skills.skotlex1-0/+3
- UNT_ATTACK_SKILLS unit packets won't be sent to the client as they are supposed to be invisible anyway. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31* Should fix a bug in GM stealth mode (@hide).Lance1-24/+32
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5823 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-30- the auth function in login.c won't jstrescapecpy passwords that were ↵skotlex1-1/+17
encrypted. - Moved the Endure and Gravitation sc ends to battle_damage from pc_damage. - Endure level 11 and above are now considered infinite-endure. - Set the minimum pet hungry delay to 10 - modified function skill_delayfix to only receive skill/lv, actual time is now always acquired from skill_get_delay. It also now will never return a value below min_skill_delay_limit. - Modified brandish spear so you won't see the skill-animation for every targetted mob. Also cleaned it up to use map_foreachincell calls. - splitted skill_cast_fix into skill_cast_fix and skill_cast_fix_sc, the first does cast adjustments based on dex and server settings, the later only based on sc changes. Mobs use the later while everyone else use the former (which invokes the later when appropiate) - Added the Steel Body icon to auto-berserk. - Now you can't cast auto-counter while the previous one is active. - For the duration of Berserk, infinite-endure is activated. - Added Veider's suggestion to do a hack-report when players request the name of an invisible/cloaked character. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-28* Modified clif_getareachar_pc to hide hidden GMs from normal players ↵Lance1-20/+23
(players with GM level > 0 still able to view) by NOT sending the coordinates. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-28- Small fix that should help on multi-map servers when characters are ↵skotlex1-1/+2
swapping between servers too quickly git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27- HW_GANBANTEIN now also removes traps.skotlex1-2/+29
- PF_DOUBLECASTING takes effect amotion time after the initial cast instead of amotion*div - SG_KNOWLEDGE now lasts time1 after you quit a map before it clears out (defaults to 10 mins currently) - Modified Intravision to modify the status-change packet to specify SI_INTRAVISION instead of cloaking/hiding/chasewalk. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27- Pet catching now uses the menuskill variables to prevent item usage from ↵skotlex1-3/+8
disrupting the catch process. - Added Safetywall to the list not blocked by Dispell. - Added some include limits.h required by window compiles. - Corrected Wedding rings being trade-able. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27* GCC on Cygwin still complaining, resorted to including limits.h in malloc.hLance1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27* Refixed the fix with a constant list for Win32 users - limits.h (imported ↵Lance1-0/+1
from MSVC) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27- Changed status_point/skill_point to unsigned short. Adjusted the code as ↵skotlex1-7/+7
necessary to prevent overflows. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-25- Fixed a pair of "Conditional jump or move depends on uninitialised ↵skotlex1-0/+2
value(s)", thanks Valgrind! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5747 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-24- Fixed Warp Portal.skotlex1-2/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5740 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22- Merged the unit_data structure from jA for handling unit-related data ↵skotlex1-94/+88
(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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-21Fix on not showing guildmembers logins/logouts messages.LuzZza1-0/+44
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-19* Recoded getmobdata script function. Fixed mob_damage typo sd -> mvp_sd. ↵Lance1-43/+43
Cleanep up confusing indentation in clif.c. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-17* Final fix on Juperos NPC.Lance1-0/+6
* 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5638 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16* mob_chat_sub fix. Added buildin_pcblockmove. Lance1-2/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5628 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16* BL_PC and BL_MOB control script commands (experimental).Lance1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15- Added mapflag nodrop, fixed mapflag notrade.skotlex1-1/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15- Fixed a possible crash in Venom Splasher if the countdown is too high.skotlex1-1/+1
- Small cleanup in clif.c hoping that it'll fix a mysterious crash. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5606 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14- Fixed incorrect range check in autospell2 triggers.skotlex1-1/+1
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5598 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07- Added a check that forces self skills to cast on yourself in skill_use_idskotlex1-1/+5
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5501 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05- Fixed a pair of missing map_freeblock_unlockskotlex1-3/+3
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04- The rate passed to status_change_start must now be in 0->10000 range.skotlex1-35/+7
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03- Fixed crash on the NPC whisper system when the message's size was 1.skotlex1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5452 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03- Fixed compilation error on windowsskotlex1-7/+3
- Strip sc's are now removed on logout. - Some cleanups git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5451 54d463be-8e91-2dee-dedb-b68131a5f0ec