2519 Commits

Author SHA1 Message Date
skotlex
ade0947216 - Corrected default guild positions not being saved during guild creation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12690 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-07 20:20:40 +00:00
skotlex
61093d095a - Moved the SD_PREAMBLE code to skill_area_sub
- Added SD_SPLASH to let skill_area_sub do the target counter.
- Updated splash skills to use these defines.
- The NPC_WIDE* skills now use SD_PREAMBLE to correctly display their animation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12689 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-07 20:10:13 +00:00
skotlex
247996b40e - Added function battle_attr_ratio to handle just getting the attribute table data. Fixes Sense messing up with elemental based statuses.
- Added Throw tomahawk to the list of items that do not trigger the equipment breaking code.
- Moved a bit around the SC_ start of dancing skills to fix Moonlight petals pushing back the casters.
- Modified status_damage to handle SC_KAZIEL. The return value of *_dead functions can pass 8 to specify that kaziel should not be triggered (ie: pvp/gvg)
- Infinite Endure won't be passed on to devoted characters.
- Infinite Endure is no longer saved on logout.
- Added check to avoid gms opening vending shops if they don't have the required level.
- Moved around the Steel Body S. Novice code, simplified it so it triggers before most of the penalties (death is cancelled).
- Fixed the flee penalty not applying when you walk into a gvg map.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-07 18:46:21 +00:00
ultramage
4da32e3732 NPC_GUIDEDATTACK is not supposed to bypass pneuma/safetywall.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12687 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-03 12:37:38 +00:00
FlavioJS
acde528ec5 * Fixed missing iterator destruction in the map_foreach* functions (followup to r12684).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12686 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-02 21:22:20 +00:00
FlavioJS
7992f84a27 * Added backward compatible handling of PACKETVER 8 and 9. (followup to r12539)
(more missing changelog messages from ultramage)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12685 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-02 20:21:25 +00:00
FlavioJS
1be6ba4a63 * Changes to map_foreach* functions:
- removed the unecessary use of va_copy in map_foreachpc
- applied the same function pattern to map_foreachmob and map_foreachiddb
- created map_foreachnpc
- extended the behaviour of map_foreach* functions to stop iterating when func returns -1
(also added missing changelog entries from ultramage >.>)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12684 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-02 17:14:00 +00:00
toms
21c53a83f0 Updated mob_db.sql to latest
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12677 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01 09:43:24 +00:00
L0ne_W0lf
41fee2d70d Corrected several effect descriptions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12676 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01 00:31:35 +00:00
Kevin
21802ff355 Cleaned up char server set online/offline/char select functions. (bugreport:1359)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12670 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-28 15:03:33 +00:00
ultramage
7a9a3a12bb Cleaning up the itemdb reload mess (see r12635, r12643, r12650, r12661, r12662, r12663)
* the player data inventory-itemdb index is now refreshed using pc_setinventorydata()
 * mobdb will no longer initialize with nonexistent items, and mobs will no longer drop them in case of a reload
 * the clif_buylist() function once again hides invalid npc shop items
 * it is no longer possible to purchase nonexistent items from a npc shop
 * npc shop loading will not abort if there is a nonexistent item entry, it will just skip over it

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12665 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 11:06:55 +00:00
toms
e50dd25ec2 Fixed 'suggest parentheses around assignment ...' gcc warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 10:29:30 +00:00
Kevin
26a70ed737 Some major changes to @reloaditemdb to allow unloading of any item while map server is running.
- Delete any item from inventory/cart/open storages that went missing during the reload.
- Delete item from any shop that has this item.
- Refresh item screen for anyone who has a shop open.
- Delete mob db drop table references.
- Delete item from storage during load if it isn't in the item db.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 07:18:21 +00:00
Kevin
2eabb3d1f7 Added script function hasquest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12660 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-26 23:11:15 +00:00
Kevin
679e600fcc Cleaned up auth system after change back to map server request.
- Created function set_char_charselect to get rid of some of the "special case" variables.
- Removed code that involved the char server sending auth data at char select.
- Changed char select code to update the instance of the char data in the DB to fix map/sex info not being propagated to auth request.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12658 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-26 22:13:02 +00:00
L0ne_W0lf
7f18ba579a Added WoE SE castles to castles.txt in save-tmpl.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-26 21:13:13 +00:00
toms
d9b7e8540b Updated item_db.sql to latest (Changelog)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12653 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-25 19:01:18 +00:00
toms
c79a5092eb Fixed bugreport:1223 (Invalid Items In Shops Are Processed Incorrectly)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12650 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-25 07:47:29 +00:00
toms
c68d9e2a7d * Modified delitem/delitem2 to have the same behaviour as getitem/getitem2 (optional account_id parameter) bugreport:1035
* Modified doc in consequence

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12648 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-25 06:54:53 +00:00
FlavioJS
2599064a46 * Fixed script strings not being handled properly (only skipped the \).
* Added skip_escaped_c to strlib.c/h.
* Fixed sv_unescape_c not handling hex/octal escapes properly.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-23 11:14:45 +00:00
FlavioJS
d903fda1c7 * Script parse errors displayed with one ShowError instead of several ShowMessage's.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12637 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-23 04:35:32 +00:00
Kevin
e78798984a Changed itemdb_reload to clear the database before reloading, so it is possible can remove an item from the DB without restarting the server (bugreport:1348)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-22 22:02:54 +00:00
toms
4c74bd7ac6 Fixed a "bug" in sv_readdb under windows and cygwin configured as "Unix/binary" for text files ('\r' is read and empty lines are not skipped) bugreport:1382 bugreport:1401
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12634 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-22 15:13:32 +00:00
FlavioJS
c880052f0f * Changed the data field of timers from int to intptr.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-21 21:34:31 +00:00
FlavioJS
cbbf504bca * Added intptr/uintptr to cbasetypes.h (integers with the same size as a pointer).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12632 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-21 21:32:26 +00:00
L0ne_W0lf
7708c0c766 * Changed Sacrifice status to end on caster's death, not at 25% HP.
- Should also fix over-flow damage returning to sacrificed targets. Partially fixes bugreport:1332


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12631 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-21 21:22:33 +00:00
toms
355d69194a Updated sql files to latest
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12630 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-21 21:11:41 +00:00
toms
ccb23efe49 Made some cleanup in changesex
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-21 16:19:25 +00:00
toms
443c56e21f Fixed a bug in (init/start/stop)npctimer
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-19 15:37:18 +00:00
Lupus
ba5c9df29d fixed mapserv crash (divide by zero in Earthquake)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12618 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-18 19:43:31 +00:00
toms
2577ffdf25 * Fixed a bug when unloading a npc near a shop.
* Fixed npc_buylist not giving/checking the good item when it was an item_avail in the shop (the real one was added in inventory).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12616 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-18 14:33:31 +00:00
ultramage
b7b80e5c97 Implemented config setting 'vending_over_max', to let people configure the behavior of vending items over the MAX_ZENY limit.
Default/official setting is 'yes', which makes players lose zeny that they cannot hold. Adjust as needed.
This re-adds the behavior from before r11344 (see topic:180568).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12614 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-18 08:12:55 +00:00
toms
034920992e Use the same code for script commands getitem & getitem2 as @item to avoid bug in bugreport:1324 (non-stackable items are stacked)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12603 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-15 18:37:06 +00:00
toms
45a96330d7 Removed all _ in the second name in item_db.txt and updated item_db.sql
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12601 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-15 15:20:09 +00:00
toms
7d3d258492 Used a forward declaration of the struct quest instead of including mmo.h
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12600 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-15 14:57:00 +00:00
ultramage
9609149c15 * Corrected some invalid syntax in skill_db.txt (wrong usage of commas)
* Renamed BA_FROSTJOKE to BA_FROSTJOKER (aegis server-side name)
 * Implemented a generic framework for parsing delimited db files (allows specifying min/max column ranges and max number of rows to read)
 * Corrected a typo in quest_update_objective()
 * Cleaned up pc.c a bit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-15 13:49:40 +00:00
toms
6b035c6f00 Updated item_db.sql to latest
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12597 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-15 08:00:54 +00:00
FlavioJS
f2fd4cde62 * Fixed a possible crash in char_sql. (since r12575, later modified in r12590).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-14 20:22:48 +00:00
toms
73df203735 Fixed a memory leak in mapif_quests_fromsql
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12592 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-14 15:01:04 +00:00
toms
92f9bf6a8c Fixed a typo in char_sql/char.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12591 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-14 14:22:54 +00:00
toms
e61bf34e4f Fixed a bug in the disconnection part char-server (not sending you offline)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12590 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-14 13:48:25 +00:00
FlavioJS
28b95f451b * Changes to the configure script:
- added options --with-MYSQL_CFLAGS and --with-MYSQL_LIBS to allow manual setting of those variables

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12586 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-14 03:45:05 +00:00
Kevin
236c7cba43 Some more updates to the quest log system. It has been completely moved to the inter server instead of the char server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12584 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-14 02:32:24 +00:00
FlavioJS
dcf71ce50b * Followup to r12579 (all other players appeared as female on sql branch).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12583 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-14 01:11:21 +00:00
Kevin
302adbf42a Major updates to the quest system.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-13 22:19:02 +00:00
toms
d7355c9899 Added an include in clif.h to avoid a complaint of gcc
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12580 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-13 18:47:42 +00:00
FlavioJS
49aac80ed6 * Quick&dirty reversal of the inter-server behaviour introduced in r3255/r3256:
- the behaviour enabled a desynch between the char-server and the map-server
- now the map-server asks the char-server to authenticate the auth info (the char-server doesn't send the auth info immediatelly)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12579 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-13 18:31:49 +00:00
FlavioJS
01b66de67e * Changes to the configure script:
- clarified how --with-zlib is used
- added --enable-packetver to set the PACKETVER define (used often enough to get it's own option, but unnecessary since it can be set with CFLAGS)
- added -g compiler option to --enable-debug

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-13 17:46:24 +00:00
toms
cdb7323335 Changed LOG_ALL definition to really log everything
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12577 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-13 15:49:04 +00:00
Kevin
69114a1c7d Login will no longer set character offline when going from map to character select.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12575 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-13 05:14:01 +00:00