Skip to content

Commit

Permalink
Paladin Spells (In Testing)
Browse files Browse the repository at this point in the history
This is a very big change to spells and spell functions in JavaScript.

I had to expand the entire system to support Paladin spells. By making these changes, it will also be easier to add future spellbooks. I have left numerous debug messages and notes in the code. Things may transition from using SI08 to SI32 for future spells.

The idea was to ensure that adding the next spellbook will not be as difficult as the first one. Additionally, I have corrected some bugs in the old spellbook system, ranging from packet reading issues to spellcasting functionality. Debug messages helped me identify problem areas and optimize the code to make it less outdated.

Will there be more adjustments? I am sure there will be. I am also sure I might have missed something.

I have included spells in the DFN (201 to 210) and committed a paladinspells.js file. This is all still a work in progress, but go ahead and give it a try. I welcome all feedback.
  • Loading branch information
DragonSlayer62 committed Jan 10, 2025
1 parent af5c34a commit 9d06be0
Show file tree
Hide file tree
Showing 23 changed files with 1,579 additions and 442 deletions.
4 changes: 3 additions & 1 deletion data/dfndata/items/magic/misc_magic.dfn
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ script=2203// charges_left_tooltip.js
}

[0x2252]
{
{//full book
get=base_item
name=paladin spellbook
id=0x2252
Expand All @@ -163,6 +163,8 @@ decay=1
good=28
origin=aos
sectionid=0x2252
spells=0x3ff 0x0 0x0
type=100
}

[paladinspellbook]
Expand Down
264 changes: 264 additions & 0 deletions data/dfndata/spells/spells.dfn
Original file line number Diff line number Diff line change
Expand Up @@ -1814,4 +1814,268 @@ FLAGS=0x0080
SOUNDFX=0x0217
}

// Cleanse by Fire
[SPELL 201]
{
NAME=Cleanse by Fire
ENABLE=1
CIRCLE=1
MANA=10
TITHING=10
LOSKILL=50
HISKILL=500
SCLO=500
SCHI=5000
MANTRA=Expor Flamus
ACTION=17
DELAY=1.0
ASH=0
DRAKE=0
GARLIC=0
GINSENG=0
MOSS=0
PEARL=0
SHADE=0
SILK=0
FLAGS=0x01C9
STATFX=37 09 09 1e
SOUNDFX=0x1E0
}

// Close Wounds
[SPELL 202]
{
NAME=Close Wounds
ENABLE=1
CIRCLE=1
MANA=10
TITHING=10
LOSKILL=400
HISKILL=1000
SCLO=400
SCHI=1001
MANTRA=Obsu Vulni
ACTION=17
DELAY=1.0
ASH=0
DRAKE=0
GARLIC=0
GINSENG=0
MOSS=0
PEARL=0
SHADE=0
SILK=0
TARG=Select person to heal.
FLAGS=0x0009
SOUNDFX=0x0201
}

// Consecrate Weapon
[SPELL 203]
{
NAME=Consecrate Weapon
ENABLE=1
CIRCLE=1
MANA=10
LOSKILL=600
HISKILL=1000
SCLO=600
SCHI=1001
MANTRA=Consecrus Arma
ACTION=16
DELAY=1.5
ASH=1
DRAKE=1
GARLIC=0
GINSENG=1
MOSS=0
PEARL=0
SHADE=0
SILK=0
FLAGS=0x0080
SOUNDFX=0x0202
}

// Dispel Evil
[SPELL 204]
{
NAME=Dispel Evil
ENABLE=1
CIRCLE=1
MANA=15
LOSKILL=700
HISKILL=1000
SCLO=700
SCHI=1001
MANTRA=Dispiro Malas
ACTION=16
DELAY=2.0
ASH=1
DRAKE=0
GARLIC=1
GINSENG=0
MOSS=0
PEARL=0
SHADE=1
SILK=0
FLAGS=0x0080
SOUNDFX=0x0203
}

// Divine Fury
[SPELL 205]
{
NAME=Divine Fury
ENABLE=1
CIRCLE=1
MANA=12
LOSKILL=600
HISKILL=1000
SCLO=600
SCHI=1001
MANTRA=Divinum Furis
ACTION=16
DELAY=1.75
ASH=1
DRAKE=0
GARLIC=0
GINSENG=1
MOSS=1
PEARL=0
SHADE=0
SILK=1
FLAGS=0x0080
SOUNDFX=0x0204
}

// Enemy of One
[SPELL 206]
{
NAME=Enemy of One
ENABLE=1
CIRCLE=1
MANA=20
LOSKILL=800
HISKILL=1000
SCLO=800
SCHI=1001
MANTRA=Forul Solum
ACTION=16
DELAY=2.0
ASH=1
DRAKE=1
GARLIC=0
GINSENG=0
MOSS=0
PEARL=0
SHADE=0
SILK=0
FLAGS=0x0080
SOUNDFX=0x0205
}

// Holy Light
[SPELL 207]
{
NAME=Holy Light
ENABLE=1
CIRCLE=1
MANA=30
LOSKILL=900
HISKILL=1000
SCLO=900
SCHI=1001
MANTRA=Augus Luminos
ACTION=16
DELAY=2.5
ASH=1
DRAKE=0
GARLIC=1
GINSENG=0
MOSS=0
PEARL=1
SHADE=1
SILK=0
FLAGS=0x0080
SOUNDFX=0x0206
}

// Noble Sacrifice
[SPELL 208]
{
NAME=Noble Sacrifice
ENABLE=1
CIRCLE=1
MANA=25
LOSKILL=850
HISKILL=1000
SCLO=850
SCHI=1001
MANTRA=Dium Prostra
ACTION=16
DELAY=2.0
ASH=0
DRAKE=0
GARLIC=1
GINSENG=1
MOSS=1
PEARL=0
SHADE=0
SILK=1
FLAGS=0x0080
SOUNDFX=0x0207
}

// Remove Curse
[SPELL 209]
{
NAME=Remove Curse
ENABLE=1
CIRCLE=1
MANA=20
LOSKILL=800
HISKILL=1000
SCLO=800
SCHI=1001
MANTRA=Extermo Vomica
ACTION=16
DELAY=1.5
ASH=1
DRAKE=1
GARLIC=0
GINSENG=1
MOSS=0
PEARL=0
SHADE=0
SILK=0
FLAGS=0x0080
SOUNDFX=0x0208
}

// Sacred Journey
[SPELL 210]
{
NAME=Sacred Journey
ENABLE=1
CIRCLE=1
MANA=15
LOSKILL=750
HISKILL=1000
SCLO=750
SCHI=1001
MANTRA=Sanctum Viatas
ACTION=16
DELAY=2.0
ASH=1
DRAKE=0
GARLIC=1
GINSENG=0
MOSS=0
PEARL=1
SHADE=0
SILK=1
FLAGS=0x0110
SOUNDFX=0x0209
}

EOF
1 change: 1 addition & 0 deletions data/js/jse_fileassociations.scp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@
601=magic/level1targ.js
602=magic/createfood.js
700=magic/wand_item_id.js
702=magic/PaladinSpells.js
}

[SKILLUSE_SCRIPTS]
Expand Down
Loading

0 comments on commit 9d06be0

Please sign in to comment.