summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2008-01-21Fixed/cleaned r12114 and 12117.ultramage3-20/+15
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12119 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-21Fixed battle config loading not applying the side-effects of ↵ultramage1-14/+16
battle_adjust_conf() side-effect if an import: operation fails. This is what caused the odd slowdown reported in bugreport:260. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12118 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-21- Optimized some code about @size changes in chars.zephyrus3-8/+29
- Fixed #jailtime (Bug Report 853) crash. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-20- Fixed a comparison whn doing item searchesskotlex4-24/+15
- Fixed hom_setting&0x2 conflicting with the 'view-range' limit check. - Stone curse now uses status_percent_damage instead of a precalculated value. - Merged the SA_MONOCELL and SA_CLASSCHANGE code. After changing class all the status changes that cannot be triggered on bosses are dispelled. - SA_CLASSCHANGE now uses the bloody branch list to pick a target MVP class. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-20Fixed yet another status code crash, this time when a stonecursed mob with ↵ultramage1-0/+7
high maxhp changes class to a Poring (see bugreport:621) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12097 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-20Expanded a mapserver's debug message in its interserver parsing function.ultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12094 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-19Added back periodic user count updates that got replaced in r11703, but are ↵ultramage1-0/+3
neccessary as the current method doesn't work correctly (bugreport:688) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12090 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-17- Made battle_check_range fail whenever the distance between src/target is ↵skotlex1-1/+5
greater than the viewing range. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12084 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-17Icewalls can no longer be knocked back (see bugreport:38)ultramage1-2/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-15* Manner system fixingultramage4-35/+97
- better-than-aegis 'red bubble' packet updates; now it shows correctly - added support for /rc, which is basically mute for 60 minutes - fixed typo in r12076 making gm-mute start on the gm instead of target - fixed @mute not ending the status properly when using negative values - adde missing clif_manner_message(), sends info about manner updates git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12079 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14- Fixed missing mob_spawn call, which was making CR_CULTIVATION not actually ↵skotlex1-1/+3
spawn the plant. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12077 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14* Client packet correctionsultramage5-129/+177
- 0x01df is not 'gmreqnochatcount', but for requesting a player's account name via right-click menu (which currently can't be done) - added /remove and /recall, aliases to /shift and /summon - added /changemaptype, which alters a single cell's gat type - gm kick will no longer exit the client (now it goes to the login screen) - removed the quicksort invocation in /ignore code git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12076 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14Fixed card removal script functions' 'extra card' bug (bugreport:786)ultramage1-61/+60
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12075 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14Removed the hardcoded limit for numeric npc input boxes (bugreport:811)ultramage1-6/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14Applied a temp patch to make some npc-executed atcommands work again ↵ultramage6-37/+29
(bugreport:790). Added support for right-click-gm-menu kicking NPC objects. Removed redundant function npc_checknear2(). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12073 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14Simplified the BL_CAST macro (see topic:166795)ultramage6-86/+77
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-13- Fixed a compilation warningskotlex1-4/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12071 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-13- Fixed dangling pointer crashes when bleeding or Deadly poison kills a ↵skotlex1-5/+11
spawn-once monster. - Fixed a possible ERS entry corruption when Deadly Poison kills a target that has kaziel active. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12069 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-13- Removed the sc_start_abort define. Since now when a status already exists, ↵skotlex1-21/+10
it is not modified in any way (no timer deleted, no sc->count reduced), it is completely safe to allow a simple return from within the rest of the function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12068 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-13- Fixed a possible ers_entry corruption if you die from bleeding while under ↵skotlex1-1/+1
the effects of kaizel. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12063 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-13- Updated Safety wall so it does not blocks melee magic.skotlex1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12062 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-13* Another possible fix to ers/status_change crashing.FlavioJS1-23/+31
- same logic as r12058 but in status_change_timer. - look out for this error: "[Error]: status_change_timer: Unexpected NULL status change id: ### data: ###" getting it means that a crash was avoided and the culprit found. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12061 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-12* Modified npc_parsesrcfile to read the file as binary and let sv_parse ↵FlavioJS1-2/+2
handle LF/CRLF line endings. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-12* Possible fix to ers/status_change crashing. [FlavioJS]FlavioJS1-10/+19
- this patch is untested. Didn't find anyone willing to test it and I can't reproduce the crash so can't test the patch. symptom: status_change_entry.timer is being modified after the entry is freed. ers uses that memory location as a pointer when the entry is freed, it crashes when accessing the contents when it points to an invalid location. assumption: status_change_start starts an already existing status. as a consequence of something called inside status_change_start the status is ended. when the sce is finally being modified, it's modifying a freed entry. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12058 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-11Applied Skotlex's alternative to r12044 (abracadabra fix)ultramage1-9/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12054 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-11- Implemented the extra damage bonus to TK_JUMPKICK when it is used while ↵skotlex2-5/+10
running (however what the bonus's equation is has been lost to time, so someone else correct it). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12053 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-11- Corrected CR_CULTIVATION to cause summoned plants to expire after 5 minutes.skotlex1-3/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12052 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-10- Fixed getmonsterinfo to return "null" when returning the name of a ↵skotlex7-26/+37
non-existing mob instead of -1. - Extended the status_percent_damage define to include a bolean to specify whether or not the target can be killed from it. - Corrected CR_CULTIVATION to fail when the target cell has some BL_CHAR on it already. - Changed the meaning of 'flag' in status_percent_change, to enable differentiation between damage that can kill the object and damage that cannot. - Script command percentheal will no longer kill the player if the specified amount is negative (and not -100). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12051 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-10Fixed Abracadabra unable to cast non-targeted skills (bugreport:186)ultramage1-9/+15
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12044 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-10Another round of login server cleaningultramage3-10/+8
* fixed passwordencrypt on SQL not behaving correctly (since r10753) * corrected some column lengths in the login db (username, password,...) * fixed some places which used wfifo without first reallocating it * removed interserver packet 0x7532 (Request to end connection), as there was no code that actually sent this packet * moved RFIFOSKIP actions to execute as soon as possible git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-10- Removed 'skill_steal_type' from skill.conf as said config no longer exists.skotlex5-33/+34
- Corrected @slaveclone/@clone behaving as @evilclone when you change the @ symbol. - Modified SC_ARMOR_ELEMENT so it grants elemental resist as if it they were card granted bonuses. - fixed a SA_DISPELL crash when casted on an object with no status changes. - Adjusted the autospell code so that it does not relies on card_id == 0 for subtracting rates. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12041 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-09- corrected duration of sphere mines to be 30 secs regardless of skill levelskotlex7-16/+23
- Corrected duel_count/duel_list (you DON'T place variables in a .h file! That is what 'extern' is for) - Script command warpportal now places a warp in its initial state (as if a real warp portal was casted) - Updated dispell to also not remove the following effects: Hindsight, Inc Hit/Atk Rate (NPC_POWERUP), Nen, TK stances and tumble, warm and speedup1 (the other speed potion) - Chase-walking characters can now loot. - Hiding characters can't drop items now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-08- Made the pc reg variables receive a const char* as the argument, since ↵skotlex6-11/+10
they duplicate the value anyway (and they were receiving const char* values from the setd function) - Fixed Wand of Hermod not starting the SC_HERMOD status change (which blocks spells) - Fixed a missing break in the cast cancel code. - Fixed additional def/mdef from vit/int bonuses being lost when a status change that affects def/mdef triggers (for homunculus) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12033 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-08git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12031 ↵reddozen1-0/+6
54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-08Added missing code to log main chat messages sent by whispering to ↵ultramage1-0/+5
main_chat_nick (bugreport:424) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-06- Fixed Overthrust's timer not being able to be refreshed when recasting it ↵skotlex4-8/+14
(conflict on what val2 should mean) - Changed the code in status_change_timer so that a null pointer no longer causes a crash but prints an error instead. - Corrected clones not copying over a player's skills properly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12027 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-06Corrected a TXT compilation problem caused by r12023 (mail system code is ↵ultramage1-4/+9
not present in TXT builds). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12026 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-06Extended the id range for npcs, now [400,700) will also be treated as NPC ↵ultramage2-2/+2
objects (see topic:170845 and bugreport:727). Silenced a compilation warning. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12025 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-06Expanded the poor "npc_touch_areanpc : some bug" with info about which cell ↵ultramage1-6/+8
exactly caused the problem. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12024 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-06- Fixed a visual itemdupple bug on mail system.zephyrus4-1/+17
- Fixed Overthrusth status cannot being recalled at same skill lvl. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12023 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-06Cleaned up mob_once_spawn() and mob_once_spawn_area().ultramage5-88/+121
- now they use mapid instead of mapname as input parameter - moved the responsibility to perform "this" -> mapid resolution to the caller - added a pair of swap() operations to prevent working with a negative-dimensioned area (fixes bugreport:87) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12022 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-06Modified showmsg code to not attach a timestamp to MSG_NONE-type messages, ↵ultramage6-96/+84
generated by ShowMessage(). It now works exactly like printf(). Removed/replaced all printf calls in the code. Added a new flag to setting 'console_silent', for filtering debug messages. Silenced the "Broken pipe found" and "Server running in debug mode" messages. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12020 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-05Corrected one place belonging to the no-stacking mod that I missed when ↵ultramage1-2/+2
doing the mapcell update (followup to r12003). Added info from newest clients to packet db. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12015 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04Fixed a bad allocation line, which in my case resulted in trashing several ↵ultramage1-1/+1
ingame objects when doing @reloadmobdb. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12013 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04Fixed a typo in r12008 causing server crashes when sending the fake npc packet.ultramage1-2/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04Waterball code cleanup (see bugreport:707)ultramage1-40/+28
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12011 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04Fixed a mistake in r11991 that let knockback work through wallsultramage1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12010 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04Modified the map_setcell() code to to use a boolean flag instead of needing ↵ultramage8-159/+120
SET_ / CLR_ pairs of defines (topic:174323). Also removed script object 'setcell', added script function 'setcell'. - Now you can manipulate cell information without needing @loadnpc - You can also manipulate the terrain ('gat') type itself, using the new cell_walkable, cell_shootable and cell_water constants (currently the implementation uses bit flags too, so to get the type you want, you need to adjust the flags one by one) - This breaks current scripts, so please adjust places that use setcell (also be sure to _only_ use predefined constants, not direct numbers) - Details can be found in the script reference. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12009 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04- Fixed clif_sendfakenpc not being updated for PACKETVER 9skotlex1-7/+13
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12008 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04- Fixed Music Lesson's effect on Assassin Cross of Sunset.skotlex2-2/+2
- Fixed a possible crash in status_change_timer when debug mode is disabled. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12006 54d463be-8e91-2dee-dedb-b68131a5f0ec