282 Commits

Author SHA1 Message Date
Lupus
c7b86500e5 fixed @go bug
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9617 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-05 11:52:21 +00:00
ultramage
851a1e259a - Updated /doc from jAthena
- Completed adding of the new cities to @go
  > that function is ugly and needs a complete rewrite, asap
- Updated thor volcano warps

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9615 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-04 18:33:53 +00:00
ultramage
e46b9e7d41 - Now the server will by default perform symmetric adding of friends
- > TODO - symmetric deletion (http://www.eathena.ws/board/index.php?showtopic=130749)
- Added a first approximation of warps for the new maps (by $ephiroth)
- Added Rachel and Veins to the list of @go destinations

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 18:18:50 +00:00
FlavioJS
129bff5fb6 - Fixed FIFO defines in TURBO mode.
Ref: http://www.eathena.ws/board/index.php?showtopic=129766
  The rest of the TURBO related errors are about the HEAD defines having to be at the start of a block because they contain a variable declaration. (i won't fix these)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9611 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 12:01:43 +00:00
ultramage
215762fe8c - Fixed pc_calc_skilltree ignoring prerequisites / joblvl requirements.
- Re-applied change r9593 that got accidentally reverted by r9595.
- Added the official behavior of monsters regaining full hp when they morph.
- Added support for text/comments at the end of monster spawn lines (<tab> required)
- Silenced the debug message in socket.c that's been freaking people out.
- Modified the useless error message in atcommand_effect.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9608 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 03:05:43 +00:00
Lance
b319b03eba WTF was I doing?
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 18:45:41 +00:00
skotlex
b6dbcc39c9 - Fixed some warnings
- Corrected the comment for the global functions file.
- Updated Charge Attack's damage equation as per the only source I've seen of it so far.
- Now Guardians/Emperium can't hit /be hit if their current map isn't a gvg_castle or woe is off. This enables "localized" WoE by removing/setting the mapflag gvg_castle on the castles where you want WoE to take effect (note that even though normal players can't be hit on non gvg_castle maps, normal mobs can still be killed in such maps, you'd still need to modify the WoE scripts to use this kind of feature)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9575 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-26 16:10:53 +00:00
skotlex
58bb9be68a - Cleaned up some more the code so it works for -DTURBO
- Cleaned the pvpoff @ and script commands.
- mob_get_random_id now has two additional flags to specify that the monster to acquire should not be a boss type (4) or that it should give exp (8).
- TK_MISSION will now pick any mob from the DB as long as it is not a boss type and it gives base exp.
- Fixed the double-stone issue when hitting a petrified character.
- Minor cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9573 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-26 15:07:18 +00:00
FlavioJS
52245f90b9 - Moved "#include <limits.h>" to cbasetypes.h to ensure it's included before checking if UINT_MAX has been defined.
- Minor changes in pc_readdb related to max_level being unsigned.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-23 03:24:32 +00:00
FlavioJS
129e97d6c9 - Minor changes to ers.
- Removed unused/hardly used cbasetypes typedefs.
- Updated txt-converter's makefile to include utils.o

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9473 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-12 15:24:20 +00:00
skotlex
04b76739c4 - Removed CART_MASK as OPTION_CART can take care of that.
- Moved the OPTION_MASK define to status.h
- Reverted the knockback implementation to use clif_slide instead of clif_fixpos


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-12 13:53:36 +00:00
skotlex
9bd4913d7e - simplified the code for @autoloot
- made @hominfo display the six basic stats. 
- Simplified the MD_DETECTOR checks, since now all insects/demons have it set, and it's no longer needed to check for the race.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9464 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-11 18:40:14 +00:00
toms
01b6c052c6 Fixed @revive not reviving the good char
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-11 10:19:12 +00:00
toms
912fc7a427 Fixed npc commands atcommand & charcommand not working with a custom command_symbol
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9431 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-07 12:55:00 +00:00
Lance
ffbcbb0b54 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9394 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-12-02 23:47:21 +00:00
Lance
90352e92a2 * Enabled atcommand parsing for clients with Korean langtype and version.
modified   Changelog-Trunk.txt
modified   src/map/atcommand.c
modified   src/map/charcommand.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9393 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-02 18:22:37 +00:00
FlavioJS
09f54754c7 - Added missing min/max definitions to cbasetypes.h, needed for the @send change.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9388 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-02 04:41:23 +00:00
FlavioJS
b522ca0cdc - Replaced @send with the version I use for testing packets.
Can display the packet length. Supports dynamic packets, quoted strings 
  with escaped characters and fixed/variable length, and normal/hex 
  byte/word/long data types. The number of fields is not limited, but it 
  automatically stops parsing when the packet is full.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9387 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-02 04:21:35 +00:00
skotlex
2de8486627 - Fixed txt-converter compilation.
- Added my_global.h include to login converter
- Removed sd->char_id since we can use sd->status.char_id instead.
- Small speedup in STRECOVERY, and made it not unlock a mob's target.
- Fixed GS_GROUNDDRIFT consuming ammo when it's time expires (so it was consuming 2 grenades instead of one). Also added a "explosion effect" when their time runs out.
- gvg_dungeon mapflag won't set pvp related mapflags anymore, pc_dead will force pvp ranking gain/loss on gvg_dungeon maps now.
- Now when coming out of hiding land-effects will trigger on the character.
- Made the pc_setpos message when being placed on an unwalkable tile tell you which player triggered it.
- Fixed land effects not taking effect inmediately on map-load when the invincible timer is disabled.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9374 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-01 17:17:09 +00:00
skotlex
01d8d4dfbe - Recoded @send so that it uses clif.c instead of doing all the WFIFO stuff itself.
- Cleaned up a bunch of very uglily coded atcommands which used the rather pointless charid2sessionid and accountid2sessionid functions.
- Some miscellanous cleanups around usage of the session[] variable.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9293 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-22 16:34:34 +00:00
Lance
3e7a154f59 * Edited atcommand and charcommand syntax. Now it doesn't need the useless character name and ":".
modified   Changelog-Trunk.txt
modified   src/map/atcommand.c
modified   src/map/atcommand.h
modified   src/map/charcommand.c
modified   src/map/charcommand.h
modified   src/map/clif.c
modified   src/map/map.c
modified   src/map/script.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9230 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16 15:26:27 +00:00
skotlex
17f4afab04 - Overlapping song/dances will now cause dissonance/ugly-dance level 1 instead of retaining the level of their song/dance.
- Fixed the misleading description of what item_avail does.
- Fixed wrong check in @petrename, thanks to The Ultra Mage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9228 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16 13:45:02 +00:00
skotlex
c97cbb77c4 - Characters with Karma may fight amongst them anywhere.
- Added mapflags partylock and guildlock, which lock the state of the parties/guilds on said maps. partylock blocks user party requests to create/invite/leave/kick, while guildlock blocks user guild requests to create/invite/leave/expel/make alliance/make opposition/delete alliance/delete opposition/break


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9216 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-14 14:21:47 +00:00
skotlex
405f4633ec - Moved the duel functions to pc.c since they are so totally out of place in atcommand.c
- Fixed Spider Web not ending when hit by a fireelemental attack.
- Cast-time reductions from status changes will not be executed until right before casting, to prevent status changes from ending when attempting to cast and the attempt fails (invalid cells, not enough sp, wrong target, etc, etc)
- Added check to prevent Wand of Hermod from seeking for a partner to encore, since the partner is supposed to be the warp.
- Moved the duel auto-reject on logout from map_quit to unit_free
- Corrected the mob spawn reading code so that the event-name can be up to 50 characters long (which is the actual event length) and so that it can read spaces within them, it will also strip the leading/trailing quotes if you use them so that the event is actually found on mob-death (so you can do stuff like "My NPC::OnDead" as a valid event).
- Moved the homunc inherit speed from the master from status_calc_pc to LoadEndAck, since the hom's speed matches that of the master each time the master changes maps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9173 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08 16:17:30 +00:00
skotlex
d6711d07b9 - Fixed mob-skill event "skillused" not triggering at all.
- Summoned mobs will only be removed from a map if their master is also removed (dynamic mobs)
- Minor cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-28 03:55:01 +00:00
Lupus
27fbde260e final clone maps -> original maps change. also fixed novice grounds map in char.c. fixed socked_enchant npc
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9064 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25 05:26:11 +00:00
skotlex
1107b381bd - Fixed Charge Atk being able to go through chasm/pits.
- Moved the homunculus DB information from the player structure to the homun structure. Modified the homunculus creation packets to hold this information during creation, also, all initial values are handled by the map-server, the char server only assigns it a homun ID.
- Removed target_id/attacked_id from homun_data as it wasn't really used.
- Codes cleanup (removing of commented code mostly)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-20 18:30:05 +00:00
skotlex
2b44fd5db4 - Cleaned up the log.c file.
- Splitted log_pick into log_pick_pc and log_pick_mob to avoid ugly type-casting.
- Fixed log_chat not recording anything if the server is compiled in SQL mode and sql_logs is turned off (it should then record to a plain txt file)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9017 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-19 21:25:56 +00:00
skotlex
6326212fda - When reinvoking a combo-time, the previous combo time will be terminated.
- Fixed Esma-state not ending after casting it.
- Fixed @hominfo displaying intimacy on a 1/10k scale.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-16 14:05:24 +00:00
skotlex
cc00ad7c09 - made @killmonster make the mobs drop items again.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-12 20:34:50 +00:00
skotlex
0db4ee6126 - Added function npc_unload_duplicates(), it unloads all npcs that are a duplicate of the passed one. For use with @unloadnpc to prevent crashes when you unload the npc that has duplicates.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8939 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-05 14:37:06 +00:00
skotlex
7c8ec5366e - Reverted declaration of run_script to normal since it appears there's no longer any memory leaks related to it.
- Returned the MAX_PC_BONUS value to 10.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8928 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-03 16:19:14 +00:00
skotlex
96d77e1cc8 - Fixed a possible crash with @reloadmobdb due to pet loot timers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-03 14:17:51 +00:00
skotlex
55cf6d9d0f - Renamed nopenalty mapflag to noexppenalty. Using nopenalty will turn on/off both noexppenalty and nozenypenalty now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-02 14:19:56 +00:00
skotlex
7c23227861 - Fixed nocommand mapflag causing the "you can't use commands on this map" message to trigger one very single chat, instead of only for actual @/# command invocation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-20 00:16:34 +00:00
skotlex
97eb6c01f9 - Simplified the code for @storage
- Added echoing messages back to self when using @/# commands on whispers and party/guild messages, to prevent the client from muting yourself.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8810 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-19 14:07:32 +00:00
skotlex
84f86fa96e - Modified the nocommand mapflag so you can specify the GM range that is blocked from using commands (eg: "prontera.gat mapflag nocommand 40" disables commands to characters in the GM range 0~39)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8733 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 16:11:22 +00:00
skotlex
4bec54f154 - Summoned and slave mobs won't show up on @showmobs anymore.
- Moved Spider Web damage bonus from battle_calc_damage to battle_attr_fix, so that damage will be doubled based on the actual attack element.
- Adjusted autospell cards to trigger only on physical weapon attacks.
- Adjusted a bit the heal code, it should now show either the full heal amount, or 0, depending on whether the target was healed at all or not (this also means it shows 0 if you try to heal a full-life character.. but it's the closest I've gotten to make it display 0 on Berserked chars)
- Memorize will be consumed even on instant cast spells now.
- Berserk will end now if hit and remaining hp is less or equal to 100.
- Guild Aura will be removed on sc-load to prevent Guild Masters from getting that bonus from the old implementation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 14:27:49 +00:00
Lupus
59e39f1b71 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8698 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-09-11 05:01:48 +00:00
skotlex
d3b4aa4bbf - Should have fixed manner being reset to 0 on logout while muted.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8621 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-04 21:40:36 +00:00
skotlex
eac939f439 - Fixed @summon's delete timer being screwed up.
- Cleaned up a bit the summon script command.
- Fixed the clone script command's delete-timer being screwed up.
- Corrected battle config name max_walk_rate, it should be named max_walk_speed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8559 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 14:18:37 +00:00
skotlex
dfac028631 - Added a message to @clearweather stating when climate changes will dispel.
- Corrected @hidenpc saying that it's command name was "@npcoff"
- Updated itemdb reading on the char-sql server so that it reads both item_db and item_db2 files (totally untested yet as I can't compile SQL here x.x)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 13:40:10 +00:00
toms
66158f3bb6 - Applied Mpeg's work on GS
( http://gpegon.free.fr/ea/gunslinger_08-29-06_mpeg.txt )
- Fixed a syntax error in @showmobs


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8528 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 10:23:11 +00:00
Lupus
28b1fa6ff4 @showmobs = shows selected mobs on mini-map
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 05:52:34 +00:00
skotlex
33cb9f7449 - Fixed exp bonuses applying twice for the job-exp
- Magic damage adjustment per number of hits is now performed before mdef reductions.
- @reloadbattleconf  will now also update the ragsrvinfo table on the char-server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:03:23 +00:00
Lance
26500644dd * Optional macro MEMSET_TURBO for faster low-level memory initializations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 06:38:17 +00:00
toms
4233fe5c11 - Cleanup/typo on homunc's code
- Modified @reloadmobdb & @reloadskilldb to reload homunc's db too

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8476 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 23:49:05 +00:00
skotlex
9f8cee903c - updated (more or less) the sql-files/item_db2.sql file.
- Some insignificant cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8429 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 14:54:29 +00:00
skotlex
fd6e193e90 - Removed config setting "muting_players", and expanded the manner_system config to specify how having negative manner (mute) affects a player (see battle/misc.conf).
- Expanded the pk_mode setting from no/yes to 0/1/2. 1 is normal pk_mode, if 2 is used, it makes killing players give you a loss of 5 manner points.
- Fixed WS_WEAPONREFINE always failing when at less than job 50.
- Fixed a compilation warning in char-txt/int_homun.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8402 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 16:07:50 +00:00
skotlex
cb54955cc4 - Fixed the Autosave routine not working when there's only one player online.
- Disabled command @rain since the client no longer supports it anyway.
- Fixed delitem not checking for the first slot's card, also optimized it so that it doesn't checks on the other slots.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8399 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 14:05:24 +00:00