From 293665cf52fea28907f249da3e8c5f9c6a60ada6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 12 Jun 2019 01:08:37 -0300 Subject: Fix Treasure Map bugs, update translations --- npc/items/shovel.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'npc/items') 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); -- cgit v1.2.3-60-g2f50