16361 Commits

Author SHA1 Message Date
Lemongrass3110
ae540f133f Fixed linux server shutdown order (#2151)
Fixes #2141

Thanks to @hurtsky, @RadianFord, @hazimjauhari90 and @aleos89
2017-05-20 18:40:08 +02:00
Aleos
ce4ebbe5bc Updated leftover pet variables to 64k support (#2129)
* Small follow up to 7cd82d0.
* Fixes #2121.
* Updated pet egg and pet equips to support 64k values.
Thanks to @TrueNoir!
2017-05-16 22:28:17 +02:00
Lemongrass3110
068ea0a4ba Fixed char saving after buyingstore transactions
Fixes #2148
Thanks to @Encon21
2017-05-16 20:33:03 +02:00
nanakiwurtz
c0476f6bfe Fixed chat color bug in Channel System (#2140)
`@channel setcolor` command failed to change the font color, resulting in black font color.
2017-05-16 15:27:53 +07:00
Jey
79ad0a1902 Fixed bAutoSpellOnSkill applied on wrong target.
* Target is now determined by the AutoSpell, not the casted one.
* Fixes #2136
2017-05-11 23:31:03 +02:00
Lemongrass3110
562d6d1e34 Added automatic clan member removal (#2135) 2017-05-10 23:27:20 +02:00
Lemongrass3110
55735ea8f8 Follow up to 9716233
Thanks to @hazimjauhari90 and @admkakaroto.
2017-05-10 23:23:48 +02:00
Jittapan Pluemsumran
d259ba3385
Added zlib1.dll to .gitignore 2017-05-10 20:30:41 +07:00
Atemo
809754379b Added 'warp2' NPC
Unlike 'warp', 'warp2' NPC will also be triggered by hidden player.
Thanks @secretdataz and @Lemongrass3110 !

* Replace script using OnTouch:([\r\n\t]+)warp by warp2

* Removed sprite id from warp duplicates in Bangungot instance

* Fixed a bug where warp/warp2 parsing is too greedy
2017-05-09 23:45:34 +02:00
rAthenaAPI
ea4d192aaa SQL synchronization 2017-05-09 13:34:27 +02:00
Atemo
1e1d7e54f0 Merged Faceworm Instance from idathena https://github.com/idathena/tr… (#1889)
* Merged Faceworm Instance from idathena 20f71d8c62

Credits to @exneval !
2017-05-09 13:34:19 +02:00
Lemongrass3110
9716233c84 Introducing the equip preview window
Fixes some bugs for 2016-09-21 onward, where you can preview how a item would like if you put it on.
This works on other people's vending and on your own inventory.

Thanks to @Rytech2 and @hazimjauhari90
2017-05-08 23:40:05 +02:00
Jittapan Pluemsumran
999c411ecd Update README.md 2017-05-08 15:13:37 +07:00
rAthenaAPI
b7f3ee9772 SQL synchronization 2017-05-06 16:16:12 +02:00
Atemo
f539d9797f Fixed issue #2110
bBaseAtk is capped and can't be sustracted

Thanks @jamon18 and @admkakaroto
2017-05-06 16:15:55 +02:00
rAthenaAPI
e59d5d78d8 SQL synchronization 2017-05-06 15:36:56 +02:00
Atemo
6cc9b955f5 Changed Vellum Glaive effect to follow kRO description
issue #2109

Thanks to @jamon18
2017-05-06 15:36:38 +02:00
Jittapan Pluemsumran
4a004ad4b8
Merge branch 'feature/cpp' 2017-05-05 16:53:25 +07:00
Jittapan Pluemsumran
2e524f18fc
Removed an extra C linkage declaration in core.h 2017-05-05 16:50:58 +07:00
aleos89
a3282c1730 Corrected a compile error
* Follow up to 900548f.
2017-05-04 13:28:06 -04:00
aleos89
900548f34b Corrected a compile warning
* Follow up to a15661e.
2017-05-04 13:20:17 -04:00
Aleos
12756ba8ec Homunculi configuration adjustments (#2092)
* Fixes #2073.
* Homunculi will no longer autoloot items by default.
* Homunculi will not Vaporize if their HP is below 80% when the master dies.
* The battle configuration homunculus_auto_vapor is now a percentage value to allow for further customization.
Thanks to @TheNoobCompany!
2017-05-04 12:28:57 -04:00
Cydh Ramdh
a15661ecfa RE:Initial release script commands for Item Random Options (#2066)
* Added script commands getitem3, getitembound3, makeitem3, rentitem3, countitem3, and delitem3.
2017-05-04 12:11:43 -04:00
aleos89
4bb6aa13a0 Revert "Status Change display in status window (#1481)"
This reverts commit a75133eb4d8976c1c890d5420665e7a76349e226.
2017-05-04 10:25:44 -04:00
aleos89
9ba2513ff4 Revert "Fixed hidden statuses not being applied"
This reverts commit ef3ad997c77e7afda6b8f56ed3fb8b2a5f6a0347.
2017-05-04 10:24:04 -04:00
Jittapan Pluemsumran
7749c18a06
Prepared the project for mixing C++ code in 2017-05-03 22:32:46 +07:00
Jeybla
cc59048d86 Adjusted Feint Bomb behavior near a Maelstrom Cell. (#2107)
* Feint Bomb near a Maelstrom Cell now matches the official behavior.

Rathena before:
* FB was possible to use near Maelstrom, but didn't trigger an explosion

Now:
* FB fails near Maelstrom, displaying a "skill failed" message.
* It's possible to use FB right after it failed.
2017-05-03 07:54:39 +02:00
Aleos
10b512b859 Updated Giant Fly Wing behavior (#2098)
* Party members should be recalled to their own positions in a 3x3 area around the party leader.
* Added two missing client messages.
* Adjusted script command warpparty to support range values.
* Adjusted script command warpparty to not warp the party leader if "Leader" is passed as the map.
2017-05-02 20:51:26 -04:00
Lemongrass3110
cac27fc3d5 Refactored script_rid2sd (#2062)
It now matches the other script_***2sd or script_***2bl functions.
Also added script_mapid2sd for mapid to map session lookups.
Cleaned up the order of some of the checks in the script functions that used script_rid2sd and sometimes checked the validity of the retrieved session to late or even never at all.
2017-05-03 00:17:46 +02:00
aleos
ef3ad997c7 Fixed hidden statuses not being applied
* Follow up to a75133e.
* Fixes #2111.
Thanks to @Canoe, @Lemongrass3110, and @Jeybla!
2017-05-02 17:33:54 -04:00
rpdigos
07e1a670bc Replaced strcopy with memmove (#2061)
Shortened the original title and commit message a little.
Thanks to @rpdigos!

Original commit message:
When we try to run the application we got the signal Abort trap 6 and the application is interrupted by the OS.
This issue is related with the fact that when using strncpy the source and destination string should not overlap, as we can see in the man page:

man stpncpy()
...
The source and destination strings should not overlap, as the behavior is undefined.

We've replaced it by the function memove:

man memmove()
...
The two strings may overlap; the copy is always done in a non-destructive manner.

Follow ec1fe15d7d480e4fa6ff3f56986bbfd49a4cde2a
2017-05-02 23:30:47 +02:00
Lemongrass3110
799f781ac2 Fixed MySQL 5.7 compatibility (#2074) 2017-05-02 22:59:05 +02:00
Playtester
b6ff1c6030 Claymore Trap and Blast Mine in Renewal (fixes #1028, fixes #2113)
* Reverted 574f69e
* These traps were already working fine before that commit, so no further changes needed
2017-05-02 20:03:25 +02:00
Jittapan Pluemsumran
cacd98ddeb Merge pull request #2089 from rathena/refactor/windows-build
* Dropped support for VS older than 2012
* Delete all solutions
* Added a new global VS2013 solution (2015+ also supported by this solution)
* Added x64 build support for Windows (Thanks to @Lemongrass3110)
2017-05-02 12:52:39 +07:00
Jeybla
9e6b02ae59 Fixes a getcharid error message. (#2106)
* In quests/quests_morroc.txt Continental Guard.
2017-04-29 19:20:25 +02:00
Lemongrass3110
4a6498665c Enabled x64 in appveyor 2017-04-28 15:13:30 +02:00
Lemongrass3110
be9b13d0bc Removed dbghelp.dll
Follow up to b1881ea by @wilkemeyer
2017-04-28 14:54:48 +02:00
Lemongrass3110
6bbce0f372 Merge branch 'master' into refactor/windows-build
Added all missing import-tmpl copies to the map-server project

# Conflicts:
#	vcproj-10/map-server.vcxproj
#	vcproj-12/map-server.vcxproj
#	vcproj-13/map-server.vcxproj
#	vcproj-14/map-server.vcxproj
2017-04-28 14:38:07 +02:00
Lemongrass3110
07b2ef28a0 Added Visual Studio x64 support
Removed the .dll files for the libraries from the root directory.
They are now copied from the 3rdparty folder when your build finishes and the project requires them.
If you clean your project they will also automatically be removed from the root directory again.

Updated libraries:
MySQL 5.0.20 -> 6.1.9
PCRE 8.30 -> 8.33.0.1 UTF8

Both Win32 and x64 are now supported. Remember to clean and build when you switch the target platform, otherwise you will end up with the wrong .dll files at runtime.
2017-04-28 13:40:08 +02:00
rAthenaAPI
bf2461f2b0 SQL synchronization 2017-04-28 00:43:16 +02:00
Cydh Ramdh
e59cdfff90 RE:Initial release item random option for monster drop (#2065)
* Initial release item random option for monster drop
* To add item for monster with random option group, see 'db/[pre-]re/mob_drop.txt'
* To add item random option group with random option group, see 'db/[pre-]re/mob_item_randomopt_group.txt'
* Default entries for random options are follow iRO Crimson/Scarlet Weapon based on
  * "[Renewal] Episode 15.2 Crimson Weapon System", see http://www.playragnarok.com/news/updatedetail.aspx?id=280&p=1.
  * File uploaded by Oda (iRO's CM) on https://forums.warpportal.com/index.php?/topic/168763-fansitedb-information-distribution-and-request-station/?p=2495922

Signed-off-by: Cydh Ramdh <cydh@pservero.com>

* Follow up 3b7db36288d70b6f40632e7397af4ed073595c8c
* Moved `RDMOPTG_Crimson_Weapon` from const.txt to `enum Random_Option_Group` in `itemdb.h`.
* Removed `RDMOPT_WEAPON_ATTR_POISON`, `RDMOPT_WEAPON_ATTR_TELEKINESIS`, and `RDMOPT_WEAPON_ATTR_UNDEAD` from Crimson Weapon random group (`RDMOPTG_Crimson_Weapon`), thanks to @atemo
* Added db header for impot-tmpl files, thanks to @secretdataz

Signed-off-by: Cydh Ramdh <cydh@pservero.com>

* Follow up ac0cdd8dc87c534d26510cf3d37cb1609629919a
* Fixed type on steal checking

Signed-off-by: Cydh Ramdh <cydh@pservero.com>

* Cleared some drop slot for crimson weapon
2017-04-28 00:43:09 +02:00
Lemongrass3110
31cd394d1d Follow up to 4cfaa18
Removed the duplicated lines
Also removed project dependencies for libconfig and mt19937ar from common-minicore
2017-04-27 11:06:59 +02:00
Jittapan Pluemsumran
4cfaa1817b
Removed unneccessary library includes 2017-04-27 15:05:08 +07:00
Jey
cbc3b260c8 Follow up to caed38927ac6edd327a63488ec5d3a0fe1fedb9f
* Fixed a possible map server crash
* Fixes #2094

Thanks to @spangler88.
2017-04-26 15:03:40 +02:00
Lemongrass3110
4348ef3b89 Added a -D equivalent for msbuild
Fixes appveyor not building in pre-renewal mode
See original commit 15b4050
2017-04-26 03:44:37 +02:00
Lemongrass3110
bfeb697933 Redirected build output into the .vs folder 2017-04-26 03:38:08 +02:00
Lemongrass3110
3995fff863 Updated gitignore for the moved shell scripts
Added some of the new visual studio output files to the ignore list too
2017-04-26 03:18:58 +02:00
Jey
4f99567e41 Channel System message correction
* Follow up to c87dba5.
* Fixed the member limit message pointing to the wrong index.
2017-04-26 03:18:48 +02:00
Lemongrass3110
448e5e893f Moved the bat scripts into the tools folder
Added post build copies and post cleanup deletions for the required bat scripts for each project
2017-04-26 02:58:39 +02:00
Lemongrass3110
5923633ad7 Added deprecation functionality to script engine (#2064)
This commit adds support to deprecate script commands or constants.

Based on the following two commits by @MishimaHaruna
HerculesWS/Hercules@ce85609
HerculesWS/Hercules@6ae9045
2017-04-25 23:43:29 +02:00