18299 Commits

Author SHA1 Message Date
Vincent Stumpf
61c2480d89
Add explicit [[fallthrough]] attributes (#8054)
Fixes #7918
2023-12-29 01:08:24 +01:00
Lemongrass3110
b6f17692e9
Updated Hercules packets (#8056) 2023-12-29 00:20:09 +01:00
Lemongrass3110
e3a3bfc868
Fixed login_check_password (#8052)
Fixes #8043

Thanks to @LasherasGH
2023-12-28 23:56:23 +01:00
Atemo
79ea192032
Updated item DB up to december 19 2023 (#8057)
* Updated item DB up to december 19 2023
* Corrections in combo DB
* Removed duplicated combos
2023-12-28 14:32:48 +01:00
Vincent Stumpf
8336f046b7
Allow default sell values in npc shop scripts (#8050)
Fixes #6594
2023-12-27 22:16:04 +01:00
Sola丶小克
1f6ec24a33
Remove deprecated global sql settings code (#8055) 2023-12-27 17:31:04 +01:00
Vincent Stumpf
f2a3bad3e2
Cleanup uses of SWAP macro (#8051) 2023-12-27 11:36:46 +01:00
Lemongrass3110
82b36dc847
Fixed some compiler warnings (#8053)
Fixes #8044

Thanks to @Pokye
2023-12-27 10:58:14 +01:00
Lemongrass3110
cd0c44af60
Refactored script command rand (#8040)
Fixes #8041

Added support for int64, so the range of the random numbers that can be generated is much wider now.

Changed the logic to be more restrictive:
	(1) The range version is intended for positive numbers only.
	(2) If minimum and maximum are equal and no random value can be calculated.
Triggering the more restrictive behavior will trigger the script source (file) to be reported in the map-server.

Co-authored-by: Atemo <Atemo@users.noreply.github.com>
2023-12-26 23:52:37 +01:00
Lemongrass3110
871c4e62cf Reverted variable rename
Follow up to 6750837
2023-12-26 22:04:38 +01:00
Vincent Stumpf
6750837854
Let rnd_value callers not care about order (#8046) 2023-12-24 15:42:02 -08:00
Lemongrass3110
ac85d44197
Refactored CZ_REQ_MERGE_ITEM (#8039)
Thanks to @secretdataz!
2023-12-20 13:39:11 +01:00
Lemongrass3110
c33bb0b726
Fixed NPC_EARTHQUAKE usages (#8038)
Fixes #8036

Thanks to @asydia
2023-12-20 00:41:57 +01:00
Lemon
7c153416bc
Improved randomness (part 1) (#7882)
Faster and with no module bias

Removed rnd_init, rnd_uint32 and rnd_uniform
From now on we will only use rnd_value(min, max) for values in range [min, max] and rnd_chance(chance, base) for chances

Fixes #7881
Fixes #7883
Fixes #7884
Fixes #7885

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2023-12-20 00:12:15 +01:00
idk-whoami
ad3a2e99eb
Follow up to c898007 (#8035)
Location correction of C_Imperial_Feather ID 5911

Thanks to @Pokye
2023-12-19 20:57:58 +01:00
Lemongrass3110
e0cf16d3e9
Fixed pc_isequip calls (#8037)
Fixes #8034

Thanks to @alisonrag
2023-12-19 20:22:48 +01:00
idk-whoami
c8980072a5
Corrected script for some item #26 (#8026)
Thanks to @Pokye, @Atemo
2023-12-15 15:59:55 +01:00
HAO YAN
7ee7a25887
Add autoloot script command (#8032) 2023-12-14 15:39:57 +01:00
AshiHanna
a7f0aab600
Add the stockall command (#8008)
* The command will transfer all items from the cart to the inventory based on the item type.
2023-12-12 08:12:06 -05:00
Singe Horizontal
53f1c5bb80
Default multi-processor compilation on VS (#8029) 2023-12-11 21:30:48 +01:00
HAO YAN
7db67c6207
Battleground and clan support for addrid (#7969) 2023-12-11 08:47:00 +01:00
HAO YAN
461294f423
Add channel_join script command (#7970) 2023-12-11 08:43:56 +01:00
Singe Horizontal
eec798bfc3
Restores a correct option index (#8031)
Fixes #8024 and #7956.
Fixes an issue with guild storage and retrieving guild bound items.
2023-12-10 00:28:00 -05:00
Atemo
bfae557aeb
Updated illusion of moonlight (#8025)
* Eliminating 10 Deranged Adventurer (~amount) will now spawn the Wizard of Truth monster in the location of the last monster killed.

Fixed #7698
2023-12-01 15:12:02 +01:00
Atemo
5a92ebd98a
Updated Old glast heim instance (#8016)
* Added the ability to skip part of the scenario (fast mode)

Thanks to @idk-whoami for testing
2023-11-30 18:35:46 +01:00
Atemo
8aa2430950
Updated item DB and mapcache up to november 15 2023 (#8015)
* Updated mapcache
* Removed duplicate and sort corrections in item DB/combo DB
* Updated item_enchant.yml
* Corrected Ramor Manteau according to lua
2023-11-30 18:23:26 +01:00
Atemo
8efb5b9d71
Updated Illusion dungeon exchange NPCs (#8014) 2023-11-30 18:22:17 +01:00
eppc0330
d8d7955702
Implement NPC_WIDECRITICALWOUND (#7977) 2023-11-25 22:47:27 +01:00
Atemo
8740574ae3
Updated item DB and mapcache up to november 1 2023 (#8012) 2023-11-18 00:15:59 +01:00
Atemo
8102f5eaad
Updated SC_*_LIFEPOTION and SC_S_MANAPOTION (#8011)
* Removed the heal effect from SC_*_LIFEPOTION and SC_S_MANAPOTION like on official servers.
2023-11-14 13:53:34 +01:00
Atemo
c23afaeac0
Implemented script command opentips (#8005)
- Opens the tip box UI for the attached player or the given character ID.
2023-11-13 19:15:40 +01:00
Sapito Sucio
8be1f819d9
General typos (#8000)
* Fixes typos in several NPC.

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
2023-11-10 12:51:01 -05:00
HAO YAN
a1616903a6
Add has_autoloot script command (#7972)
* Adds the has_autoloot script command to check if a player is autolooting items.
2023-11-06 12:30:34 -05:00
Aleos
2cfafe4c9f
Resolves players escaping jail early (#7781)
* Fixes #7771.
* Adds a missing check to avoid warping players who are actively jailed out early after relogging.
Thanks to @fab10Carvalho and @Lemongrass3110!
2023-11-06 10:26:02 -05:00
munkrej
66dddb3b19
Fixes RK_DRAGONBREATH/RK_DRAGONBREATH_WATER scaling with 4th job (#7996)
Corrected POW scaling
Corrected P.ATK scaling
Corrected skills scaling with Dragonic Aura buff
2023-11-03 14:07:28 +01:00
idk-whoami
a8b7f929f6
Fixed an issue in eden market (#8002) 2023-11-03 14:03:28 +01:00
Vincent Stumpf
02cd29c57b
Set mob's jname to name if not specified (#8003)
Fixes #8001
2023-11-03 08:25:35 -04:00
idk-whoami
676c2483ac
Script correction of Record of Mage (ID 490288) (#7997) 2023-11-01 17:21:10 +01:00
Atemo
ebabfd8807
Implemented DK_DRAGONIC_BREATH (#7985)
Deals normal long ranged physical damage to the target.
    Can only be used when riding dragon.
    Deals additional damage depends on user's MaxHP and MaxSP.
    Affected by Hit/Flee calculation.
    Ignores physical defense.
    Damage property depends on weapon property.
    Affected by attack modifiers (such as race modifier).
    Recovers 2 AP.
    When using while under Dragonic Aura buff, increases influence of MaxHP and MaxSP in skill damage.
    Fixed casting time : 0.5 seconds (based on level 10).
    Variable Casting time : 2 seconds (based on level 10).
    Cooldown: 0.5 seconds (based on level 10).
    Global cool time : 0.15 seconds (based on level 10).

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>

Credit to @datawulf
2023-11-01 15:47:54 +01:00
Atemo
da9e321330
Implemented new Biolo skills (#7987)
* Implemented BO_EXPLOSIVE_POWDER
- Deals melee physical damage to all targets around the user.
- Doesn't need any catalyst.
- When using while under Research Report buff, increases damage and number of hit.
- Recovers 2 AP.
- Fixed casting time : - (based on level 5).
- Variable Casting time : - (based on level 5).
- Cooldown: 0.7 seconds (based on level 5).
- Global cool time : 0.25 seconds (based on level 5).

* Implemented BO_MAYHEMIC_THORNS
- Deals long ranged physical damage to the target and surrounding enemies around the target with the range up to 9x9 cells.
- Doesn't need any catalyst.
- Has a chance to trigger critical, the critical chance is the user's cri.
- When using while under Research Report buff, increases damage and number of hit.
- Recovers 2 AP.
- Fixed casting time : 0.5 seconds (based on level 10).
- Variable Casting time : 1 second (based on level 10).
- Cooldown: 0.7 seconds (based on level 10).
- Global cool time : 0.15 seconds (based on level 10).

* Skills updated to 2nd rebalance

Credit to @datawulf
2023-10-30 22:07:29 +01:00
Atemo
eec9d34ead
Implemented new Meister skills (#7986)
* Implemented MT_MIGHTY_SMASH
- Deals melee physical damage to all targets around the user.
- When using while under Axe Stomp buff, increases damage and number of hit.
- Fixed casting time : - (based on level 10).
- Variable Casting time : - (based on level 10).
- Cooldown: 0.3 seconds (based on level 10).
- Global cool time : - (based on level 10).

* Updated Mighty Smash to last rebalance
- Increases cooldown from 0.3 seconds to 0.5 seconds.
- Adds global cool time by 0.25 seconds.
- Increases SP consumption from 78 to 95 based on level 10.
- Reduces base damage from 3100%/3150%Atk to 1825%/1850%Atk per hit based on level 10.
- Increases number of hit from 3/5 hits to 5/7 hits.
- While under Axe Stomp buff, increases factor weight of POW in skill formula from 7 to 10.

* Implemented MT_TRIPLE_LASER
- Deals long ranged physical damage to the target.
- Can only be used when using Madogear.
- Has a chance to trigger critical, the critical chance is the user's cri.
- Damage property depends on weapon property.
- Doesn't consume magic gear fuel or cannonball.
- Fixed casting time : 0.5 seconds (based on level 5).
- Variable Casting time : 1 seconds (based on level 5).
- Cooldown: 0.25 seconds (based on level 5).
- Global cool time : - (based on level 5).

* Updated Triple Laser to last rebalance
- Increases cooldown from 0.25 seconds to 0.35 seconds.
- Adds global cool time by 0.25 seconds.
- Increases base damage from 3300%Atk to 5050%Atk per hit based on level 5.
- Increases factor weight of POW in skill formula from 10 to 12.

* Implemented MT_SPARK_BLASTER
- Deals long ranged physical damage to the target and surrounding enemies around the target with the range up to 9x9 cells.
- Can only be used when using Madogear.
- Affected by Hit/Flee calculation.
- Ignores physical defense.
- Doesn't consume magic gear fuel or cannonball.
- Damage property depends on weapon property.
- Recovers 2 AP.
- Fixed casting time : 0.5 seconds (based on level 10).
- Variable Casting time : 1.5 seconds (based on level 10).
- Cooldown: 0.7 seconds (based on level 10).
- Global cool time : 0.25 seconds (based on level 10).

* Updated Spark Blaster to last rebalance
- Reduces cooldown from 0.7 seconds to 0.5 seconds.
- Increases base damage from 7750%Atk to 9250%Atk based on level 10.

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>

Credits to @datawulf
2023-10-30 16:34:52 +01:00
Sapito Sucio
f000e76ba4
Fixed some typos in several city scripts (#7995)
Co-authored-by: Daegaladh <Daegaladh@users.noreply.github.com>
2023-10-30 09:43:27 +01:00
Sapito Sucio
f48823fe73
Fixed some typos in Gungslinger, Ninja, Taekwon and Dandelion quests (#7993)
Co-authored-by: Daegaladh <Daegaladh@users.noreply.github.com>
2023-10-30 08:35:26 +01:00
Sapito Sucio
8459fc8dbb
Fixed some typos in Rogue's Job script (#7991) 2023-10-30 08:27:44 +01:00
Aleos
3e3a716468
Fix pre-re Mercenary skills (#7981) 2023-10-26 19:49:30 -04:00
Aleos
b794224b18
Corrects duplicate NPC name in Moscovia Inn (#7983)
* Fixes #7979.
* Removes a duplicate NPC name title for the Moscovia Inn script.
Thanks to @Daraen1!
2023-10-25 14:11:42 -04:00
Aleos
2487d2bf79
Implement s_mob_db constructor (#7799)
* Follow up to 65200eb.
* Removes a lot of else cases when parsing monster data.
* Fixes an issue where the damagetaken value of monsters would be reset after issuing a mob_spawn().
Thanks to @Lemongrass3110, @mplaten, and @vstumpf!
2023-10-25 08:58:04 -04:00
Danilo Lemes
ba1ed0f6ee
Update docs from txt to Markdown (#7975)
* Update and rename packet_struct_notation.txt to packet_struct_notation.md
* Update and rename achievements.txt to achievements.md
* Update and rename effect_list.txt to effect_list.md

---------

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
2023-10-20 11:00:52 -04:00
Atemo
1e4475b438
Updated item_group_db.yml (#6543)
Boxes updated :
* Updated item scripts
* Item scripts converted to item group
2023-10-18 21:32:30 +02:00
Pokye
62a49a2d5a
Update Effect List (#7960)
* Adds effect constant names to the list.
2023-10-18 09:24:34 -04:00