7045 Commits

Author SHA1 Message Date
L0ne_W0lf
c31d96e589 * Fixed some of the newer reported bugs.
- Corrected typo in guild steward (missing space.) (bugreport:1423)
- Corrected duplicate messages in WoE 2.0 scripts. (bugreport:1449)
- Corrected missing close in turtle island quest (bugreport:1455)
- Corrected missing next in hunter job quest. (bugreport:1477)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12692 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-08 16:25:07 +00:00
L0ne_W0lf
d1a15516f5 * Fixed times-invested not resetting in WoE scripts.
- Fixed a warning when the standard chest spawn time triggered.
- Corrected several flag-in spawn points, (burgerpot:1475)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12691 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-08 16:05:45 +00:00
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
ultramage
62cc01866b Replaced the very ineffective clif_foreachclient() with map_foreachpc() since they essentially do the same thing (bugreport:1174).
Rewrote map_foreachpc() so that its callback function signature now uses a more natural 'sd' instead of a DBKey/void* pair.
Rewrote atcommand_users() to use a single function, instead of depending on two helper functions and global objects.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12683 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-02 15:08:14 +00:00
ultramage
0ce34d51a4 Added a custom implementation of the va_copy macro for systems that don't provide it.
Fixed varargs not being used correctly in foreach() calls in db.c (bugreport:551).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12682 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-02 09:27:03 +00:00
ultramage
6559c24882 Replaced the integers+checking approach in r12679 with usage of floating point arithmetic.
Applied search&replace to use the new name of the function.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01 13:56:24 +00:00
ultramage
d5775e7e11 Implemented get_percentage() for compact and safe calculation of percentual values.
Fixed integer arithmetic overflows that were occuring in several supernovice checks (bugreport:1135).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12679 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01 12:14:06 +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
9118792124 Quest packet typo.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12675 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01 00:13:12 +00:00
L0ne_W0lf
712ec37880 Updated castle DB to be compliant with new WoE scripts.
Updated gvg_eliminate_time comment to reflect use in new Woe scripts.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12674 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-28 23:51:11 +00:00
L0ne_W0lf
070b507516 * Rewrote the WoE 1.0 from the ground up nearly.
- Renamed the WoE Time setting NPC to "agit_controller.txt"
- System is set up to mimic Aegis, some parts are still lacking.
- Documentation on the new system is forth-coming.
- Updated Novice WoE scripts to keep them from breaking.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12673 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-28 23:34:14 +00:00
L0ne_W0lf
7124507e1c Another correction to "Evil Land", fixed damage-effect range.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12672 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-28 22:44:23 +00:00
L0ne_W0lf
65b101bd41 Randgris will summon a dropless/expless mob after initial mob.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12671 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-28 22:32:07 +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
155416f712 fixing some timestamp type difference warnings...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12669 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 20:03:25 +00:00
ultramage
fc5918e335 Removed the calc_times() no-op (bugreport:1289)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 19:46:17 +00:00
Paradox924X
3daaf293cc Removed a messed up, unnecessary line.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12667 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 15:40:42 +00:00
ultramage
304565cc9b Corrected r12662 where a guild break would trigger the OnGuildBreak event for all castles (even of other guilds).
Corrected some x64 compilation warnings in ers/malloc files.
cleaned up a case of bad variable reuse.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12666 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 11:09:57 +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
76c426d731 <3 Cake
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12663 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 09:19:56 +00:00
Kevin
1f6d5057bc Changed the last commit so it must be called with @reloaditemdb2. @reloaditemdb only removes the item_data from the itemdb subsystem. If you don't like my code you can uncomment the macro I_HATE_KEVIN in item_db.c so it isn't even compiled.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12662 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-27 09:15:05 +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
2070c16a1b Uncommented and cleaned up the OnGuildBreak code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12659 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-26 22:20:20 +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
fb262a3301 Fixed escape problem in jobs/novice/novice.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12654 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-26 17:35:23 +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
bf1e5ff7c6 Updated item_db.sql to latest
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12652 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-25 19:00:22 +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
toms
a6bb42334b * Fixed hugel_bingo making an unneeded infinite loop bugreport:1349
* Partially fixed bugreport:1285 (item 13697)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12646 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-24 11:35:18 +00:00
toms
d42929747f Corrected a typo error ';;' bugreport:919
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12645 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-24 09:30:48 +00:00
Kevin
75cd3c3acb Changed @reloaditemdb again to only unload items from item_db2. Also byte aligned the item_data struct a bit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12643 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-23 20:54:07 +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
2ab6929481 Accidentally commit my test db. >_>
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12636 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-22 22:04:37 +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