Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treasure Hunting System #229

Merged
merged 24 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
100c0b2
Treasure Hunting System
DragonSlayer62 Nov 13, 2023
73bb53d
Update mapitem.js
DragonSlayer62 Nov 13, 2023
92f3ea8
changed tags
DragonSlayer62 Nov 13, 2023
c2d3d6b
Update mapitem.js
DragonSlayer62 Nov 13, 2023
6f5ec00
Merge branch 'develop' into treasure-maps-and-maps
DragonSlayer62 Nov 14, 2023
f5143e0
Major Update
DragonSlayer62 Nov 14, 2023
60b6f6e
Merge branch 'develop' into treasure-maps-and-maps
Xoduz Nov 14, 2023
651c7cf
Update Changelog.txt
DragonSlayer62 Nov 14, 2023
320da7e
Merge branch 'treasure-maps-and-maps' of https://github.com/DragonSla…
DragonSlayer62 Nov 14, 2023
c4a1121
small update
DragonSlayer62 Nov 14, 2023
96cf406
Merge branch 'develop' into treasure-maps-and-maps
Xoduz Nov 15, 2023
b43b51c
Update mapitem.js
DragonSlayer62 Nov 15, 2023
18d3f6d
Merge branch 'develop' into treasure-maps-and-maps
DragonSlayer62 Nov 18, 2023
e158c70
update
DragonSlayer62 Nov 19, 2023
13c1c57
Update mapitem.js
DragonSlayer62 Nov 19, 2023
c9ec268
Update treasuredigging.js
DragonSlayer62 Nov 19, 2023
a332236
Update treasuredigging.js
DragonSlayer62 Nov 19, 2023
72d90b0
Update treasuredigging.js
DragonSlayer62 Nov 19, 2023
d7eff0c
Update treasuredigging.js
DragonSlayer62 Nov 19, 2023
f045ced
update
DragonSlayer62 Nov 19, 2023
370104a
small miss
DragonSlayer62 Nov 19, 2023
7518b49
Update treasuremaps.dfn
DragonSlayer62 Nov 19, 2023
2cb555b
Update jse_fileassociations.scp
DragonSlayer62 Nov 19, 2023
c6f9336
Merge branch 'develop' into treasure-maps-and-maps
Xoduz Nov 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions data/dfndata/items/itemlists/itemlists.dfn
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,126 @@ d_treasure_3
d_treasure_4
}

// Treasures Chests Level 0 - 6
// Special Itemlist for Container Spawn Objects!
[ITEMLIST treasurechestloot0]
{
0x0eed,500
lootlist=lowlevelscrolls,1
lootlist=midlevelscrolls,1
lootlist=highlevelscrolls,1
lootlist=randomgemsandjewelry,5
lootlist=magic_items_max_tier_1
itemlist=lowlevelarmor,2
itemlist=randomlowlevelweapons,2
}

[ITEMLIST treasurechestloot1]
{
0x0eed,1000
lootlist=lowlevelscrolls,3
lootlist=midlevelscrolls,1
lootlist=highlevelscrolls,1
lootlist=randomgemsandjewelry,10
lootlist=magic_items_max_tier_1,2
lootlist=magic_items_max_tier_2
lootlist=magic_items_max_tier_3
lootlist=magic_items_max_tier_4
itemlist=lowlevelarmor,2
itemlist=randomlowlevelweapons,2
itemlist=randommidlevelweapons,2
}

[ITEMLIST treasurechestloot2]
{
0x0eed,2000
lootlist=lowlevelscrolls,4
lootlist=midlevelscrolls,4
lootlist=highlevelscrolls,2
lootlist=randomgemsandjewelry,20
lootlist=magic_items_max_tier_1,4
lootlist=magic_items_max_tier_2,4
lootlist=magic_items_max_tier_3,2
lootlist=magic_items_max_tier_4,2
itemlist=lowlevelarmor,2
itemlist=midlevelarmor,2
itemlist=highlevelarmor,2
itemlist=randomlowlevelweapons,4
itemlist=randommidlevelweapons,4
}

[ITEMLIST treasurechestloot3]
{
0x0eed,3000
lootlist=lowlevelscrolls,4
lootlist=midlevelscrolls,5
lootlist=highlevelscrolls,5
lootlist=randomgemsandjewelry,30
lootlist=magic_items_max_tier_1,4
lootlist=magic_items_max_tier_2,4
lootlist=magic_items_max_tier_3,3
lootlist=magic_items_max_tier_4,3
itemlist=lowlevelarmor,4
itemlist=midlevelarmor,4
itemlist=highlevelarmor,4
itemlist=randomlowlevelweapons,6
itemlist=randommidlevelweapons,6
}

[ITEMLIST treasurechestloot4]
{
0x0eed,4000
lootlist=lowlevelscrolls,4
lootlist=midlevelscrolls,6
lootlist=highlevelscrolls,6
lootlist=randomgemsandjewelry,40
lootlist=magic_items_max_tier_1,4
lootlist=magic_items_max_tier_2,4
lootlist=magic_items_max_tier_3,3
lootlist=magic_items_max_tier_4,3
itemlist=lowlevelarmor,5
itemlist=midlevelarmor,5
itemlist=highlevelarmor,5
itemlist=randomlowlevelweapons,6
itemlist=randommidlevelweapons,6
}

[ITEMLIST treasurechestloot5]
{
0x0eed,5000
lootlist=lowlevelscrolls,5
lootlist=midlevelscrolls,7
lootlist=highlevelscrolls,7
lootlist=randomgemsandjewelry,50
lootlist=magic_items_max_tier_1,5
lootlist=magic_items_max_tier_2,5
lootlist=magic_items_max_tier_3,5
lootlist=magic_items_max_tier_4,5
itemlist=lowlevelarmor,6
itemlist=midlevelarmor,6
itemlist=highlevelarmor,6
itemlist=randomlowlevelweapons,7
itemlist=randommidlevelweapons,7
}

[ITEMLIST treasurechestloot6]
{
0x0eed,6000
lootlist=lowlevelscrolls,5
lootlist=midlevelscrolls,7
lootlist=highlevelscrolls,7
lootlist=randomgemsandjewelry,50
lootlist=magic_items_max_tier_1,5
lootlist=magic_items_max_tier_2,5
lootlist=magic_items_max_tier_3,5
lootlist=magic_items_max_tier_4,5
itemlist=lowlevelarmor,6
itemlist=midlevelarmor,6
itemlist=highlevelarmor,6
itemlist=randomlowlevelweapons,7
itemlist=randommidlevelweapons,7
}

//**************************
//* LISTOBJECTS START HERE *
//**************************
Expand Down
145 changes: 145 additions & 0 deletions data/dfndata/items/misc/treasuremaps.dfn
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
[base_treasure_map]
{
get=base_item
name=a treasure map
id=0x14EC
script=5402
decay=1
custominttag=Map 100
custominttag=Level 0
}

[treasuremaplvl0]
{
get=base_treasure_map
custominttag=Level 0
}

[treasuremaplvl1]
{
get=base_treasure_map
custominttag=Level 1
}

[treasuremaplvl2]
{
get=base_treasure_map
custominttag=Level 2
}

[treasuremaplvl3]
{
get=base_treasure_map
custominttag=Level 3
}

[treasuremaplvl4]
{
get=base_treasure_map
custominttag=Level 4
}

[treasuremaplvl5]
{
get=base_treasure_map
custominttag=Level 5
}

[treasuremaplvl6]
{
get=base_treasure_map
custominttag=Level 6
}

[dirt]
{
get=base_item
name=dirt
id=0x913
}

[dirt2]
{
get=base_item
name=dirt
id=0x914
}

[base_treasure_chest]
{
get=base_item
name=Treasure Chest
id=0xE40
weight=3000
weightmax=400000
type=63
movable=1
maxitems=125
interval=1 2
script=5401
}

[treasurechestlevel0]
{
get=base_treasure_chest
spawnobjlist=treasurechestloot0
morey=0x01 0x01 0x34 0x48
morez=0x01 0x32 0x0 0x37
custominttag=Level 0
}

[treasurechestlevel1]
{
get=base_treasure_chest
spawnobjlist=treasurechestloot1
morey=0x01 0x01 0x34 0x48
morez=0x01 0x32 0x0 0x37
custominttag=Level 1
}

[treasurechestlevel2]
{
get=base_treasure_chest
spawnobjlist=treasurechestloot2
morey=0x01 0x01 0x34 0x48
morez=0x01 0x32 0x0 0x37
custominttag=Level 2
}

[treasurechestlevel3]
{
get=base_treasure_chest
spawnobjlist=treasurechestloot3
morey=0x01 0x01 0x34 0x48
morez=0x01 0x32 0x0 0x37
custominttag=Level 3
}

[treasurechestlevel4]
{
get=base_treasure_chest
spawnobjlist=treasurechestloot4
morey=0x01 0x01 0x34 0x48
morez=0x01 0x32 0x0 0x37
custominttag=Level 4
}

[treasurechestlevel5]
{
get=base_treasure_chest
name=Treasure Chest
spawnobjlist=treasurechestloot5
morey=0x01 0x01 0x34 0x48
morez=0x01 0x32 0x0 0x37
custominttag=Level 5
}

[treasurechestlevel6]
{
get=base_treasure_chest
name=Treasure Chest
spawnobjlist=treasurechestloot6
morey=0x01 0x01 0x34 0x48
morez=0x01 0x32 0x0 0x37
custominttag=Level 6
}
Loading