117 Commits

Author SHA1 Message Date
Lemongrass3110
6a8985531b Fixed NPC markets
Fixed signedness warnings for the sanity zero-terminations
2016-10-14 09:14:22 +02:00
Jittapan Pluemsumran
f296409ada
Initial Release of Random Option System
* Added basic support for random option system
* Don't forget to import upgrade_20160814.sql and upgrade_20160814_log.sql to make your existing rAthena installation functional!
2016-08-14 22:21:07 +07:00
Napster
d70b1734c8 Add support body style implementation
* This feature require the client support before 2015-05-13 or newer
   Make sure you data&lub support for this

  note : read info to https://rathena.org/board/topic/104205-2015-client-support/

  Special Thanks you to Rytech, @aleos89
2016-01-12 01:55:30 +07:00
Atemo
d114fadf2a Split the default data for db_roulette from main.sql 2015-11-18 03:21:06 +01:00
Atemo
3f795c4175 Update of pull #572
Organized the table creation statements by alphabetical order.
Added some redundancy to some SQL statements.
2015-11-16 20:34:05 +01:00
Vennren
0da96457e7 Update main.sql
Fixed 'db_roulette' table in relation to Error Code: 1064.
2015-10-08 05:09:46 +02:00
Aleos
6295c77d39 Merge pull request #457 from rathena/feature/script_engine_upgrade
Script Engine Upgrade
* More information here: https://rathena.org/board/topic/102946-script-engine-upgrade/
2015-08-31 14:26:15 -04:00
Napster
e444270b0a Follow up to 53868d5
* Fixed #600, Hotkey Rotate Packet Implemented, Thank You @dastgir

Credits : Hercules 2b4b33b06a
2015-08-28 16:32:23 +07:00
aleos89
35cd68873b Merged with master 2015-06-26 10:36:40 -04:00
aleos89
b6212a676d Follow up to 3d9c6e7.
* Fixed missing index for Roulette SQL table.
2015-06-19 14:39:49 -04:00
aleos89
3d9c6e7763 2014 Client Support
* Implemented the Roulette Game feature.
* Implemented per-character sex change feature.
* More info: https://rathena.org/board/topic/102247-2014-client-support/
- Special thanks to HerculesWS/Hercules@239d480 for the base.
2015-06-19 14:07:34 -04:00
aleos89
0696125b82 Script Engine Upgrade
* Upgraded the script engine variables to no longer be limited.
* Increased array limit from 127 to 2 billion.
* Improvement in overall speed and storage size.
* All variable types now support arrays.
- Merge from HerculesWS/Hercules@82b583b. Thanks to those who worked on it.
2015-06-11 10:44:13 -04:00
Cydh Ramdh
5ed75dc877 * Merge pull request #294 and its clean up
* Moved Bank Vault from `login` table (login-server level) to `global_reg_value` as #BANKVAULT (char-server level)
  * IMPORTANT: Read & import upgrade_20150408.sql
* Follow up cbdc0127, another fix for Point Shop NPC.
* Follow up 022d7289, corrected picklog initial for bound items that removed when member of guild/party or guild/party is broken. Please import upgrade_20150408_log.sql

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-04-09 01:26:17 +07:00
Cydh Ramdh
7d929a06a3 NPC Market Shop support
* New shop script definition: `<map name>,<x>,<y>,<facing>%TAB%marketshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>:<quantity>{,<itemid>:<price>:<quantity>...}`
* Added script command to update shop NPC: 'npcshopupdate "<name>",<itemid>,<price>{,<stock>}'
* Added NPCMarketDB (DBMap) for market data persistance method.
* Added `market_table` definition for market table in conf/inter_athena.conf.
* Thank to @aleos89, @Lemongrass, @icxbb-xx, merged HerculesWS/Hercules@cf19b26.

NOTES:
* Minimum client needed 2013-12-23 (but this client has bugs there-and-there).
* There's new table, see `upgrade_20150327.sql`.
* Market shop doesn't support discount.
* Added items by script `npcshopitem` or `npchopadditem` will be assumed as persistance items, will be loaded on next script reload or server start even market_shop NPC does't list them (unless NPC is not exists, entries will be removed).

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2015-03-27 21:11:07 +07:00
Cydh Ramdh
95705d41be Bonus Script clean up
* Removed fixed array size (MAX_PC_BONUS_SCRIPT) of bonus_script on players.
* Changed fixed script string on player's bonus_script to StringBuf, reduce memory usage for each connected player.
* Added new flags to expand duplicated script and flag to allow duplicate script.
* Reduced buf lenght from 1024 to 512 on bonus_script_data (used for saving/loading bonus_script from char-server). Still, MAX_PC_BONUS_SCRIPT is used to gives limit data can be loaded.

NOTE:
Please import 'upgrade_20150131.sql' for `bonus_script` table changes

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2015-01-31 15:07:13 +07:00
Cydh Ramdh
9b4d922ef4 Bug Fixes:
* Follow up 2d2991a, remove trailing spaces in inter_athena.conf
* Added `bound` field on `picklog` table (bugreport:9240) Thank @icxbb-xx (Napster)
* Fixed Randomize Spell infinite loop. Failure of skill improvise db reading. (bugreport:9288)
* Added **max_extended_aspd** for caping max ASPD for KO/Rebellion, default is 193. Pointed by @raynra & Ziu
* Mail attachment
  * Added `bound` field on `mail` table, since group with PC_PERM_TRADE_BOUNDED can put bound item into attachment
  * Fixed wrong data type causing wrong zeny amount (bugreport:9291)
* Fixed item color issue for bound item (bugreport:9238)
  * Stackable item shouldn't be displayed as yellow color
  * Equip doesn't shown as yellow after relog or item is moved
* Silence status immunity for Renewal (bugreport:9227)
  * Bleeding (SC_BLEEDING): Vit -> Agi
  * Silence (SC_SILENCE): Vit -> Int
  * Sleep (SC_SLEEP): Int -> Agi
  * Thank @Playtester, @Lilith-, partial merge of Hercules:6f26451
* Fixed status check when cast a skill to hidden target
  * Stone Curse shouldn't be casted to hidden enemy when the caster has intravision (bugreport:9266)
  * Added **INF3_HIT_HIDING** for skills that *maybe* have effect to/can hit the hidden target. Previously, every Earth Element skills *always* had it, doesn't matter ground skill or single-target skill
  * **!TODO: Confirm other skills that have ability for this!**
  * **!FIXME: For now, I rely as the previous check did, I put some Earth Element skills (and) with area/ground effect**
* Correcting Devotion behavior (Hercules:e7be725, 41f28c0)
  * Failing to cast Devotion to the 6th player
  * Only player who devotes other that 'shout' Auto Guard when it active also with the walk delay
  * Status icon that inherited from devoter won't be displayed at devoted player
  * Reflect Damage on devoted player won't reflect normal attack, only melee skill attack
  * Added config **devotion_rdamage_skill_only** for backward compability, ignore the behavior above

**IMPORTANT**
  * Please import sql-files/upgrades/upgrade_20140915_log.sql
  * Please import sql-files/upgrades/upgrade_20140915.sql

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2014-09-15 18:02:49 +07:00
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
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
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
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
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
aleos89
7e92017092 Follow up to 6afcdeb to include changes on the character server and SQL update. 2014-05-23 13:38:38 -04:00
CairoLee
9ca5208b59 - Remove "DEFAULT CHARSET=latin1" from sql-files(Maybe has somebody Using utf8 like me) 2014-02-20 10:19:02 +08:00
Lemongrass3110
b3506fb8f5 Buyingstore persistency
Basic features of @autotrade persistency now also available for buyingstores.
2014-02-06 09:55:59 +01:00
Lemongrass3110
21eac1da68 Forgot the SQL changes 2014-01-14 22:28:52 +01:00
Cydh Ramdh
be05bc399b *Added 'status_icon' param for *bonus_script script, thank QQfoolsorellina for the suggestion (https://github.com/rathena/rathena/commit/99098c1#commitcomment-4558795)
--> bonus_script "<script code>",<duration>{,<flag>{,<type>{,<status_icon>{,<char_id>}}}};
* Please update your sql database (main database) with upgrade_20131227.sql

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2013-12-27 18:17:41 +07:00
lighta
3428ae297a Adding charblock
Update HC 0x20d to send the blocklist value, based on Herc:aee2f631
Revamp ZH 0x2b0e and HA 0x2725 to send difftime instead
year,month,day,minutes,secondes values..
Remove duplicate code for char_ban
Add missing sql_upgrade for vip
2013-11-18 20:38:10 -05:00
aleos89
30648216ec Initial release of VIP System.
By default system is disabled (src/config/core.h).
This follows the iRO implementation VIP System. More information can be found on the iRO Wiki.
All settings also have individual configs.
Official VIP scripts will be implemented later.
Big thanks to lighta and Cydh for support and debugging.
2013-11-18 15:21:51 -05:00
Lilith-
bd2503e279 Added Shadow Equipment System support (item type 12) 2013-11-14 16:37:03 -08:00
Cahyadi Ramadhan Togihon
9e8e3cfacc * Follow up to: 99098c1
-- 'bonus_script' is now by default will be store on 'bonus_script' table. CAUTION: Please import 'upgrade_20131111.sql' file or execute the query inside to make `bonus_script` table.
-- Updated bonus_script documentation following flag &8 (BONUS_FLAG_REM_ON_LOGOUT) behavior. By default, bonus_script will be stored when player logs out and will be continued when player logs in.

* And small changes.
2013-11-11 19:59:35 +07:00
lighta
f39207f5e2 Leftover of bigint 2013-11-05 14:17:04 -05:00
lighta
1290826be2 Adding banking support 2013-11-05 13:41:42 -05:00
lighta
69b28292cf Skill_colldown
Move skillcooldown from ram saving to sql saving.
This will fix multimap skillcooldown and avoind increasing ram by
offline users.
2013-10-08 16:54:03 -04:00
akinari1087
4742adac12 Introducing the Account/Guild/Party Bounded Items System - Suggestion tid:70372
- Thanks for Xantara for providing initial diff as well as Lighta for guild bound help
- Adds script commands 'getitembound', 'getitembound2', and 'countbound'
- Adds at commands @itembound and @itembound2
- Adds permission pc_can_traded_bounded
- Documentation updated

Don't forget to run the SQL upgrade file!

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-06-08 22:47:10 +00:00
lemongrass3110
dfa3bdbe17 Forgot to merge the changes into the main file again.
And also forgot to restore the default values before commiting. It is getting late here. -_-

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-03-13 00:21:15 +00:00
lemongrass3110
ef8519546c Merged the PIN columns into main.sql
Some formating optimizations to parse_fromchar in login.c, credits to Ind for the idea.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-03-09 11:48:47 +00:00
euphyy
d238a8ae67 > Hercules merges:
* 0241d01:
Introducing account-dependent character slot count.
Available player slots can be limited in the `character_slots` column of `login`.
Existent characters on slots above the limit will still be accessible but will have a red "premium service" in the background.

* 5d6c1c5:
Updated values for first levels in exp.txt and exp_guild.txt.
Updated Renewal item database with new healing items.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17176 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-03-06 21:19:13 +00:00
euphyy
f3e4ef5067 * Updated "Calyon" NPC in El Dicastes quests, fixing an incorrect condition.
> Hercules merges:
* 2bc8562, 126225b:
Skills granted through scripts are now permanent, until this date they were not relog persistent. (bugreport:5018)
Note that you will need to execute /sql-files/upgrades/upgrade_svn17136.sql for this change.

* b8379d2:
@skillid now supports partial search.

* d7ce0c1:
Character's online states are now updated as soon as they attempt a char select, instead of at the end of the procedure. This improves reliability with 3rd party software e.g. control panels. (bugreport:7269)

* d828000:
Login and Char servers will now exit when failing to bind to the port (as map server has always done).

* 003ed2c:
Moved "Honeymoon Helper" and "Odgnalam" NPCs to official RE coordinates.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17136 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-02-17 21:13:33 +00:00
euphyy
4f4d8fe958 * Fixed incorrect condition for ST_RIDING (follow-up r17110, bugreport:7254).
> Hercules merges:
* c69e4b6:
Added new item bonuses bFixedCast, bVariableCast & bFixedCastrate (see 'doc/item_bonus.txt' for info).
Added new conf for max_walk_path.

* bb61951:
Getting rid of unused indexes.
If the table has a multiple-column index, any leftmost prefix of the index can be used by the optimizer to find rows. For example, if you have a three-column index on (col1, col2, col3), you have indexed search capabilities on (col1), (col1, col2), and (col1, col2, col3).
Source: http://dev.mysql.com/doc/refman/5.5/en/multiple-column-indexes.html

* 7e4c578, 90eefa0:
Allow unsigned int values for guild exp (as it was before the change).
Atoll was introduced in a 2011 lib and vc9 and 10 don't have that, dropping to atol since we dont need the int64 and using a tricky conversion to get it to unsigned.

* a4802ea:
You no longer can dispell guild mates in non-pkable areas. (bugreport:6803)

* 54d0583:
Hells Plant no longer can be stacked on the ground. (bugreport:6825)

* 6fb7161:
Fire Pillar is now removed by land protector, and no longer can be cast over land protector. (bugreport:2177)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-02-07 22:22:24 +00:00
markzd
fcf360da41 * Renaming variable name from nsiuid to unique_id for better understanding of its meaning, as requested on tid:69380.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17086 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-08 05:31:06 +00:00
markzd
a157f0d1eb * Follow Up: r17080
1. Removed an unnecessary update call.
   2. Implemented interreg table at main.sql.
   
* Follow Up: r17077, r17072, r17065
   1. Fixed bugreport:7078, removed unnecessary checks.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17081 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-07 06:01:48 +00:00
markzd
de6af1fc0b * Implemented Unique identifier for Non stackable items. (tid:69380)
* Set as off by default, it can be changed in /src/config/core.h.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17080 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-07 05:13:54 +00:00
euphyy
6820154c90 * Custom Quest Shop updated to v1.6, which adds support for bulk purchases.
* Follow-up r17014, fixed a typo in main.sql -- credits to Jeroen for finding that.
* Follow-up r17039, missed a parameter -- thanks, clydelion/mkbu95!

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17040 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-24 02:56:49 +00:00
rud0lp20
aa7031075c Happy Holidays and Happy 12/12/12 :)
Update Elemental summon to its official behavior
  - Fixed missing skill features of Ventus(bugreport:6792,bugreport:6723,bugreport:6511)
  - Note: upgrade_svn17014.sql
  - And other elemental skills are to follow :)
Fixed bugreport:6889 updated const.txt where it cause error to some items.
Fixed bugreport:6999 where matk damage deals miss atk to plant type targets.
Fixed status calculation where it doesn't give accurate result or how official calculation does.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17014 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-11 17:20:44 +00:00
shennetsind
e713fad704 Follow up r16663 added missing column to main.sql, superspecial thanks to EvilPuncker for pointing out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-18 14:25:26 +00:00
euphyy
b2c806a597 * Moved RE coordinates of Bullet/Magazine Dealers in Izlude, bugreport:6410
* Added "favorite" column to main.sql file, bugreport:6425 (sql-files\main.sql)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-07 18:47:08 +00:00
kenpachi2k11
d3aa277d3b Made field name in char table unique to prevent 3rd party tools from making our data messy. (bugreport:5587)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-24 10:30:54 +00:00
brianluau
18a6c0ba18 - Fixed a SQL error from r15885. (tid:62072)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15896 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-21 02:29:54 +00:00
shennetsind
a1612031a6 Initial support for Genetic, Sorcerer and Elemental Summons. Special Thanks to 3CeAM for the base.
Notice this revision onwards requires you to update your char sql table and add the elemental sql table (check sql-files/upgrade_svn15885_log.sql)
If you step by any bugs, let us know at http://rathena.org/board/tracker/ Thank you very much.
ARRIBA ARRIBA.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15885 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-04-20 18:05:14 +00:00
kenpachi2k11
c3218d6ec2 Follow up to r15572: renamed column level to group_id (login table) in /sql-files/main.sql
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15575 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-02-13 20:23:16 +00:00