Skip to content

Commit

Permalink
Merge branch 'develop' into onAttack-and-onDefense-Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xoduz authored Jan 26, 2025
2 parents 550720e + 56f14be commit 4f59ae3
Show file tree
Hide file tree
Showing 55 changed files with 1,415 additions and 111 deletions.
1 change: 1 addition & 0 deletions data/dfndata/items/gmmenu/spawners.dfn
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ interval=1 5
visible=1
decay=0
movable=2
script=2205
}

[orcspawn]
Expand Down
49 changes: 49 additions & 0 deletions data/dfndata/items/lootlists.dfn
Original file line number Diff line number Diff line change
Expand Up @@ -962,4 +962,53 @@
100|PaintedPlagueMask
100|PaintedDaemonMask
100|PaintedEvilClownMask
}

// Treasure Map Level 0
[LOOTLIST TreasureMapLvl0Loot]
{//approximately 1%
990|blank
10|treasuremaplvl0
}

// Treasure Map Level 1
[LOOTLIST TreasureMapLvl1Loot]
{//approximately 1%
990|blank
10|treasuremaplvl1
}

// Treasure Map Level 2
[LOOTLIST TreasureMapLvl2Loot]
{//approximately 1%
990|blank
10|treasuremaplvl2
}

// Treasure Map Level 3
[LOOTLIST TreasureMapLvl3Loot]
{//approximately 1%
990|blank
10|treasuremaplvl3
}

// Treasure Map Level 4
[LOOTLIST TreasureMapLvl4Loot]
{//approximately 1%
990|blank
10|treasuremaplvl4
}

// Treasure Map Level 5
[LOOTLIST TreasureMapLvl5Loot]
{//approximately 1%
990|blank
10|treasuremaplvl5
}

// Treasure Map Level 6
[LOOTLIST TreasureMapLvl6Loot]
{//approximately 1%
990|blank
10|treasuremaplvl6
}
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.CSY
Original file line number Diff line number Diff line change
Expand Up @@ -3431,6 +3431,7 @@
6301=Z této knihy se může učit pouze velmistr alchymista.
6302=Tyto informace jste se již dozvěděli.
6303=Naučili jste se vyrábět předměty ze skla. K výrobě těchto předmětů budete muset najít horníky, kteří budou těžit jemný písek.
6304=Musíte mít volnou ruku, abyste mohli pít lektvar.
// [7000-7499] AI Scripts
7000=Jsi zločinec a nemáš přístup ke své bankovní schránce.
7001=Který předmět si přeješ uložit do své bankovní schránky?
Expand Down Expand Up @@ -4679,7 +4680,6 @@
11619=chlebový bochník
11620=pánev sušenek
11621=koláč
11622=muffiny
11622=pečený quiche
11623=pečený masový koláč
11624=pizza s uzeninou
Expand Down Expand Up @@ -4715,6 +4715,7 @@
11654=Pro přípravu jídla musíte být v blízkosti zdroje tepla.
11655=Musíte být v blízkosti mlýna, abyste mohli vyrábět mouku.
11656=Musíte být v blízkosti pece, abyste mohli péct jídlo.
11657=muffiny
// 11801 - 12000 Dovednost řemeslné výroby
// Strana 1 - Dřevěné předměty
11801=Náprava
Expand Down
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.ENG
Original file line number Diff line number Diff line change
Expand Up @@ -3431,6 +3431,7 @@
6301=Only a Grandmaster Alchemist can learn from this book.
6302=You have already learned this information.
6303=You have learned to make items from glass. You will need to find miners to mine fine sand for you to make these items.
6304=You must have a free hand to drink a potion.
// [7000-7499] AI Scripts
7000=Thou art a criminal and cannot access thy bank box.
7001=Which item do you wish to deposit in your bank box?
Expand Down Expand Up @@ -4679,7 +4680,6 @@
11619=bread loaf
11620=pan of cookies
11621=cake
11622=muffins
11622=baked quiche
11623=baked meat pie
11624=sausage pizza
Expand Down Expand Up @@ -4715,6 +4715,7 @@
11654=You must be near a heat source to cook food.
11655=You must be near a mill to create flour.
11656=You must be near an oven to bake food.
11657=muffins
// 11801 - 12000 Tinkering Crafting Skill
// Page 1 - Wooden Items
11801=Axle
Expand Down
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.FRE
Original file line number Diff line number Diff line change
Expand Up @@ -3595,6 +3595,7 @@
6301=Seul un grand maître alchimiste peut apprendre de ce livre.
6302=Vous avez déjà appris cette information.
6303=Vous avez appris à fabriquer des objets en verre. Vous devrez trouver des mineurs pour extraire du sable fin pour fabriquer ces objets.
6304=Vous devez avoir les mains libres pour boire une potion.
// [7000-7499] AI Scripts
7000=Tu es un criminel et tu ne peux pas accéder à ton coffre de banque.
7001=Quel objet souhaitez-vous déposer dans votre coffret bancaire ?
Expand Down Expand Up @@ -4835,7 +4836,6 @@
11619=miche de pain
11620=panier de biscuits
11621=gâteau
11622=muffins
11622=quiche au four
11623=tarte à la viande cuite au four
11624=pizza à la saucisse
Expand Down Expand Up @@ -4871,6 +4871,7 @@
11654=Il faut être près d'une source de chaleur pour cuire les aliments.
11655=Il faut être près d'un moulin pour créer de la farine.
11656=Il faut être près d'un four pour cuire des aliments.
11657=muffins
// 11801 - 12000 Compétence en artisanat de bricolage
// Page 1 - Objets en bois
11801=Axe
Expand Down
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.GER
Original file line number Diff line number Diff line change
Expand Up @@ -3431,6 +3431,7 @@
6301=Nur ein Großmeister-Alchemist kann aus diesem Buch lernen.
6302=Sie haben diese Informationen bereits erfahren.
6303=Du hast gelernt, Gegenstände aus Glas herzustellen. Sie müssen Bergleute finden, die feinen Sand abbauen, damit Sie diese Gegenstände herstellen können.
6304=Sie müssen freie Hand haben, um einen Trank zu trinken.
// [7000-7499] AI Scripts
7000=Du bist ein Verbrecher und kannst nicht auf dein Bankschließfach zugreifen.
7001=Welchen Gegenstand möchten Sie in Ihr Bankschließfach einzahlen?
Expand Down Expand Up @@ -4679,7 +4680,6 @@
11619=Brotlaib
11620=Keksdose
11621=Kuchen
11622=Muffins
11622=gebackene Quiche
11623=gebackene Fleischpastete
11624=Wurstpizza
Expand Down Expand Up @@ -4715,6 +4715,7 @@
11654=Du musst in der Nähe einer Wärmequelle sein, um Essen zu kochen.
11655=Du musst in der Nähe einer Mühle sein, um Mehl herzustellen.
11656=Du musst in der Nähe eines Ofens sein, um Essen zu backen.
11657=Muffins
// 11801 - 12000 Handwerkliches Geschick
// Seite 1 - Hölzerne Gegenstände
11801=Achse
Expand Down
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.ITA
Original file line number Diff line number Diff line change
Expand Up @@ -3431,6 +3431,7 @@
6301=Solo un Grande Maestro Alchimista può imparare da questo libro.
6302=Hai già appreso questa informazione.
6303=Hai imparato a creare oggetti in vetro. Dovrai trovare minatori che estraggano sabbia fine per poter realizzare questi oggetti.
6304=Devi avere una mano libera per bere una pozione.
// [7000-7499] AI Scripts
7000=Tu sei un criminale e non puoi accedere alla tua cassaforte.
7001=Quale oggetto desidera depositare nella sua cassetta di sicurezza?
Expand Down Expand Up @@ -4679,7 +4680,6 @@
11619=pagnotta di pane
11620=torta di biscotti
11621=torta
11622=muffin
11622=quiche al forno
11623=pasticcio di carne al forno
11624=pizza con salsiccia
Expand Down Expand Up @@ -4715,6 +4715,7 @@
11654=Devi essere vicino a una fonte di calore per cucinare il cibo.
11655=Devi essere vicino a un mulino per creare farina.
11656=Devi essere vicino a un forno per cuocere il cibo.
11657=muffin
// 11801 - 12000 Abilità Artigianato Tinkering
// Pagina 1 - Oggetti in legno
11801=Assale
Expand Down
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.POL
Original file line number Diff line number Diff line change
Expand Up @@ -3431,6 +3431,7 @@
6301=Tylko Wielki Mistrz Alchemik może uczyć się z tej książki.
6302=Te informacje już znasz.
6303=Nauczyłeś się robić przedmioty ze szkła. Będziesz musiał znaleźć górników, którzy wydobędą drobny piasek, aby móc wyprodukować te przedmioty.
6304=Musisz mieć wolną rękę, żeby wypić miksturę.
// [7000-7499] AI Scripts
7000=Jesteś przestępcą i nie masz dostępu do swojej skrytki bankowej.
7001=Którą pozycję chcesz umieścić w swojej skrytce bankowej?
Expand Down Expand Up @@ -4679,7 +4680,6 @@
11619=bochenek chleba
11620=panka ciasteczek
11621=ciasto
11622=muffiny
11622=pieczony quiche
11623=pieczony placek z mięsem
11624=pizza z kiełbasą
Expand Down Expand Up @@ -4715,6 +4715,7 @@
11654=Musisz być w pobliżu źródła ciepła, aby gotować jedzenie.
11655=Musisz być w pobliżu młyna, aby wytworzyć mąkę.
11656=Musisz być w pobliżu piekarnika, aby upiec jedzenie.
11657=muffiny
// 11801 - 12000 Umiejętność majsterkowania
// Strona 1 - Przedmioty z drewna
11801=Oś
Expand Down
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.PTG
Original file line number Diff line number Diff line change
Expand Up @@ -3431,6 +3431,7 @@
6301=Apenas um Grão-Mestre Alquimista pode aprender com este livro.
6302=Você já aprendeu esta informação.
6303=Você aprendeu a fazer itens de vidro. Você precisará encontrar mineiros para extrair areia fina para fazer esses itens.
6304=Você deve ter a mão livre para beber uma poção.
// [7000-7499] AI Scripts
7000=Tu és um criminoso e não podes aceder à tua caixa bancária.
7001=Que artigo deseja depositar na sua caixa bancária?
Expand Down Expand Up @@ -4679,7 +4680,6 @@
11619=pão de pão
11620=panha de biscoitos
11621=bolo
11622=muffins
11622=quiché cozido
11623=torta de carne assada
11624=sausage pizza
Expand Down Expand Up @@ -4715,6 +4715,7 @@
11654=É preciso estar perto de uma fonte de calor para cozinhar os alimentos.
11655=Tem de estar perto de um moinho para criar farinha.
11656=Tem de estar perto de um forno para cozer alimentos.
11657=muffins
// 11801 - 12000 Habilidade de Artesanato de Sininho
// Página 1 - Artigos de madeira
11801=Eixo
Expand Down
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.SPA
Original file line number Diff line number Diff line change
Expand Up @@ -3431,6 +3431,7 @@
6301=Sólo un Gran Maestro Alquimista puede aprender de este libro.
6302=Ya has aprendido esta información.
6303=Has aprendido a fabricar objetos de vidrio. Necesitará encontrar mineros que extraigan arena fina para poder fabricar estos artículos.
6304=Debes tener las manos libres para beber una poción.
// [7000-7499] Guiones de IA
7000=Eres un delincuente y no puedes acceder a tu caja bancaria.
7001=¿Qué artículo desea depositar en su caja?
Expand Down Expand Up @@ -4679,7 +4680,6 @@
11619=pan de pan
11620=pan de galletas
11621=pastel
11622=magdalenas
11622=quiche al horno
11623=pastel de carne al horno
11624=pizza de salchicha
Expand Down Expand Up @@ -4715,6 +4715,7 @@
11654=Debes estar cerca de una fuente de calor para cocinar los alimentos.
11655=Debes estar cerca de un molino para crear harina.
11656=Debes estar cerca de un horno para cocer alimentos.
11657=magdalenas
// 11801 - 12000 Habilidad de Artesanía
// Página 1 - Artículos de madera
11801=Eje
Expand Down
3 changes: 2 additions & 1 deletion data/dictionaries/dictionary.ZRO
Original file line number Diff line number Diff line change
Expand Up @@ -3426,6 +3426,7 @@
6301=Only a Grandmaster Alchemist can learn from this book.
6302=You have already learned this information.
6303=You have learned to make items from glass. You will need to find miners to mine fine sand for you to make these items.
6304=You must have a free hand to drink a potion.
// [7000-7499] AI Scripts
7000=Thou art a criminal and cannot access thy bank box.
7001=Which item do you wish to deposit in your bank box?
Expand Down Expand Up @@ -4674,7 +4675,6 @@
11619=bread loaf
11620=pan of cookies
11621=cake
11622=muffins
11622=baked quiche
11623=baked meat pie
11624=sausage pizza
Expand Down Expand Up @@ -4710,6 +4710,7 @@
11654=You must be near a heat source to cook food.
11655=You must be near a mill to create flour.
11656=You must be near an oven to bake food.
11657=muffins
// 11801 - 12000 Tinkering Crafting Skill
// Page 1 - Wooden Items
11801=Axle
Expand Down
56 changes: 56 additions & 0 deletions data/js/combat/leechstats.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
function onEquip( pEquipper, iEquipped )
{
pEquipper.AddScriptTrigger( 7003 );
}

// Remove script trigger on unequip
function onUnequip( pUnequipper, iUnequipped )
{
pUnequipper.RemoveScriptTrigger( 7003 );
}

function onDamageDeal( attacker, damaged, damageValue, damageType )
{
// Fetch weapon in main hand or secondary hand
var iWeapon = attacker.FindItemLayer( 0x01 );
if( !ValidateObject( iWeapon ))
{
iWeapon = attacker.FindItemLayer( 0x02 );
}

if( ValidateObject( iWeapon ))
{ // Apply leech effects based on weapon properties
ApplyLeech( attacker, damaged, damageValue, iWeapon, 'healthLeech', 30 );
ApplyLeech( attacker, damaged, damageValue, iWeapon, 'staminaLeech', 100 );
ApplyLeech( attacker, damaged, damageValue, iWeapon, 'manaLeech', 40 );
}

return true;
}

function ApplyLeech( attacker, damaged, damageValue, weapon, leechType, multiplier )
{
// Get the leech amount for the specified leech type from the weapon
var leechPercentVal = weapon[ leechType ];
if( leechPercentVal > 0 )
{
// Calculate the percent of health restored to the attacker
var leechAmt = Math.round( damageValue * ( leechPercentVal / 100 ) * ( multiplier/100 ));

// Apply the leech effect based on the leech type
switch( leechType )
{
case 'healthLeech':
attacker.Heal( leechAmt );
break;
case 'staminaLeech':
attacker.stamina += leechAmt;
break;
case 'manaLeech':
attacker.mana += leechAmt;
break;
}

attacker.SoundEffect( 0x44D, true );
}
}
Loading

0 comments on commit 4f59ae3

Please sign in to comment.