4932 Commits

Author SHA1 Message Date
ultramage
e2960e9af8 Partially fixed the mess in status.c.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12433 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-25 21:41:31 +00:00
ultramage
9c07918456 Added proper checks to adoption processing (followup to r12428).
Cleaned up some code / fixed some typos.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12432 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-25 09:56:18 +00:00
FlavioJS
66ba548612 * Added temporary code to track and prevent the multiple remove_map's that appear to be happening.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12430 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-24 23:18:08 +00:00
ultramage
49f1f4434d * Reorganized the contents of the mapserver's header files.
- map.h is no longer a generic dumping spot of all the shared structs, and instead, each such structure now resides in its logical component
- map.h now only holds mostly map-related things (needs more cleaning)
- there's still a lot of room for improvement (reorganization within individual header files, etc...)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12429 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-24 21:20:48 +00:00
zephyrus
ecbbb56d6c - Fixed a potential crash in Adoption. Reported by Yomanda.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12428 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-24 17:31:08 +00:00
ultramage
0e5bd6c09a Fixed a problem in the new trade window implementation (from r11830) where no trade acknowledgement messages would get sent (bugreport:1217).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12427 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-24 13:51:19 +00:00
ultramage
084961740f Cart Termination now bypasses Parrying and Energy Coat (bugreport:476)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12425 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-22 17:20:23 +00:00
ultramage
71ce130467 Mobs with no respawn information which don't have a master will not get unloaded by the dynamic mobs system.
This prevents script-spawned mobs (bio MVPs, Emperium/Guardians, ...) and dead-branched mobs from disappearing (bugreport:1246).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12424 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-22 11:57:57 +00:00
ultramage
42b5164970 Added a missing null-pointer check to the timed player pvp/gvg respawn function (mistake in r12232)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-22 11:34:47 +00:00
zephyrus
7899dc8e4f - Added status changes for netcafe premium items. Status Resist Potion and SP Reduction Potion.
* More Barricade stuff:
- Changed the way "Dir" works. Now it's just like NPC dir definition (from 0 to 7).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12414 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-21 17:12:52 +00:00
Lupus
c1d6abe5eb Added VS9 project files. Removed redundant map_getallusers() function
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-21 11:52:29 +00:00
zephyrus
fb7daea244 - Added SC_ARMOR_RESIST, used by Undead Scroll, gives you resistance against elements and it's can be used with Resist Potions.
- SC_ARMOR_RESIST and SC_BENEDICTIO ends if you change your armor. Tested on iRO.
- If you call SC_ELEMENTALCHANGE with val3 = 1 it will use the level in val 1, and not a random value.
* Barricades:
- Fixed a bug when @reloadscript. Barricades should be destroyed too.
- Unbreakable barricades are only wall type (not shootable) According to Doddler info.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12407 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-20 20:56:55 +00:00
ultramage
3d6f2af01c Changed the dynamic mobs system to also unload mobs that have respawn time but are already spawned - 22M less mem usage (bugreport:1197).
Also added a check to not respawn mobs on maps with no players (potentially unsafe operation, needs further inspection).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12402 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-19 22:02:26 +00:00
zephyrus
2c8b8a0715 - The last bug in Adoption system.
- Fixed a bug on trade, if you received a trade without accept it do logout... the other player cannot trade anymore 'til restart.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12396 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-19 00:12:35 +00:00
ultramage
e47466df40 inverted logic (followup to r12394)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12395 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 22:31:08 +00:00
ultramage
b2734e601e Fixed invited party members not displaying correctly (bugreport:1199)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12394 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 22:29:04 +00:00
zephyrus
96a72d9d84 - Changed the way SC_ARMOR_ELEMENT is called (Resistance potions)
- Now each val represent an element (1 = Water 2 = Earth 3 = Fire 4 = Wind)
- Fixed bug 1039 (Shadow Armor Scroll's Script Fails)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12393 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 17:09:12 +00:00
zephyrus
53c26b43fb - Sorry, fixing the last adoption step. It was too late ._.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 14:46:22 +00:00
ultramage
27f2a37fc4 Fixed OnPCLoginEvent not working correctly (bugreport:1182).
Cleaned up some code typos/engrish.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12391 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 08:44:27 +00:00
zephyrus
fa64cdae0d - Added the official adoption method.
( Parents need to create a party, invite a novice/first class, both equip the wedding rings and someone just right click the future baby ).
- Fixed a bug sometimes client don't show job's bonus stats.
- Removed the problematic adoption script.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12389 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 04:32:20 +00:00
zephyrus
a6e03e1102 - Clean up of calc_times function.
- Moved to timer.c/h because it's used in both map and char servers.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-17 15:03:03 +00:00
zephyrus
e87cef990d - Added support for offline divorce.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12379 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-16 20:33:01 +00:00
zephyrus
74692598a9 - Fixed a compilation error. ops :3
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12378 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-16 17:51:25 +00:00
zephyrus
2934ff8468 - Added De-adopt support when deleting a baby.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12377 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-16 17:27:19 +00:00
zephyrus
ee964f6623 - Optimized a little bit char deletion process with partner info.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-16 07:21:05 +00:00
zephyrus
dbe768cf91 - Changed the way SC_HPREGEN works.
- If you parse val1 as negative, heal will be a % of the maxHP.
- On positive values it will heal a fixed amount.
- Changed this to allow the new attributes of Battleground sets.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12367 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-15 18:39:14 +00:00
ultramage
675eab189e Fixed spawned mob count not being counted properly, causing yet more respawn problems.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12364 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-14 22:59:13 +00:00
ultramage
8b00f6dbdd * extended the "npc_event: event queue is full" error message to also print the name of the event (so that the cause can be tracked down)
* removed a strange (and undocumented) event name check for "GM_MONSTER" in the npc event execution code
* added effects from recent sakexes to effects list
* removed ladmin from vs8 sql builds
* added int_auction.c/.h to vs6 and vs7 project files
* some small cleanups

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12362 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-14 12:59:02 +00:00
ultramage
b8cf860055 Fixed one condition incorrectly modified in r12358, which caused dynamically unloaded mobs to never spawn once they've been unloaded once (bugreport:1178)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12361 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-14 08:05:38 +00:00
ultramage
f6d2d9a360 Replaced some foreach-based functions by their inlined iterator equivalents.
Changed the dynamic mobs system, so that the flag that indicates whether a particular mob can be unloaded is stored in the mob's respawn data structure.
Cleaned up related parts of the source code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-13 22:09:58 +00:00
ultramage
4e683bc79e Fixed one forgotten mob spawning function call causing mobs to duplicate when respawning (followup to r12350) (bugreport:1173)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12353 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-13 13:39:07 +00:00
zephyrus
0588524caa - Added a fix for Abracadabra, this skills allways should use minimum a Yellow Gem.
- Added some code "suggestion" to handle the new Barricades, please test it with:
- @barricade <x> <y> <size> <direction> <killable> <Event Name>
- @killbarricade <Event Name>
- If x and y are -1, it will use your current position.
- Direction 0 Vertical 1 Horizontal.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12352 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-13 04:03:37 +00:00
zephyrus
b493d16681 - Fixed bug report 1170.
- Now char data is saved to on a success mail send or auction register operation.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-12 21:49:42 +00:00
ultramage
078d492412 Removed one mob data variable related to dynamic mobs that I found to be redundant.
Changed MAX_MOBSKILL (max. amount of different skill entries per mob) from 50 to 40 to reduce memory consumption a bit more.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12350 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-12 21:02:59 +00:00
zephyrus
8d65f03635 * Added a message to let know the client if the mail inbox is full.
* On LoadEndAck added a flag to know if the client is allready changing map or just doing teleport/fly wing.
- This will reduce a little bit some info send to the client that only need to be updated on map change.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12349 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-12 17:30:31 +00:00
ultramage
0af5774042 Replaced one incorrect nullpo check in chat_deletenpcchat()
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-12 06:43:05 +00:00
ultramage
a5f7761c0f Replaced clif_countusers() with a more efficient alternative (thanks to the fact that pc_db now only holds fully authed players only).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12339 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-11 09:44:12 +00:00
zephyrus
ad2bb04eab - Bug ID #1152: Auction System Mail Message Typos
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-10 23:12:53 +00:00
ultramage
17dc136694 Added missing check to only allow the leader of a party to modify its exp share settings (bugreport:12)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12337 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-10 20:06:39 +00:00
zephyrus
0b52a40be3 - Fixed a bug allow GM with notrade to send zeny.
- Added a fix into auction system allow to direct buy or increase your own bid if you reach the 5 bids limit.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-10 02:44:07 +00:00
skotlex
d6eb67c6c4 - Modified attack_walk_delay so it behaves on a 'per-object' basis, and changed the default to 15 (all types).
- Modified battle_delay_damage so damage is not delayed more than one second for non-player attacks. 
- Modified party_member_added with a hack so that the clif functions will send the info of the new member since party_recv_info has not yet arrived.
- Updated clif_calc_delay so the type sent to the client is based on the number of hits of the skill (as Aegis packets reveal)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12332 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-09 20:11:14 +00:00
ultramage
5767cc5285 Cleaned up and corrected some more land skill code:
* removed redundant skill_ganbatein() function
 * Added flag UF_PATHCHECK from jAthena which affects whether a skill's cells will be affected by the surrounding terrain. Adjusted existing flags so that they closely match jA's (for easier comparisons).
 * Fixed code that allowed placing of skill unit cells on 'gaps'.
 * Fixed code that prevented successful casting of land skills on 'gaps' (officially it's possbile, even though they will not deploy entirely).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12331 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-09 17:28:01 +00:00
ultramage
a08c56007a Corrected a problem where a party invite acknowledgement would not be sent (bugreport:1091).
There is still the unresolved issue where newly added party members will not display their party correctly.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-08 23:03:06 +00:00
zephyrus
0c381f2877 - Auction System implementation completed.
- As mail system, this will need a "mapflag" or something to only allow auctions on some maps.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12325 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-08 20:11:28 +00:00
zephyrus
a6a68c756d - Added support for Auction Close and Cancel.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12323 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-08 15:52:15 +00:00
zephyrus
8051df3245 - Fixing the time calculation. (Missing "()" <<)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12322 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 23:09:13 +00:00
zephyrus
e8548adb44 - Moved the auction time controls only on Char Servers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12321 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 21:41:53 +00:00
zephyrus
bb503db395 - Fixed a possible crash bug on mail system.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12320 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 20:40:59 +00:00
zephyrus
62c41846f0 - Fixed some bugs on auction.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12318 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 20:38:33 +00:00
zephyrus
8371e84434 - Added some debug messages to test Auctions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 16:26:39 +00:00