3609 Commits

Author SHA1 Message Date
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
skotlex
92960a166f - Added config settings mob_active_time and boss_active_time, what they do is specify a duration during which monsters will keep running their active AI after all players have left their vecinity. Their current defaults are set to 0 (disabled).
-  Script induced status changes can now be reduced by stats/cards (but only trigger rate is reduced, not duration)
- Battle delay timers will now check if the target player has the invincible timer active or not.
- Adjusted mob_ai_sub_hard to return a bool indicating whether the AI was executed or not.
- Adjusted clif_damage and clif_skill_damage to set the endure type value based on dmotion and damage, rather than hardchecking for SC_ENDURE.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 15:02:32 +00:00
zephyrus
076f76077d - More updates to Auctions. Now you "really" can register auctions, limit to 5 per char (according to official info).
- Also added the Buy and Sell lists.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12314 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 05:08:12 +00:00
zephyrus
df249eaed2 - More official way of auction mails.
- Added a new condition in mail. If sender_id = 0 you just can't return that mail.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12313 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 02:37:47 +00:00
zephyrus
2fda0f2d90 - Missing update for @auction.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12312 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-07 00:28:15 +00:00
skotlex
3a36995d8b - 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@12311 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-06 19:58:53 +00:00
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