12080 Commits

Author SHA1 Message Date
nanakiwurtz
b5b25a82bb Merge pull request #81 from nanakiwurtz/master
Item DB update
2014-07-13 12:53:22 +07:00
nanakiwurtz
c9519b0bad Item DB edit (Bug Report #009100)
Thanks to rayn & Capuche

Signed-off-by: nanakiwurtz <nanakiwurtz240@gmail.com>
2014-07-13 12:47:11 +07:00
Cydh Ramdh
a8f239fc88 Bug Fixes:
- Client stuck while deleting char (bugreport:9101), thank leke
- Wrong check at pc_is_same_equip_index() triggers double damage for two-handed weapon (bugreport:9124), thank Myskelz & Anacondaqq
- Follow up 3d27b7e, Item avail check for npc_cashshop_buy() (bugreport:9122), thank Napster
- Missing enum 'K' for LOG_TYPE_BANK at `zenylog` (bugreport:9122), thank Napster

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-13 12:46:41 +07:00
Cydh Ramdh
0105bc7191 Follow up 4a4bced
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-12 12:50:05 +07:00
Cydh Ramdh
4a4bced1b1 Follow up 3d27b7e
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-12 12:37:27 +07:00
Cydh Ramdh
3d27b7e109 Bug Fixes:
- Kunai Splash (KO_HAPPOKUNAI) ammo check failure crashing map-server (bugreport:9112)
- Fear Breeze status (SC_FEARBREEZE) makes impossible to critical for single hit (bugreport:8197)
- Missing item avail check at NPC Cashshop causing item with item_avail cannot be bought (bugreport:9106)
- Swapped value between 'nk' and 'inf' for MH_LIGHT_OF_REGENE & MH_OVERED_BOOST
- Multi-hit by SC_FEARBREEZE that possibly causing map-server crashed if no ammo equipped
- Thank to all bug reporters
Misc:
- Add enum for clif_damage type, e_damage_type
- Add check for Autotrade Persistency, make sure to kick player who fail open vending/buyingstore

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-12 07:38:32 +07:00
nanakiwurtz
48ba55ed63 Item DB update
Thanks to Skorm, Cydh, Ziu
2014-07-09 02:52:42 +07:00
Cydh Ramdh
be9ffaf7e6 - Fixed 'atcommand' script failure for group with 'command_enable: false' (bugreport:9050)
- Replaced 'atcommand_max_stat_bypass' config (conf/gm.conf) to group permission 'bypass_max_stat'

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-07 12:26:07 +07:00
Cydh Ramdh
fcd79d63aa Bug Fixes:
- Fixed wrong check added at e7b654a (bugreport:9095)
- Spirit sphere reduces damage for skill hit num < 0, eg. MO_TRIPLEATTACK has hit num -3. (bugreport:9094)
Misc:
- Removed unused parameters in battle_calc_bg_damage() and battle_calc_gvg_damage()
- Some random src docs.

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-06 20:53:25 +07:00
lighta
79f4600dcd -Fix some CppCheck
-Fix bugreport:9088 (constant not always recognize if stating by number) thx to Hercule is_number
-Add infos on read_constant for check/debug
2014-07-04 11:22:40 -04:00
Cydh Ramdh
cd41c6d028 Macro clean up for Element, Race, Race2, Class, & Size validation check
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-04 19:53:30 +07:00
Capuche
af26677740 Bugfix and clean-up
- Added NPC const
- Added checkdragon() in F_CashReset
- Clean-up books.txt, fortune.txt, card_trader.txt, 3rd_trader.txt, stone_change.txt, quests_brasilis.txt
- Minor fix about Weight in comodo_gambling.txt
- Change to F_GM_NPC function in Mercenary Guild Switch follow up bdab851129ceee57a38ccc9d819b42011ef19fb7
- added Mercenary Switch in gm_npcs.txt list
- change to common green maiden in 2010 Headgear Quests

Signed-off-by: Capuche <capucrath@gmail.com>
2014-07-04 02:14:30 +02:00
Cydh Ramdh
a051af4cf1 Bugfixed, bugreport:9085. Wrong var in SP_ADD_ITEMGROUP_HEAL_RATE statement.
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-03 19:58:14 +07:00
lighta
0544f8fde8 -Fix bugreport:9084 getitemX unable to found item by id
-Upd itemdb, itemdb_combo, itemdb_group change key for unsigned int, since they no longer signed
2014-07-03 01:52:15 -04:00
lighta
a2433494cb -Fix bugreport:9079 'skill_chk’ differ in signedness [-Wpointer-sign] 2014-07-02 02:25:56 -04:00
lighta
f90fea2f86 -Fix bugreport:8637 itemcombo bug with card
-Fix weird check reported by cppcheck (Redundant condition at status_readdb_attrfix)
2014-07-02 02:18:37 -04:00
Cydh Ramdh
462b2bebdb * Bug Fixes:
-- Added itemstack check when init autotrader (bugreport:9077)
-- 'getitem' issue, gave unidentified item (bugreport:9075), follow up 62a2813
-- Invalid Def & Mdef reduction of SC_ARMORCHANGE & duration (NPC_STONESKIN & NPC_ANTIMAGIC), should be percentage (bugreport:9076)
-- Invalid Effect duration & Reflect chance of SC_MAGICMIRROR (NPC_MAGICMIRROR)
-- Wrong usage of script_isstring() for script commands: addspiritball, delspiritball, & countspiritball
* Misc:
-- Moved mail send progress to mail.c mail_send() from clif.c clif_parse_Mail_send()
-- Moved hardcoded flood protection when send a mail to 'mail_delay' in misc.conf

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-07-01 16:29:19 +07:00
Capuche
bdab851129 - Added mercenary guild switch npc from aegis
- Fixed a bug to rent a mercenary in izlude duplicate (it gave a wrong mercenary)
- added a missing delitem in cupet.txt (forgot to delete the 2nd item)
- change the rand part in Mysterious Documents npc in magic_books.txt to match aegis
- little clean up in quests/ninja_quests.txt
- replace the npc id to the constant in theses files

Signed-off-by: Capuche <capucrath@gmail.com>
2014-06-30 17:07:05 +02:00
Cydh Ramdh
c0326df96b * Added setting for resetting reuse skill delay homunculus, 0x80 (Disabled by default).
* Follow up 22dea1f

PS:
Hmm, as "suggested" by Darkpurple at bugreport:8989, idk it's bug or it should be like that. And, I added the setting option for a whole Homunculus (not for spesific skill/homun id yet), just like "reset reuse skill delay when vaporized" does.

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-28 15:38:49 +07:00
Cydh Ramdh
22dea1f600 Follow up e7b654a. Fixed changes for bugreport:9062 wasn't staged there
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-28 13:04:48 +07:00
aleos89
62a2813adc Bug Fixes
* Fixed Concentration ending when Frenzy is used. (bugreport:8942)
* Fixed Hells Plant hitting Ghost element enemies. (bugreport:8799)
* Forced guild notice changes to save immediately. (bugreport:8961)
* Fixed Cart Tornado damage formula. (bugreport:9065)
* Adjust Amistr's Castling to now switch to any target type. Still needs skill switching support. (bugreport:1784)
* Removed hard coded 1 second skill duration reduction for Spore Explosion.
* Fixed the party window not displaying the correct map name when in an instance. (bugreport:7949)
* Fixed hatching a pet causing client disconnections. (bugreport:9059) (Hercules 533ff4f)
* Updated Kagerou/Oboro skill cast times. (bugreport:9035)
* Removed deprecated negative nameid value for getitem/getitem2.
* Renamed incuvate to incubate throughout source and SQL.
* Added skill ID to the error display for battle_calc_attack to help resolve issues. (bugreport:8876)
* Cleaned and corrected some Sorcerer Elemental skills. (bugreport:9058)
* Cleaned up some more compile warnings.
2014-06-27 15:45:35 -04:00
lighta
b124498263 Fix -WShadow definition warning
Cleanup some leftover
2014-06-27 06:07:50 -04:00
Cydh Ramdh
e7b654aaab - Follow up a8a4425 (bugreport:9062)
- Added check for item group ID usage on item bonus
- Moved this '(sd->class_&MAPID_UPPERMASK) == MAPID_TAEKWON && sd->status.base_level >= battle_config.taekwon_ranker_min_lv && pc_famerank(sd->status.char_id, MAPID_TAEKWON)' to a macro 'pc_is_taekwon_ranker(sd)'

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-26 22:12:19 +07:00
aleos89
fff4877004 Bug Fixes
* Fixed the cash shop stacking non-stackable items upon purchase. (bugreport:7580, bugreport:7879, bugreport:8224)
* Fixed an issue with selling pet eggs in the cash shop (Hercules d57781c)
* Cleaned up some compile warnings from CPPCheck. (bugreport:9043)
2014-06-24 14:09:17 -04:00
lighta
9eb5e60b8e Update nullpo, to avoid va_list empty creation.
Update classe model
2014-06-24 01:15:40 -04:00
lighta
0ee126ba27 Update itemdb_subcheck fonction
now return bool instead int as they're value only true or false.
Update rathena modele class in rathena.vpp
2014-06-23 21:43:47 -04:00
lighta
65e9f240ee Update Model_Relation
-Export project to Visual_Paradigm
--add package overlay to see host dependancy
2014-06-23 04:28:57 -04:00
lighta
9e596bc708 Merge branch 'master' of https://github.com/rathena/rathena 2014-06-22 17:09:37 -04:00
Lighta
55134d1ae1 Fix ARM compilation.
-Upd configure (merge with Hercule configure.in)
-upd nullpo.c and atomic.h to allow arm compilation, testedon Epiphany parallela.
2014-06-22 17:06:02 -04:00
lighta
160315bbed Adding ER diagrame
Current relation of our schema, need to be reviewed, and drwa with host
limitation
2014-06-22 16:25:52 -04:00
Cydh Ramdh
c17b0849b0 Merge pull request #79 from nanakiwurtz/master
Item DB update
2014-06-20 19:36:20 +07:00
Cydh Ramdh
6c5d4a730f * Follow up 7cd82d0
-- Changed itemdb_array (array) to itemdb (DBMap)
-- Removed itemdb_other (DBMap)
-- Changed MAX_ITEMDB to MAX_ITEMID, by default limit is USHRT_MAX (65,535)
-- Changed item_drop_ratio_db (array) to mob_item_drop_ratio (DBMap)
-- Now all item datas stored in itemdb (DBMap) and mob item ratio datas in mob_item_drop_ratio (DBMap)

PS: I just realized that db/import/mob_item_ratio.txt doesn't work, because it loaded after mob_db.txt (another thing to do)
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-20 19:13:45 +07:00
Cydh Ramdh
0fca530278 * Fixed bugreport:9034 (Hercules aff9c14)
* 'bonus_script' improvement:
-- Added flag values (partial merge from sc_config branch):
-- * 16  : Removeable by Banishing Buster.
-- * 32  : Removable by Refresh.
-- * 128 : Removable by Luxanima.
-- * 256 : Remove when Madogear is activated or deactivated.
-- * 512 : Remove when receive damage.
-- * 1024: Script is permanent, cannot be cleared by bonus_script_clear
-- Added 'bonus_script_clear' command to remove active bonus_script from player (works like sc_end) Thank Napster to mention this. (bugreport:9042)

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-20 15:12:42 +07:00
nanakiwurtz
34efce56c5 Item DB updates:
-- kRO 2014-05-28
Thanks to Cydh

Signed-off-by: nanakiwurtz <nanakiwurtz240@gmail.com>
2014-06-19 09:59:56 +07:00
Cydh Ramdh
8cb97785c2 Follow up https://github.com/rathena/rathena/commit/98c6aee#commitcomment-6679748 Thank @CairoLee (err, messed up D:)
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-18 04:09:10 +07:00
Cydh Ramdh
98c6aee157 Follow up 7cd82d0, bugreport:9041
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-16 17:10:50 +07:00
Cydh Ramdh
bfac556ecb Follow up 32d659f
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-16 12:09:59 +07:00
Cydh Ramdh
32d659fee7 Follow up 267d521, thank Napster (bugreport:9040)
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-16 11:22:04 +07:00
Cydh Ramdh
8742f78da9 Fixed bugreport:8234, memleak leftover from channel.c
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-15 21:58:05 +07:00
Cydh Ramdh
267d521c00 Bug fixes:
-- Pin code issue after char_refac (bugreport:9027)
-- Delete date issue after char_refac (bugreport:9029)
-- Stuck when drag item from/to inventory/cart/storage if the item cannot be moved. (bugreport:8935)
Command:
-- Added @cloneequip to clone other's equipments.
-- Added @clonestat to clone other's statuses.
-- Thank Antares for the suggestion, http://rathena.org/board/topic/95076-new-atcommands-suggestion/
Permission:
-- Added 'bypass_stat_onclone' to make user who use @clonestat can bypass stat limit.
-- Change 'atcommand_enable_npc' to 'command_enable' permission to enable use command while talking with NPC. Suggested by @aleos long time ago.
Misc:
-- Correcting some checks for bAddEff bonuses.
-- Moved status point calculaiton formula to PC_STATUS_POINT_COST, removing redundancy in pc_need_status_point and pc_maxparameterincrease.
-- Added pc_is_same_equip_index function to move all item index checks, removing redundancy in some cases.
-- Some random in-source documentations.
-- Updated map_msg_idn.conf.

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-15 18:50:21 +07:00
aleos89
82467e14ed Follow up to 7cd82d0.
- Adjusted a few SQL variable types and specifiers for cards in the char-server.
2014-06-12 14:03:44 -04:00
aleos89
42b29ee81e Follow up to 7cd82d0.
- Fixed SQL queries to convert CARD0_PET to positive value before adjusting table to avoid setting the value to 0.
- Thanks to Cydh.
2014-06-12 12:38:46 -04:00
aleos89
7cd82d00db Increased item ID array size.
- Increased limit from 32,767 to 65,535.
- Still uses same amount of memory with doubled usable size.
- Adjusted CARD0_PET from -256 to 256.
- Please run both SQL files after applying this update to avoid values becoming corrupt.
- Tested and works on clients 2012-04-10 and up thanks to Cydh.
- Removed an unused SQL file.
2014-06-12 11:29:10 -04:00
Euphy
5e261ba415 Minor cleanup of riding script commands.
- The 'checkriding()' function no longer checks for wargs and dragons, ONLY Pecos, Grand Pecos, and Gryphons (as documented). (bugreport:9024)
http://rathena.org/board/tracker/issue-9024-about-renters-from-rathenanpcremerchants/
- Replaced 'checkoption()' warg checks with 'checkwug()'.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-06-10 22:58:09 -04:00
Cydh Ramdh
869d9be17a Follow up 6b9ec5f, bug fix of http://rathena.org/board/topic/95699-compiling-error-when-changing-client-date-on-mmoh/ thank iZeal
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-11 01:35:36 +07:00
aleos89
b44e5e11f2 Bug Fixes
* Fixed characters moving to unavailable slots using Character Moving System. Thanks to Napster. (bugreport:8987)
* Implemented MD_RANDOMTARGET. (bugreport:8781) (Hercules 10e6f1a)
* Implemented a new define for renewal status point calculation to separate from default renewal define. Thanks to @cydh. (bugreport:8784)
* Follow up to f511107 to fix a compile warning.
* Forcefully save characters before opening a Vending Shop to prevent invalid data from saving. (bugreport:8955)
* Fixed 2013-12-23 client from disconnecting after executing /limitedsale command. Thanks to Napster. (bugreport:9011)
* Fixed Elemental Shield displaying a warning to the console. (bugreport:9016)
* Elemental Shield requires a Blue Gemstone to cast.
* Adjusted Flash Combo to only consume 65 SP.
* Added missing skill_require_db defines for Episode 14.3 Part 2 skills in the pre-renewal database.
2014-06-10 12:24:19 -04:00
Cydh Ramdh
efdca3e25d Follow up cc499e8
some files not selected in previous commit. :P

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-09 22:11:46 +07:00
Cydh Ramdh
cc499e80b2 Item sql update, follow up 70a6564 & bugreport:9018
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-06-09 22:05:32 +07:00
Capuche
5577161e6e Re-add the commented lines follow up 256e0652b18ee789d4c598abdf4af0d3163b9975 2014-06-09 16:51:07 +02:00
Capuche
256e0652b1 Update re/item_combo.txt 2014-06-09 15:52:42 +02:00