summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2025-04-09 22:12:24 +0000
committerHoraK-FDF <horak-fdf@web.de>2025-04-09 22:12:24 +0000
commit079edb5967bae22a486f2cc9ff6258bf8512858a (patch)
tree0d48b9e31cf602799ee0ceff688aa9a44a0a48a1
parent386126856d018b9793db66b4f148cccb101c0bbb (diff)
downloadserverdata-079edb5967bae22a486f2cc9ff6258bf8512858a.tar.gz
serverdata-079edb5967bae22a486f2cc9ff6258bf8512858a.tar.bz2
serverdata-079edb5967bae22a486f2cc9ff6258bf8512858a.tar.xz
serverdata-079edb5967bae22a486f2cc9ff6258bf8512858a.zip
Legendary Shovel and Legendary Treasure Map
- added the legendary shovel as an event item - added legendary treasure map as an event item - added some missing ViewSprite entrys - fixed some misplaced brackets Approved-by: Hello TMW <hello@themanaworld.org> Reviewed-by: Hello TMW <hello@themanaworld.org>
-rw-r--r--world/map/db/const-aegis.txt2
-rw-r--r--world/map/db/item_db.conf67
-rw-r--r--world/map/db/item_db_use.txt2
-rw-r--r--world/map/npc/items/shovel.txt4
4 files changed, 71 insertions, 4 deletions
diff --git a/world/map/db/const-aegis.txt b/world/map/db/const-aegis.txt
index 23d880a1..bd635912 100644
--- a/world/map/db/const-aegis.txt
+++ b/world/map/db/const-aegis.txt
@@ -1028,6 +1028,8 @@ KingChonkyBirbEgg 5374
Sauerkraut 5379
AnchorStone 5382
AnchoredAnchorStone 5383
+LegendaryShovel 5405
+LegendaryTreasureMap 5406
CottonShorts 586
JeansShorts 610
CottonSkirt 632
diff --git a/world/map/db/item_db.conf b/world/map/db/item_db.conf
index c3aacc9d..ce5912c2 100644
--- a/world/map/db/item_db.conf
+++ b/world/map/db/item_db.conf
@@ -16600,6 +16600,7 @@ item_db: (
Sell: 750
Weight: 210
Refine: false
+ ViewSprite: 5329
KeepAfterUse: true
Script: <"
if (@useType == 1) { //@EVOL2
@@ -16618,6 +16619,7 @@ item_db: (
Buy: 5000
Sell: 1000
Weight: 7
+ ViewSprite: 5330
Script: <"
callfunc "learnskill", SKILL_MODRISHA; // @EVOL2
@skillId = SKILL_MODRISHA; // @EVOL2
@@ -16910,11 +16912,11 @@ item_db: (
nomail: true
noauction: true
noselltonpc: true
+ }
Script: <"
set @MapName$, "PirateTreasureMap";
callfunc "readMap";
">
- }
},
{
Id: 5352
@@ -16934,11 +16936,11 @@ item_db: (
nomail: true
noauction: true
noselltonpc: true
+ }
Script: <"
set @MapName$, "DungeonMap";
callfunc "readMap";
">
- }
},
{
Id: 5353
@@ -16958,11 +16960,11 @@ item_db: (
nomail: true
noauction: true
noselltonpc: true
+ }
Script: <"
set @MapName$, "TreasureMap";
callfunc "readMap";
">
- }
},
{
Id: 5354
@@ -17053,11 +17055,11 @@ item_db: (
nomail: true
noauction: true
noselltonpc: true
+ }
Script: <"
set @StoneName$, "AnchorStone";
callfunc "useAnchorStone";
">
- }
},
{
Id: 5383
@@ -17079,11 +17081,68 @@ item_db: (
noselltonpc: true
nostorage: true
nogstorage: true
+ }
Script: <"
set @StoneName$, "AnchoredAnchorStone";
callfunc "useAnchorStone";
">
+},
+{
+ Id: 5405
+ AegisName: "LegendaryShovel"
+ Name: "Legendary Shovel"
+ Type: "IT_USABLE"
+ Buy: 0
+ Sell: 0
+ Weight: 210
+ Refine: false
+ ViewSprite: 5405
+ KeepAfterUse: true
+ Trade: {
+ notrade: true
+ nodrop: true
+ nocart: true
+ nomail: true
+ noauction: true
+ noselltonpc: true
+ nostorage: false
+ nogstorage: false
}
+ Script: <"
+ if (@useType == 1) { //@EVOL2
+ doevent "Shovel::OnBury"; //@EVOL2
+ } else { //@EVOL2
+ doevent "Shovel::OnDig"; //@EVOL2
+ } //@EVOL2
+ //set @ShovelName$, "LegendaryShovel"; // @TMWA
+ //callfunc "useShovel"; // @TMWA
+ ">
+},
+{
+ Id: 5406
+ AegisName: "LegendaryTreasureMap"
+ Name: "Legendary Treasure Map"
+ Type: "IT_USABLE"
+ Buy: 0
+ Sell: 0
+ Weight: 14
+ Refine: false
+ ViewSprite: 5406
+ KeepAfterUse: true
+ Trade: {
+ notrade: true
+ nodrop: true
+ nocart: true
+ nomail: true
+ noauction: true
+ noselltonpc: true
+ nostorage: false
+ nogstorage: false
+ }
+ Script: <"
+ set @MapName$, "LegendaryTreasureMap";
+ callfunc "readMap";
+ ">
},
/* Legs Armor */
{
diff --git a/world/map/db/item_db_use.txt b/world/map/db/item_db_use.txt
index 2a2afa8b..22fbd9c0 100644
--- a/world/map/db/item_db_use.txt
+++ b/world/map/db/item_db_use.txt
@@ -150,3 +150,5 @@
5382, AnchorStone, 0, 90000, 45000, 40, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 23, {set @StoneName$, "AnchorStone"; callfunc "useAnchorStone";}, {}
//ID, Name, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, Mode, {UseScript}, {EquipScript}
5383, AnchoredAnchorStone, 0, 0, 0, 40, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 31, {set @StoneName$, "AnchoredAnchorStone"; callfunc "useAnchorStone";}, {}
+5405, LegendaryShovel, 0, 0, 0, 210, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 23, {set @ShovelName$, "LegendaryShovel"; callfunc "useShovel";}, {}
+5406, LegendaryTreasureMap, 0, 0, 0, 14, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 23, {set @MapName$, "LegendaryTreasureMap"; callfunc "readMap";}, {}
diff --git a/world/map/npc/items/shovel.txt b/world/map/npc/items/shovel.txt
index b706f1fe..8dcbd175 100644
--- a/world/map/npc/items/shovel.txt
+++ b/world/map/npc/items/shovel.txt
@@ -1,5 +1,9 @@
function|script|useShovel
{
message strcharinfo(0), "You have no clue how to use this item yet.";
+ goto L_Return;
+
+L_Return:
+ set @ShovelName$, "";
return;
}