12601 Commits

Author SHA1 Message Date
aleos89
f077a8eb03 Follow up to c0ed836.
- Optimized SQL structure to better fit uint32 value for uniqueitem_counter. (bugreport:9249)
- Added font and uniqueitem_counter to load when loading character menu on char-server.
2014-08-26 16:35:58 -04:00
Cydh Ramdh
51ecd9b2bc Follow up 402170c
- Added 'ID' as identifier/index for produce_db and skill_changematerial_db to avoid 'rewriting' product result with different materials. As we can see there 'Starsand_Of_Witch' can be produced by (1) 10 Insect Feeler + 15 Blue Porcelain or (2) 100 Moth Dust + 100 Scell.
- Map-server crashed issue while @reloadskilldb. Some counters aren't zeroed on skill_readdb() makes array overflow. (bugreport:9241, bugreport:9243)
- Allowing import file to remove original entry by put certain value. See the changed db files for more details.
- Relying to skill_spellbook_db for listing available book as spell book. For Warlock skill Reading Spellbook (WL_READING_SB).

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-24 21:58:23 +07:00
Euphy
30b4d578a7 Some script cleaning.
- Replaced lots of numerics with constants.
- Added spacing to make some scripts more readable.

Fixed a mistake in 14fddd3.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-08-23 15:17:59 -04:00
Euphy
2acf9a401a Fixed item script for Glorious Holy Avenger. (bugreport:9244)
http://rathena.org/board/tracker/issue-9244-9-glorious-holy-avenger/

Script command 'preg_match' will throw a debug instead of an error if PCRE is not enabled.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-08-22 23:56:08 -04:00
aleos89
4ffe723d8c Merge branch 'master' of https://github.com/rathena/rathena 2014-08-22 17:52:28 -04:00
aleos89
c0ed836e87 * Changed how the Unique ID System saves and creates IDs for items. (Hercules dd49dbc)
- System is now enabled by default.
- All non-stackable items that previously existed will get unique IDs if items::item_check is enabled.
- Added 'getequipuniqueid' script command to get the unique ID of an equipment on a player.
- Don't forget to apply the SQL update!
* Renamed SQL update file that applied to logs.
2014-08-22 17:52:15 -04:00
Euphy
3b2762ca3c Enable NPC logging through 'logmes' by default.
- Commented some unnecessary log messages.

Bug fixes:
- M_DOPPELGANGER had too much HP. (Hercules 9cd3ec0)
- Huuma_Swirling_Petal should not have an element. (bugreport:9073)
http://rathena.org/board/tracker/issue-9073-huuma-swirling-petal/

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-08-22 16:06:32 -04:00
Euphy
617b9830af Merge branch 'master' of https://github.com/rathena/rathena 2014-08-22 15:36:37 -04:00
Euphy
14fddd3790 Added script checks against swapping items using third-party hacks.
- Follow-up to 416f6d7, as further protection against item exploits.

Contains a few other fixes.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-08-22 15:36:23 -04:00
Cydh Ramdh
416f6d7ba8 - Added error messages for some script commands
- Halt script if no item equipped for 'delequip' just like 'delitem' does

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-23 01:47:30 +07:00
Cydh Ramdh
4fd7e46345 Follow up 70b8b8b, an error for PRE-RE
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-22 23:42:13 +07:00
Cydh Ramdh
70b8b8bc38 Bug Fixes:
- Fixed map-server crashed caused by Wall of Thorn when atatcked by Fire element (with wide range skill unit, bugreport9102). Also reverted some changes in c046668
- Added config conf/battle/skill.conf 'arrow_shower_knockback', as follow up 453b6d0. Direction of Arrow Shower knockback depends on Arrow Shower location

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-22 23:28:48 +07:00
lighta
402170c018 -Update doc/souce_doc.txt for refactoring change
-Add doc/packet_interserv.txt and doc/packet_client.txt, to refer packets
-Upd src inner documentation, map/intif mostly
-Add  common::utils::check_filepath(), fixing bugreport:9131 @loadnpc crash
-Fix pc_level_penalty_mod not using mob_class correctly
-Fix db/import/ for produce, arrow, abra, impro db...
-Upd install script (config.pl) to use mariadb for fedora/centos distrib
2014-08-20 20:58:48 -04:00
Cydh Ramdh
3efe5375f3 - Added check to clear skill unit group that created by NPC/script before the NPC/script unloaded.
- Changed enum for NPC subtype, added prefix NPCTYPE_. See map.h::npc_subtype.
- Changed Channel_Config struct usage to -> extern struct Channel_Config channel_config.
- Added restriction for atcommand that cannot be executed when Player is in autotrade, to prevent map crash. (bugreport:9196) TODO: Check other atcommand or change this behavior.
- Added enum for atcommand restriction with prefix ATCMD_NO. See atcommand.c::e_atcmd_restict.
- Updated atcommand documentations.
- Changed dummy_sd's attributes to group_id & group_level 99, and gives all permissions (PC_PERM_ALLPERMISSION). dummy_sd is being used by 'atcommand' or 'useatcmd' script when no rid/player attached.

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-18 19:59:16 +07:00
Euphy
880903bdab Updated Renewal Izlude Magazine & Bullet dealer locations.
- Coordinates taken from a recent iRO update.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-08-17 15:13:24 -04:00
Euphy
17bace0ae6 Script bug fixes.
- Added Renewal location for "Knight De Thomas" NPC (previously inaccessible), and upgraded the script to the latest version.
- Fixed Pre-Renewal Merchant Quest questlog commands. (bugreport:9218)
http://rathena.org/board/tracker/issue-9218-merchant-quest-add-error-quest-add-1010/
- Corrected a handful of 'rand(1)' statements.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-08-16 19:10:19 -04:00
aleos89
191f65bdcd Merge pull request #94 from anubisK/else_correction
Follow up to adabedb. Preprocessor cleanup.
2014-08-16 18:35:05 -04:00
aleos89
25969358e4 Merge branch 'master' of https://github.com/rathena/rathena 2014-08-16 16:16:40 -04:00
aleos89
60b0ed9c8b Bug Fixes
* Fixed mouse cursor displaying incorrectly for PvP scenarios. Thanks to Napster. (bugreport:8605)
* Fixed summons getting stuck when master gets too far off screen or changes maps. (bugreport:9152)
* Added a battle_config 'spawn_direction' for keeping a  character's face direction when teleporting/changing maps/logging in. Default is always North (official). (bugreport:8754)
* Cast sensor mobs should always target the caster whenever any skill is used. (bugreport:8555)
* Added a packet version check to char_del_option based on client date. (bugreport:8521)
* Script command query_sql will now return -1 on an empty result or failed result. (bugreport:5937)
2014-08-16 16:15:50 -04:00
Cydh Ramdh
d270047312 * Fixed bugreport:9211. Basilica causes map-server crashed when caster changing map
* Some source docs for skill.c/h

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-17 00:00:19 +07:00
Cristian Gonzalez
5936a67cb3 Enhancement to a if else... sounds better I guess 2014-08-12 20:55:36 +02:00
aleos89
adabedba23 Bug Fixes
* Fixed Shield Spell not being able to be casted. Can now be casted even with skill_unconditional permission while wearing no shield. (bugreport:9198)
* Fixed divest chance of Earth Strain to official. (bugreport:8999)
* Cleaned up ATK and WATK calculation for some skills to only work in pre-renewal.
* Fixed Magnum Break not giving 20% Fire property damage. (bugreport:9199)
2014-08-12 12:33:34 -04:00
Cydh Ramdh
a0cefe9479 Follow up fea3489, just 'char' to 'uint8'
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-11 21:52:41 +07:00
Cydh Ramdh
98c83eeb7f * EXP updates for Renewal
-- Base Level 150 ~ 175 for 3rd classes & Expanded classes (256 ~ 1000 use custom gap 10m)
-- Job Level 50 ~ 60 for 3rd classes (61 ~ 255 use custom gap 5m)
Reference: http://www.divine-pride.net/database/experience

* Follow up fea3489
- Got extra ';' there fea348968c (commitcomment-7332456)
- Reduce w1's length

* Added some newline at end of file

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-11 01:06:19 +07:00
Cydh Ramdh
fea348968c Some CPPCheck clean ups
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-10 23:49:24 +07:00
Akkarinage
45be1808a3 Merge pull request #93 from cydh/idea
Updated README files
2014-08-10 12:45:22 +01:00
Cydh Ramdh
b52ef77205 Updated README files
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-10 18:37:32 +07:00
nanakiwurtz
7e3ecadb15 [Updated] item_combo_db.txt
-- Commented some unfinished lines

Signed-off-by: nanakiwurtz <nanakiwurtz240@gmail.com>
2014-08-10 18:14:05 +07:00
nanakiwurtz
8fc758f741 Item DB updates:
-- kRO 2014-05-21
-- kRO 2014-05-28
-- kRO 2014-06-11
-- kRO 2014-06-18
-- kRO 2014-06-25

Signed-off-by: nanakiwurtz <nanakiwurtz240@gmail.com>
2014-08-10 16:31:26 +07:00
Cydh Ramdh
453b6d0023 * Bug Fixes:
- Added base level modifier for Great Echo. (bugreport:9179).
- Fixed Max HP/SP rate reduction, should be limited to -100% if the value less than it. (bugreport:9195).
- Fixed Knuckle Arrow (SR_KNUCKLEARROW, Sura) knockback damage bonus behavior. (bugreport:9096).
- Fixed Knuckle Arrow (SR_KNUCKLEARROW, Sura) knockback direction by saving last direction before attacker slides to target first.
- Fixed Overbrand (LG_OVERBRAND_BRANDISH, Royal Guard) knockback damage bonus behavior. (bugreport:9096).
- Fixed knockback direction for Arrow Shower (AC_SHOWER, Archer), now using target to attacker direction. (bugreport:1709).

* Misc:
- Added new flags for Skill Unit to remove hardcoded checks:
--- UF_NOKNOCKBACK: Cannot be knocked back (only unit that can be damaged).
--- UF_REM_CRAZYWEED: Removed if be overlapped by GN_CRAZYWEED.
--- UF_REM_FIRERAIN: Removed if be overlapped by RL_FIRE_RAIN.
- Implemented knockback damage bonus for Round Trip (RL_R_TRIP, Rebellion).

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-10 15:16:20 +07:00
Capuche
5f8a451913 Little clean-up
Signed-off-by: Capuche <capucrath@gmail.com>
2014-08-09 22:16:24 +02:00
Capuche
99769b8283 Update fallen angel wing item script (bugreport 9192)
Signed-off-by: Capuche <capucrath@gmail.com>
2014-08-09 21:51:11 +02:00
Cydh Ramdh
05d3c6bd43 Fixed skill unit effect issue, wrong used packet for newer client. Causing some skills shows wrong animation. (Partial merge from 3CeAM 2.0 r16, r17, & r18)
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-09 05:16:50 +07:00
Cydh Ramdh
a1e53caa71 Merge pull request #89 from anubisK/master
Typo on doc/script_commands.txt
2014-08-05 16:38:39 +07:00
Cristian Gonzalez
eb7d77debd typo 2014-08-05 10:55:11 +02:00
Cristian Gonzalez
bf7e0960db typo 2014-08-05 10:52:01 +02:00
anubisK
78f9f797ae Merge pull request #2 from rathena/master
rathena -> fork
2014-08-05 10:47:39 +02:00
Cydh Ramdh
45a8e8fec0 Bug fixes:
- Wrong message when attempt to open boxes while inventory is full. (bugreport:9170)
- Revert a change on d670952, wrong commented line makes misc damage won't be relected. (bugreport:9185)
- Fixed 'devotion_rdamage' doesn't work for Magic Skill. (bugreport:8906)
- Follow up 8a81940, use vending/buyingstore db accessor on searchstore_query() for db_iterator()

Note for 'devotion_rdamage' for magic reflect.
- When this active to reflect magic damage, it still displays dummy damage value on devoted player, and this is custom config at first place. :P

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-04 22:03:43 +07:00
Capuche
77549f76ab Updated to match official version & clean-up in quests_airship.txt
Signed-off-by: Capuche <capucrath@gmail.com>
2014-08-03 02:54:02 +02:00
Cydh Ramdh
3fcc7e7f3a Follow up 7fd6776, update main.sql for buyingstores & vendings table following https://github.com/rathena/rathena/blob/7fd6776/sql-files/upgrades/upgrade_20140723.sql
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-03 06:11:03 +07:00
Cydh Ramdh
8a819403c1 Bug fixes & misc:
- Follow up 7fd6776, correcting how to make player sit by autotrade persistance.
- Follow up 7fd6776, pc_setstand() does a check if player can stand or not.
- bugreport:9174, buyingstore_close() doesn't clear buyingstores data on table.
- Fixed "missing" buyingstore search (purchase type search) in searchstore, by adding DBMap *buyingstore_db.
- Added nullpo checks on some buyingstore.c functions.
- Added do_init_buyingstore() and do_final_buyingstore().
- Failing autotrader from pc_setpos(). (Since autotrade doesn't have 'fd'? FIXME later)

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-08-02 11:07:26 +07:00
Capuche
caa80ecfc7 Clean-up in quests/first_class folder
Signed-off-by: Capuche <capucrath@gmail.com>
2014-08-01 16:20:24 +02:00
aleos89
4eeb10042c Added some options for idletime. (Herules e08c05a) 2014-07-31 09:54:22 -04:00
Euphy
42491cee08 A few item_db updates. (incl. bugreport:9171)
http://rathena.org/board/tracker/issue-9171-snowier-card/

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-07-30 01:11:31 -04:00
lighta
032c06c6cd Merge pull request #88 from anubisK/master
skill_changematerial_db : repeated line ereased
2014-07-27 17:07:42 -04:00
anubisK
f7c2a199f8 Update skill_changematerial_db.txt
One line was twice.
2014-07-27 12:16:54 +02:00
Akkarinage
fd14754846 Merge pull request #87 from nanakiwurtz/master
Documentation Update: /doc/atcommands.txt (@reload)
2014-07-26 12:52:40 +01:00
nanakiwurtz
cc5625eee2 Documentation Update: /doc/atcommands.txt (@reload)
Signed-off-by: nanakiwurtz <nanakiwurtz240@gmail.com>
2014-07-26 18:16:51 +07:00
Cydh Ramdh
07a6795d13 Follow up a24da6d, bugreport:9155
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-25 09:33:06 +07:00
aleos89
c8758478b4 Bug Fixes
* Fixed the stun effect from Berkana Rune. (bugreport:9057)
* Adjusted Thorn Wall to be a placeable skill and to ignore caster's % damage cards.
* Field Manuals (SC_EXPBOOST and SC_JEXPBOOST) now increase EXP gained from NPC quests (through the getexp script command). (bugreport:9091)
* Lif's Mental Change no longer fully restores her HP and SP upon activation.
* Fixed fakename atcommand not working while disguised. (bugreport:8896) (Hercules 1e492e3)
* Fixed speed atcommand resetting when swapping equipment/changing maps. (bugreport:8915) (Hercules 37fdcba)
* Cleaned up some compile warnings.
2014-07-24 11:45:57 -04:00