5184 Commits

Author SHA1 Message Date
skotlex
d1fda3045f - Rewrote the jail logic to always use a status change. This means that the character's save point is not changed when jailed, and the char is always warped back to the point where it was before being jailed on unjail.
- Made pc_setpos fail if you are jailed, effectively blocking you from being moved out of the jail map for the duration of jail.
- Modified @adjcmdlvl so you can't set a command to require higher level than yourself, and so you can't edit the level of a command which is higher than your own.
- Corrected attack_attr_none setting disabling elemental resist cards.
- Added missing cap check of 100% to drop rate configs for heal/use/adddrop (cards)/treasures.
- Corrected Autoblitz yelling the skill name if the attack splashed.
- Corrected Dispell removing Jailed status.
- Corrected being able to revive with 0 hp.
- Modified the "Restart" code so that it makes you stand on spot when pc_setpos fails to move you back to your originating location.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10028 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-19 04:36:44 +00:00
ultramage
9579515cb9 - Removed the old 'mapserver charsave' mechanism
- Fixed some wrong sql login logic
- Fixed some compiler warnings, cleaned up mapserver sql-related vars

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10027 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-18 22:43:41 +00:00
toms
3e25d536cf Globalised use of script_pushint and script_getdata in script.c
Little clean of unused variables in script.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10026 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-18 21:35:42 +00:00
FlavioJS
14e2d760f9 * Script engine:
- calling functions without using the return value doesn't generate warnings
  - more work on Ticket #41
* Took care of two warnings and a minor change to the makefile.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10025 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-18 16:07:16 +00:00
Lance
66c7c0d040 Added missing VC++ 7.1 project files for mapcache.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10024 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-18 09:50:57 +00:00
ultramage
91fe35aab8 A note about the case_insensitive config setting, read changelog for details
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10023 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-17 22:44:02 +00:00
ultramage
2a7f5aeb7f committing my work on the login server (mostly SQL)
- removed the check_ip_flag from login&char (there since r1)
- removed the CMP_AUTHFIFO_IP and CMP_AUTHFIFO_LOGIN2 defines (also r1)
- removed dynamic_account_ban, gm_db settings, weren't doing anything at all
- modified the date_format setting to take the format string directly
- removed overly verbose config loading messages
- removed/simplified many more useless actions
- renamed the dynamic_pass_failure_ban_ settings to make more sense
- collected relevant config settings into a login_config structure and documented their purpose
- allowed usage of yes/no instead of the user-unfriendly 1/0 method in config settings (and added 1/0 as a possible option)
- fixed dnsbl which was always taking only the first entry into account

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-16 17:40:44 +00:00
ultramage
ea94ff3e8a Fixed a missing curly brace and removed some more .gat-s
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10020 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-16 13:42:33 +00:00
Lupus
3b7ccf4d14 removed all .GAT from configs, docs and examples
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 20:51:30 +00:00
Lupus
c6d5f38b75 removed all .GAT from all the scripts and tested
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10018 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 20:32:55 +00:00
toms
4670b25f7b Added GCC4 autodetection for -Wno-unused-parameter and -Wno-pointer-sign in Makefile
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10017 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 15:28:22 +00:00
toms
67e27505ff Fixed compilation error added in r10003 in skill.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10016 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 15:13:45 +00:00
toms
4bd5a67388 Fixed compilation of the mapcache builder under linux
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10015 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 15:04:29 +00:00
FlavioJS
f48a49e655 ups, how did that get in...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10014 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 13:57:55 +00:00
FlavioJS
b7f0cc8905 - Corrected the structure and added info on the skill fail packet (0x110).
- Added packet 0x223 as clif_upgrademessage (not used yet).
- More work on Ticket #41.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10013 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 13:49:25 +00:00
DracoRPG
4f95fcb339 Updated the src/tool/Makefile to allow compiling the mapcache builder
I don't have an available Unix environment here, so it's very likely it won't work x_x feedback please

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 10:44:19 +00:00
skotlex
fec9da329e - Small change in the login-sql server that prevens crashes when somehow people change the lastlogin column to accept nulls.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10011 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 04:41:34 +00:00
DracoRPG
95b2bfbc14 Added brief doc for the mapcache builder
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10010 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 00:11:14 +00:00
skotlex
a132a2c72c - Increased Shield Chain's range by one. It is now a ranged skill.
- Added SC_CHANGEUNDEAD to differentiate it from the other elemental change skills. It now fails on Undead/Dark elemental targets.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10008 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-14 19:33:58 +00:00
skotlex
0fa8a867bd - Corrected party item share settings not being properly updated on logon.
- Corrected battle_attr_none setting applying to elemental attacks instead of neutral ones.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10007 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-14 19:31:43 +00:00
ultramage
5eedf6a398 Restored file history deleted in r10003
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10005 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-13 23:08:45 +00:00
DracoRPG
61d30841c0 Fixed a warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10004 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-13 21:22:29 +00:00
DracoRPG
58dcd187b0 Mapcache update, should polish off remaining bugs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10003 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-13 20:24:08 +00:00
Playtester
a519071a70 Updated sql files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-13 16:07:02 +00:00
skotlex
2b3c274f78 - @pvpoff and @gvgoff will make everyone in the map stop auto-attacking now.
- when @killer is deactivated the issuer will stop attacking.
- when @killable is deactivated, everyone around the user who is attacking the issuer will stop.
- Cleaned up some the code for dispell. It no longer removes food boosts.
- Players will stop attacking when they change their look.
- Applied Alydis's fix to the mvp item logs logging mvp items even if the player couldn't get the item.
- Changed the default of debuff_on_logout to 1 since food items shouldn't dispell on logout.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-13 15:49:49 +00:00
Playtester
08c5cbcfa0 * Reduced the chance to socket enchant a C rank item to 40%
- info comes from kRO monthly and jRO players
- this is based on "better too low than too high"

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9996 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-13 12:16:09 +00:00
Playtester
f84461eda6 Small fix on aegis names
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9995 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-12 23:10:09 +00:00
skotlex
d25c9daa47 - Cleaned up the implementation of party_send_movemap, it should fix the client receiving the party-mate positions before receiving the party information when you first log on.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9994 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-12 19:02:20 +00:00
skotlex
3035c863f9 - Corrected the new packet version entries for skilluseposinfo
- Corrected item reloading not unsetting the "delay consume" flag if the item had changed it's type.
- the Attack_Type variable in skill_attack now inherits the damage.flag properties, this fixes ranged status effects not triggering.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-12 16:10:15 +00:00
skotlex
29cb0abe60 - Added player not attached crash prevention to countitem/countitem2
- Probably corrected delitem not deleting pet eggs at all.
- Possibly nullpo fix on npcskilleffect
- Corrected a warning when using #fakename
- Hopefully fixed hidenpc/disablenpc not working on Guild flag sprites.
- Mob skill state "anytarget" no longer triggers when the mob has an item-target (looting).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9991 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-11 22:21:34 +00:00
skotlex
ddfc677c99 - @storage/@gstorage will no longer work if you have a trade or a storage opened already.
- Cleaned up a bit @gstorage
- Added a bunch of npc functions required to properly handle moving the NPC cells when an npc is moved from it's previous location.
- Added npc_setcells to handle setting down the NPC cells of ontouch npcs.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9990 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-11 20:02:42 +00:00
Playtester
03b226591b * Updated the "AddEffWhenHit" cards
- chances got lowered according to Aegis, Freya, cRO and euRO
- Lion Mask has 5% chance of silence instead of 3%

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9989 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-11 19:51:10 +00:00
skotlex
9e9628afca - Added resetting the total count of labels to 0 when unloading an npc clears the labels.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9988 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-11 17:53:22 +00:00
skotlex
9692154429 - Removed function clif_movepc as it's no longer invoked anywhere.
- Removed clif_move as it's not needed anymore.
- Renamed clif_moveunit to clif_move and uncommented it. This is the new "unit movement" packet to use (the code should be robust enough to always invoke a clif_insight/outsight for characters going in/out of sight).
- Because of this, many functions that handled the return of conv_str need to be changed, I haven't finished doing the conversion process because I must go already, if someone else can continue, please do so (I will resume work on this in ~5 hours


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9987 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-11 17:33:58 +00:00
skotlex
7691130732 - cbasetypes now assumes that Mingwin does defines ssize_t
- Modified the guild master change ack packet to return the aid/cid of the new guild master instead of the index where it was, the previous method could cause problems in situations where the order of guild members would not match exactly between char/map servers.
- Updated the Soul Linker's Rogue Spirit Stealth's speed bonus to +60%, according to forum infor from ragnagate.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-11 16:11:20 +00:00
Playtester
10153c3968 Fixed some autocast rates of the new headgears
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-10 18:33:47 +00:00
FlavioJS
9e1989e51d - Took care of all the warnings in grfio and mapcache.
- Mapcache can run on system with any endianness.
  The generated file contains data in little endian.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9980 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-09 02:27:16 +00:00
FlavioJS
2b42ec13cf - Added info on packet 0x86 (simple move packet). Not usable until a clear separation between entering sight/leaving sight/walking in sight is done.
- Propagating const char* from the script engine.
- ".gat" is appended to the map name before sending the changemapserver packet to the client.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-09 01:49:50 +00:00
skotlex
9387ff566b - Made conv_str return const char* since the script engine screws up if you mess with the position of the terminator on the received string.
- Because of this, many functions that handled the return of conv_str need to be changed, I haven't finished doing the conversion process because I must go already, if someone else can continue, please do so (I will resume work on this in ~5 hours


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-09 00:10:06 +00:00
Playtester
2c78473a09 Updated various one-handed weapons
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9977 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-08 21:02:50 +00:00
skotlex
b10091246c - Normalized the mapname in guild get/set castle data, should fix guild flags.
- Added log options 0x800/0x1000 to log storage moves ('R') and guild storage moves ('G')
- Added upgrade_svn9976.sql to include 'R'/'G' on the picklog type column set.
- Updated the logs_athena description to include the letter of each type (512 - M, 32 - N, etc)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-08 16:27:06 +00:00
skotlex
e45a007db2 - Corrected the pet/homunc data not being free'd if the player logs out before being authed.
- Initialized player's speed on pc_setnewpc to prevent homunculus copying a speed of 0.
- Added comment to reloadbattleconf specifying that some settings do not take effect inmediately.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 18:58:33 +00:00
skotlex
ed7bef2fee - Normalized guild castle names so guardians may spawn properly again.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 17:19:35 +00:00
skotlex
c350fe1318 - Made the map server abort when it can't open the mapcache file.
- Added a normalizing function to map.c which handles removing the extension of the map name.
- Applied said function when reading maps from maps_athena, since the mapcache lookup fails without it (maps are stored there without extensions)
- TODO: Apply the normalizing function everywhere when parsing map related scripts.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 16:47:51 +00:00
skotlex
22d3158a94 - Cleaned some up the add-effect code.
- Corrected ranged add-status only triggering if the attack is arrow based.
- Updated counter add-status so they trigger on ranged attacks instead of using "arrow_atk" state.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 16:11:40 +00:00
DracoRPG
deb34a8ae5 New mapcache system :x
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9971 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-07 02:02:32 +00:00
skotlex
07e53259a5 - Corrected the define for NK no cardfix (def).
- Updated skills that shouldn't ignore the target's cards: Smoking, Fling, Zenynage
- Fixed the char sql server not escaping the server name before inserting it on the ragsrvinfo table.
- Corrected @lvup not doing the party even share check.
- Corrected breaker's misc part not ignoring element.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9969 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-06 16:16:25 +00:00
Playtester
4455a88cbc Fixed Flying Angel headgear
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-06 15:59:04 +00:00
skotlex
0c7ca5de82 - Added NK value 0x80: ignore target's cards (0x8 will now only ignore attacker's cards).
- Corrected the NK values of skills (0x08 -> 0x80): Self Destruction, Smoking, Pressure, Fling, Zeny Nage, BioExplosion
- Soul Burn & Gravitation got NK 0x80 (previously hardcoded)
- Corrected Soul Breaker ignoring target's cards instead of the caster's.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9967 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 22:00:01 +00:00
Playtester
49b783129b * Added various new headgears thanks to Argatlahm
- some headgears might not be fully official, feel free to report bugs if you find any
- also updated item_db.sql

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9965 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-05 19:29:10 +00:00