2362 Commits

Author SHA1 Message Date
skotlex
a2b96bc621 - Fixed inverted check which was preventing you from buying more than 1 from any stackable item....
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-12 02:40:35 +00:00
skotlex
b69c506ca7 - Oops, should have fixed the crash in intif gm message.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-12 02:30:26 +00:00
skotlex
52718a90ec - Fixed GTB card only working while you had a status-change active.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7623 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 23:24:26 +00:00
skotlex
aced45da67 - Fixed being unable to compound cards in armor.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7622 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 22:34:47 +00:00
skotlex
305fa67812 - Made @monsterignore be an universal ignore. Means you cannot be targetted as an enemy by anything. Also added alias "@battleignore" which does the same as monsterignore.
- Fixed magic power setting your min matk as max-matk.
- Modified the packets involved in @fakename in hopes it'll refresh correctly on nearby clients now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 20:55:54 +00:00
skotlex
14866f881c - Fixed map-sql compilation issue ~.~;
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 20:34:05 +00:00
skotlex
b29fb98681 - Fixed mob.c compilation...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7618 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 20:21:17 +00:00
skotlex
cd8587dc4d - Fixed clif_parse not checking for func_parse before sending data to the connected clients. This in turn required various code-rewrites in:
- duel related messaging functions (added clif targets DUEL/DUEL_WOS).
- intif whisper to gm function
- day/night timers
- Rewrote the parse_console function to stop allocating/deallocating memory on every call.
- Modified chrif_charselectreq to receive the player's ip among the data.
- Added function clif_disp_message, which is the same as clif_disp_onlyself, except you can specify the targets (it sends a guild-chat packet)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7617 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 20:16:55 +00:00
skotlex
a56e8e9f64 - Added a clif_fixpos packet when a mob cancels walking due to using a idle/walk/chase skill.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7615 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 17:51:30 +00:00
skotlex
b782ed4f8e - Fixed the subele bonus (elemental reduction) being applied to the element of the attacker instead of the element of the attack.
- mob skills now won't trigger on unit_stopwalking calls.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7614 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 17:44:58 +00:00
skotlex
a6c3f3a1fc - Coded @reset.
- Reenabled @changesex
- Added function pet_create_egg which handles creating pet eggs correctly (when passed item id is indeed a valid petegg). Applied this on @createitem and getitem.
- Cleaned up code of @item
- Added define UNKNOWN_ITEM_ID (512 = apple)
- Added IT_* enumation item_Types to identify said data from items.
- Cleaned up the itemdb_isequip functions. itemdb_isequip will now return if the item is equipable by players, itemdb_isstackable returns if the item can be stacked, and itemdb_isidentified returns if the item should drop identified.
- Added defines CARD0_PET/CARD0_FORGE/CARD0_CREATED to identify if a given item has "invalid" cards, added define function itemdb_isspecial to simplify this check.
- Removed itemdb.c considering item ids above 20000 as invalid.
- Cleaned up script commands getitem and card-counting related ones. 
- Cleaned up a bit more pc_isequip


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 16:32:37 +00:00
blackhole89
c6d03de26b warpportal(x,y,"tmap",tx,ty) - Creates a skill warp portal on the map. battle_check_target modified to allow NPC-owned skill units to proceed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7612 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 15:58:40 +00:00
skotlex
15de0150a7 - Fixed login-sql compilation issue ~.~;
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7610 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 13:53:20 +00:00
skotlex
eabf215be3 - Modified the login-sql server to do the ip-ban check only on the auth-packets instead of on every packet.
- Modified Cart Termination so the damage is scaled accordingly with the max-cart-weight setting (so max damage is always the same). Thanks to aresdfe for the idea.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7609 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 13:51:20 +00:00
skotlex
376004a4f4 - Corrected Frost Nova's splash range and Land Protector's cast range. Thanks to Haplo.
- Fixed Beast Strafing not having inf2 = 512 (to make it a target-auto-select skill)
- Fixed the duration of Land Protector, removed unusued time2 value from their entries in skill_cast_db. Thanks to Haplo.
- Corrected Warp Portal being unable to warp people who are standing on it on the moment it triggers.
- Fixed @follow stopping the moment you are warped.
- Fixed pc_additem messing with the equip field of the passed item data. Fixes the famous "equip stuff on your arrow slot" bug.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7607 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 02:49:44 +00:00
skotlex
1c286a8da4 - Fixed cart-termination crashing the server if you used level 16 of it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7606 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-11 00:51:01 +00:00
skotlex
f88913a9f0 - Fixed check_connect_login_server check in char-sql server. Fixes char-server not reconnecting to the login server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7605 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 23:53:16 +00:00
skotlex
ef4320d056 - Login-sql server will no longer change an account's state to "7" when banning a player. This should fix being able to use @ban to clear out a @blocked player. Players will now be identified as banned only through the banned-until timestamp.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7604 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 20:44:10 +00:00
skotlex
77131c503c - Fixed a crash when using Gospel... gomen.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7603 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 20:08:25 +00:00
skotlex
44369f069e - Fixed SQL compilation of the char-SQL server... (I need SQL installed at work ~.~)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7602 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 20:03:18 +00:00
skotlex
10cda8e929 - The on-place function won't be invoked on setting ground skills if the group's tick is greater than the current tick. As Buuyo pointed out, this should fix Sanctuary and Gospel taking effect inmediately instead of after "x" amount of ms as they should.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7601 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 19:57:47 +00:00
skotlex
924284f1b9 - Added login-char packet 0x2737. Sets all characters offline (login-server side).
- Cleaned up char server "set all offline" implementation to remove only characters from the map-server from which the packet was invoked. It will also now correctly kick/set-character offline from the map-server if they are connected.
- Cleaned up the char-sql reconnect code. It no longer sets everyone to offline.
- Removed setting "kick_on_disconnect", servers will no longer kick characters out when there's a disconnection. Instead, it'll use the most logical approach: Set characters into a "lost" state when there's a disconnection, on reconnect, resent the list of online-characters, do a sync, and let the difference be characters to be removed. Also, the map-server won't release character data until it's saved and the ack returns from the char-server to prevent data loss (all this data is resent on reconnect for saving anyway).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7600 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 19:41:25 +00:00
skotlex
9445ee19ec - Added a check in pc_equipitem so that when switching weapons and you have the skill_range_by_weapon setting active, the skill info block (which includes range) will be resent when the new weapon to equip has a range different than the previous one.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 16:57:34 +00:00
skotlex
7040dc1031 - One closer inspection, removed that clear in itemdb_reload for a foreach call again. And modified itemdb_load to scrap the dummy item entry from the item_db and replace it with proper data for the item.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7597 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 15:16:20 +00:00
skotlex
4bbce8d776 - itemdb_reload will clear the itemdb before reloading info instead of only clearing the scripts now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7596 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 14:54:44 +00:00
skotlex
3da94aa210 - Corrected skill require entry from the Twilight Pharmacy skills.
- Removed the Frost Nova entry from skill_unit_db
- Moved Gospel's code to skill_castend_pos2 
- Some cleaning of skill_castend_pos2
- Fixed a unnecessary map_freeblock_unlock call in the default case of skill_castend_pos2
- Sense/Estimation will now display the mob info window to all party members in the same map.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 14:51:34 +00:00
skotlex
475efb734d - Fixed cooking chance of sets being 1.2% per set instead of 12%
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-09 15:47:27 +00:00
skotlex
598e005ed4 - Fixed the new addeff structure not working well with SC_STONE (because SC_STONE is 0, which was by default not handled as a valid value).
- Added back the TF_MISS walking speed bonus to assassin type classes (how did that got lost?)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7583 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08 18:24:39 +00:00
skotlex
104eeac167 - Fixed mobinfo displaying exp as signed ints rather than unsigned.
- Added status_check_visibility to check if an object is within range of view of another. Nothing more, nothing less. It's used by unit movement to check whether you can continue chasing your target or not when the "chase target" directive is given.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7582 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08 17:49:26 +00:00
skotlex
5251ce7944 - Fixed the char table having party/guild_id as smallint when they need int there. Thanks to hermematon for pointing it out (use svn_ugprade7580.sql)
- Applied k3dt fixes to pet-hatching, ice-wall check, and wedding skills.
- Fixed endow skills calling the skill no damage packet twice.
- Fixed a crash on warpwaitingpc when the chat-room is empty.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7580 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08 17:13:39 +00:00
skotlex
e6915d4f6d - Fixed the Warm Skills
- Removed the debug message when a player logs out and is removed from memory, it is working fine.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7578 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 23:57:07 +00:00
skotlex
38ead62cea - Removed the equip id from the clif_pet_equip packet as it is not used for anything.
- Corrected the pet-armor field of the pet not being updated on equip/unequip of accessories, making them not show up inmediately.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7577 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 20:58:32 +00:00
skotlex
354c1e73bb - Status_calc_bl will no longer stop you from attacking/walking when the mode is changed unless the new mode no longer includes "can-attack"/"can-move" respectively.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7575 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 19:42:47 +00:00
skotlex
f0d7d12d88 - Should have fixed clif_item_sub to properly store pet egg/armor data. There should be no more "random refine levels" bugs related to these.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7574 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 19:30:53 +00:00
skotlex
41e3ff9044 - itemdb_exists will now return NULL for item_id 0.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 18:32:28 +00:00
skotlex
46fc93df01 - Some cleaning of the Sage endow skills.
- Added a check to free a character from memory when changing map servers.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7571 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 18:21:49 +00:00
skotlex
e0afdded8b - Okay, added a chrif_save_ack packet to the char-server so now the map server will know once a character was "final saved", and only then the character will be removed from memory. On char-server reconnection, all chars that are in final-save state are resent to save (if they are still in memory, it's because the ack hasn't gotten here from the char-server). This should effectively block all dupe problems due to heavy inter-server lag, however as it's untested, it currently prints some debug messages when people are saved and then removed from memory. Need testers so this can be debugged and merged to stable!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7568 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 16:28:41 +00:00
skotlex
b643528e50 - Now, when the login-char connection is cut, the char-server won't set everyone offline on reconnect, instead it will send the list of online accounts to the login server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7563 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 14:38:54 +00:00
skotlex
544adf40b5 - Modified the error on the char-sql server to set chars online when it receives a save packet from a character tagged as offline.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 14:02:13 +00:00
skotlex
deba53730f - Fixed signed/unsigned comparison issues in the char txt/sql server.
- Fixed the cooking success chances. Thanks to Ishizu Chan.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7560 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 13:48:54 +00:00
skotlex
ea9fb7a4ec - Added a temporary band-aid to prevent executing the script of non-arrows when they are equipped on the arrow-slot (until the actual cause of why pc_unequipitem is not working correctly is discovered/fixed)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7558 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 13:24:47 +00:00
skotlex
b7fa70b741 - Modified the party_data structure on the map server to remove some redundant data. Added a party_data structure on the char-server to hold a more complete set of information about parties. Added to the party_member structure the class of each member so that the map server can do the appropiate checks even if the character is on another mapserver/offline. Due to the format changes in the party structure, txt servers will have to wipe their party file... (sql save format has not been changed)
- Added function char_family to check if there's a family state given the three character ids, instead of doing individual checks all the time.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 23:39:24 +00:00
skotlex
a4d0df735d - Rewrote all the item restriction functions so that they will take into account slotted card restrictions as well.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7552 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 21:22:20 +00:00
skotlex
873481b78f - Added no_skill_delay setting, when set, affected object types will have the minimum skill delay for all skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7551 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 19:11:33 +00:00
skotlex
31832cfdc7 - Added EQP_/EQI_ constants in pc.h to identify equip position and equip indexes, makes equipping related code much easier to read.
- Also cleaned up pc_equipitem. When dual wielding or equipping accessories, if the client actually specifies one of the two positions, it will be taken into account.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 18:47:11 +00:00
skotlex
db1cf2de9a - Fixed the auto-direction code which makes self-skills with ground units become a ground spell using the wrong function for said check. In short: fixed GrandCross and similar skills.
- FogWall will now also affect the caster.
- Some cleanup of map.h. 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 14:07:21 +00:00
Vicious
394f618a20 Updated NJ_KAENJIN by Saycyber21
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 16:10:05 +00:00
skotlex
1c16abb254 - Merged some skill db data of NJ skills, thanks to RockmanEXE
- Cleaned up some of the skill logic, so that skills that are casted on self, but have a unit id (an entry in skill_unit_db) will automatically re-route themself from a targetted-no-damage-skill to a ground-skill. When this happens, the effect packet is clif_skill_nodamage rather than clif_skill_poseffect (this is because that's how the dance/songs/encores behave).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 16:05:59 +00:00
skotlex
bfebad480a - Updated @refine to take account of MAX_REFINE, thanks to Omega... GM Designer.
- Also optimized the @refine loop for better performance.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7537 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 14:11:12 +00:00
Vicious
822e9b9e24 Fixed compile issue for NJ_BAKUENRYU, by Saycyber21.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 05:14:53 +00:00