summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/items/shovel.txt22
1 files changed, 12 insertions, 10 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 9537ef3da..f528764c0 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -79,9 +79,9 @@ function script shovel_scatter {
deletearray $WorldBuriedTreasures_x[.@i], 1;
deletearray $WorldBuriedTreasures_y[.@i], 1;
getitem .@id, .@amount;
- narrator S_FIRST_BLANK_LINE,
- l("You found something!"),
- l("It's @@ @@.", .@amount, getitemname(.@id));
+ mesn strcharinfo(0);
+ mesc l("You found something!");
+ mesc l("It's @@ @@.", .@amount, getitemname(.@id));
next;
closeclientdialog;
return 1;
@@ -105,9 +105,9 @@ function script shovel_scatter {
deletearray $@WBT_Random_x[.@i], 1;
deletearray $@WBT_Random_y[.@i], 1;
getitem .@id, .@amount;
- narrator S_FIRST_BLANK_LINE,
- l("You found something!"),
- l("It's @@ @@.", .@amount, getitemname(.@id));
+ mesn strcharinfo(0);
+ mesc l("You found something!");
+ mesc l("It's @@ @@.", .@amount, getitemname(.@id));
next;
closeclientdialog;
return 1;
@@ -397,14 +397,16 @@ function script shovel_randomtreasure {
ShovelQuests_AssignedX=0;
ShovelQuests_AssignedY=0;
- narrator S_FIRST_BLANK_LINE,
- l("You found something!"),
- l("It's @@ @@.", .@amount, getitemname(.@id));
+ mesn strcharinfo(0);
+ mesc l("You found something!");
+ mesc l("It's @@ @@.", .@amount, getitemname(.@id));
+ next;
+ closeclientdialog;
return;
}
function script shovel_genrandtreasure {
- .@m$=any_of("007-1", "011-1", "015-1", "018-1");
+ .@m$=any("007-1", "011-1", "015-1", "018-1");
// Dangerous
do {
.@x=rand2(20, getmapinfo(MAPINFO_SIZE_X, .@m$)-20);