3877 Commits

Author SHA1 Message Date
skotlex
5a8962fca0 - Corrected pc_checkitem not behaving correctly when you had more than one equip with a restricted card.
- Fixed non-chatroom owners being able to kick others from the chatroom.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12310 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-06 19:43:37 +00:00
ultramage
8257a27590 Fixed a crash when a homun kills a mvp and the char that did the most damage is unable to carry the mvp reward (bugreport:1114)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12308 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-06 16:48:24 +00:00
ultramage
b0aeb8b2c9 eol-style:native for recently added files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12305 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-05 17:46:40 +00:00
zephyrus
e742a17822 - Optimized the code to handle #KAFRAPOINTS and #CASHPOINTS. Now you can really edit those vars on scripts.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12304 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-05 17:43:46 +00:00
zephyrus
284334b4f0 - Merged Auction Search and Register. It seen to work fine, so you can test those.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12301 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-05 17:09:47 +00:00
ultramage
0088adcbbf * Added code to clear the Illusionary Shadow effect (followup to r12293)
* Added some trim() calls into mapflag code (followup to r12238)
* Fixed mvp exp reward packet not working right for big values
* Added dbghelpplug plugin entry to the plugins configuration file
* Added conf setting for auction table name (see r12287)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12300 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-05 16:23:02 +00:00
skotlex
ccb13e72c0 - Implemented Firepillar's 'target cannot move for 0.2 sec x hit' property.
- Corrected Earthquake so it behaves as explained in the development topics.
- Corrected a missing opt_flag = 0 when using SC_INCATKRATE on mobs.
- Added a missing line to actually unequip unallowed compounded cards when changing maps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12299 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-05 15:39:46 +00:00
skotlex
8ae4bd12ad - Updated firepillar so it cannot be placed on top of others.
- Updated the firepillar code so it behaves like the other traps.
- Changed the default format for @me and @main to avoid crashes on the newer clients.
- Fixed the char-sql server so it returns a valid 'not found' packet when attempting to load a non-existing homunculus.
- Fixed jump to use 0,0 for random coordinates rather than -1,-1
- Added missing \n to error reporting in getmonsterinfo
- Additional status changes now only get triggered if the attack did damage, not if they get absorbed.
- Fixed a logical comparison in unit_free to properly remove pets/homuncs when their intimacy is reduced to 0.
- Properly set the opt3 value for Moonlight, Changeundead and Soul Link
- Fixed the "no equip" flag of cards not being properly applied when attemting to equip items.
- Added a check to avoid invoking pet menu entries when the pet is incuvated.
- Fixed the session_data de-association in chrif_auth_delete
- Cleaned chrif_auth_ok so that the latest received char info is kept when previous char login data was already in there.
- Corrected docs mentioning non-existing flag 'mf_nopvp'


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12293 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-04 18:04:04 +00:00
zephyrus
fee18c4efb - Merged mail system to Stable. Need a second check... please wait.
- No packet added until everything is done.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12287 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-03 22:03:38 +00:00
zephyrus
021af17a50 - By test, this seen to be a valid operation for mail. When a char receives the "New Mail" notification, it request the inbox again.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12286 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-03 19:57:02 +00:00
zephyrus
437946cb18 - An extra ; removed. Reported by Itakou.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12282 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-03 16:06:02 +00:00
zephyrus
84ffdd36bf - The last, i hope, fix to the mail system.
* kRO have a possible way to read mail by just sending the open mail window packet to the client.
This protection adds a mapflag town, to set the only maps that allow mail operations.
because there is no way to know when client closes the mail inbox window. *

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12279 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-02 23:03:22 +00:00
zephyrus
1cbcdaf3f2 - New optimizations for mail system and adjust to use it on Auctions.
- Added a Sql patch to clear all deleted mails. (There is no need to keep that data)
- Added more code for Auctions. Not implemented but just for study.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12278 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-02 19:07:14 +00:00
ultramage
d84310bc4e Fixed wrong mvp format string for @mobinfo (would not show big mvp exp rewards correctly).
Added data length check to chrif_authok(), to detect a mismatch between charserver's and mapserver's mmo_charstatus structure size.
Corrected some typos in the cash shop code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-02 17:36:59 +00:00
zephyrus
48ba5004a6 - Starting preparatives for Auctions System.
- Added the @auction command to open the auctions. Just to start working on it and if someone wants to help.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12270 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-29 23:10:29 +00:00
zephyrus
818e336076 - Added #cash and #points to add cash/kafra points to a character.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12267 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-29 00:20:43 +00:00
zephyrus
43425e88de - Added @cash and @points command to manage your cash/kafra points.
- Optimized code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12266 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-29 00:05:45 +00:00
zephyrus
e6bf7c5458 - Added cash shop support. (i need to add documentation, working on it).
- An charcommand is still required to add/remove points.
- Scripts command only requires to work on #CASHPOINTS and #KAFRAPOINTS.
- I called it "Kafra Points" just because it's how comes in the translation. I allready know this changes between Oficial servers.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12264 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-28 22:25:58 +00:00
ultramage
5e33056779 Adjusted const.txt's cell type numbers to match changes in r12247
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12260 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-28 06:08:31 +00:00
ultramage
3653a87355 Added support for actually disabling the idle_no_autoloot config setting (followup to r12248) (bugreport:1061)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12254 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 22:14:18 +00:00
ultramage
ea94316689 Fixed 'cleararray' not able to erase array entry 127 (bugreport:864)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12253 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 22:04:11 +00:00
ultramage
cdb70a3a4c Altered socket code to do a graceful connection shutdown when exiting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12251 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 20:21:27 +00:00
ultramage
d95a0ce3a5 Fixed @reloadmobdb producing memory leaks in pet db (bugreport:1030)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12250 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 20:18:13 +00:00
ultramage
5afa9cceb9 Patched an unresolved case where knocking back a bard/dancer would cause the mapserver to crash (bugreport:1043)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 18:40:31 +00:00
ultramage
8e63c21d2e * Fixed Apple of Idun not checking for bard soul link (bugreport:1028)
* Fixed Advanced Adrenaline Rush not working barehanded (bugreport:1049)
 * Disabled idle_no_autoloot setting (bugreport:1051)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12248 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 14:48:50 +00:00
ultramage
1acd00e838 * Removed NODAMAGE and ICEWALL cell types (mem usage back to normal)
- Icewall now uses basic cell type 5 (nonwalkable, shootable)
- as a consequence, you can now warp to a nonwalkable cell - but only via gm command or scripted warp bug (hopefully :)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12247 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 14:17:14 +00:00
ultramage
c49afb1245 Added missing option changes for Illusionary Shadow and Soul Link that disappeared when you left the screen (bugreport:1053)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12246 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 10:31:31 +00:00
ultramage
a9bafe200d Added support for the "view player equip" feature (see topic:174461)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 09:12:18 +00:00
zephyrus
3868080ead - Added new settings for autotrade on battle/misc.conf (you can read descriptions there).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12243 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-26 22:14:05 +00:00
ultramage
abd31f84a3 Now the server will print an error message if an invalid mapflag is found during script loading (see bugreport:980 for the motivation).
Removed one extra space that broke jail's noreturn mapflag loading.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12238 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-24 18:04:13 +00:00
ultramage
eeb43aa430 Fixed a mistake in r12232 related to char saving
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12235 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-23 13:11:09 +00:00
ultramage
f4347446d4 * Removed code in socket.c that tries to avoid send buffer overloading, as there is a scenario (many players and charserver disconnect) where mass char saving produces huge ammounts of data to send (see r11503)
* Cleaned up player respawning code (bugreport:1022)
* Increased the max amount of different autocast skills from 5 to 10
* Added a missing function declaration, for real this time (followup to r12229)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12232 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-22 18:19:11 +00:00
ultramage
e6ee6f00ff Fixed @whomap not unlocking the player db (bug in r12204)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12231 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-22 17:06:03 +00:00
Lupus
e4f66f0ab9 Added $(CUSTOM_CFLAGS) into all Makefile.in to provide any custom defs directly to all sub make files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12230 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-22 17:00:59 +00:00
ultramage
4c32b53443 Fixed 2 problems in r12223 - incorrect variable used (bugreport:1031) and a missing global function declaration
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-22 15:00:18 +00:00
skotlex
9c638fa6b2 - Added status_calc_life to properly calculate hp/max_hp as a ratio taking into accounts overflows (and for now also avoids divisions by 0). Applied this function around clif.c, mob.c and pet.c
- Implemented the correct walk-speed bonus from the Bard/Dancer spirit.
- Added a few error messages in case something goes wrong in the new auth db system.
- Fixed logarithmic drops turning 0% drop rates into 100%.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12225 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-21 10:36:26 +00:00
skotlex
1e0a82fab3 - Fixed new guilds displaying online-connect member count at 0 rather than 1, and the guild master not knowing it is one (eg: it cannot edit the guild notice of a newly created guild until relogging).
- Fixed acc_reg2 parsing screwing up the char_id and subtracting 2 from it rather than passing it as it is.
- Extended the auth_node/auth_db system in chrif.c to handle log in/out and mapserver-change procedures. This way players are not in the main dbs when they are not "active", which blocks potential invalid accesses to them.
- Replaced states auth, waiting_disconnect and finalsave with active.  
- Cleaned some the party/guild login and creation procedures, removed the party_sent/guild_sent states.
- Removed a redundant guild_check_member call which is beyond not-needed and into the realm of wasting resources.
- clif_parse will no longer process packets from !sd->state.active players, this also makes checking for finalsave uneccessary (since players re already removed from the maps and dbs by this point, so you can't access them in any other way)
- Separated the roles of unit_free and map_quit, the former will handle cleaning structures from the player so it can be free'd safely, while the latter performs additional routines which are unique to characters logging out normally (map-server changes will invoke unit_free and bypass map_quit).
- Removed pc_isplaying, quit_db, map_knowsaccount, MAPIT_PCISPLAYING among other functions/defines which are no longer needed due to the new login scheme.
- Cleand up a bit some code in the clif_send(_sub) functions.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12223 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-21 00:13:56 +00:00
ultramage
76c27942f6 Changed pc_can_give_items() to use standard boolean logic instead of the inverted 1/0 one (bugreport:396)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12220 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-20 16:21:37 +00:00
L0ne_W0lf
b03a01ee95 Fixed a typo in /map/clif.c (acount_id -> account_id)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12219 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-19 21:11:27 +00:00
FlavioJS
e8c226e1f3 * Forgotten update to the definition of script command 'input'.
* Enabled DEBUG_MEMMGR only in DEBUG mode. 
* Made autotrading characters be kicked instead of reporting double login.
* Made create_session initialize session_data to NULL.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-19 16:55:13 +00:00
FlavioJS
1c3f5fe7e4 * Fixed db_obj_get not handling deleted nodes correctly. (bugreport:999)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12217 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-19 16:02:16 +00:00
skotlex
419106681a - added LK's concentration +1 MDEF.
- Corrected delay-consume items being consumed when used while casting or being unable to act.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12216 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-18 18:58:14 +00:00
skotlex
dc789293be - Updated Eye of Hellion to use the new format of the input command.
- corrected login_fd/char_fd being uninitialized in the char servers.
- Changed a bit around how status_base_atk works to avoid overflows.
- Added a check to prevent using consume-delay items when you cannot use skills, since that opens an exploit if the item also has non-skill-casting components to its script.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-17 22:36:02 +00:00
ultramage
3934f11180 Reverting r12212. As expected, Linux is incompatible.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12213 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-17 19:11:02 +00:00
ultramage
8ae50f44b4 Made unix interface enumeration work with dynamic sockaddr lengths (BSD, for example). Complain if it doesn't compile. (bugreport:765)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12212 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-17 13:10:20 +00:00
ultramage
bcac761953 Removed some useless svn:ignore properties.
Fixed a compilation problem.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12211 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-16 20:10:25 +00:00
skotlex
0c61a73f33 - Fixed S. Novice bonus not dispelling when at the moment you die once.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-15 16:19:44 +00:00
ultramage
8c92106315 some compilation warning fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12206 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-15 12:22:03 +00:00
zephyrus
b8cbeb24b8 - Some optimizations to @noks (now using a Status Change timer).
- Added support to Self|Party|Guild options.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12205 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-14 20:54:25 +00:00
ultramage
2d67424eb1 Removed/replaced all calls to map_getallusers (followup to r12195).
Trashed @whozeny (from r269).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-14 19:11:11 +00:00