diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-09-24 22:08:24 +0300 |
---|---|---|
committer | Joseph Botosh <rumly111@gmail.com> | 2015-09-24 22:08:24 +0300 |
commit | 0f9273114386a82f164071a2b6df5f2747c2658d (patch) | |
tree | 03513e75d568383ef7486344c24c0c3017c6475f /npc/items | |
parent | 27fc261dcbfbbe20611efbb4aac8bf7a1d91009a (diff) | |
download | serverdata-0f9273114386a82f164071a2b6df5f2747c2658d.tar.gz serverdata-0f9273114386a82f164071a2b6df5f2747c2658d.tar.bz2 serverdata-0f9273114386a82f164071a2b6df5f2747c2658d.tar.xz serverdata-0f9273114386a82f164071a2b6df5f2747c2658d.zip |
update qonan and shovel scripts to use new narrator function
Diffstat (limited to 'npc/items')
-rw-r--r-- | npc/items/shovel.txt | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 7580f217..3d5c3251 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -47,7 +47,7 @@ .@tick = gettimetick(1); if (@ShovelLastUsed + max(10, .PlayerTiredTime - readparam(bStr)) > .@tick) { - narrator + narrator 1, l("You are exhausted, you should rest a bit."); return 1; } @@ -71,18 +71,18 @@ deletearray $WorldBuriedTreasures_x[.@i], 1; deletearray $WorldBuriedTreasures_y[.@i], 1; getitem .@id, .@amount; - narrator + narrator 1, l("You found something!"), l("It's @@ @@.", .@amount, getitemname(.@id)); return 1; } } - narrator l("Sadly, you found nothing but dirt."); + narrator 1, l("Sadly, you found nothing but dirt."); return 0; } function Bury { - narrator l("What would you like to bury?"); + narrator 3, l("What would you like to bury?"); .@items$ = ""; getinventorylist; for (.@i = 0; .@i < @inventorylist_count; .@i++) @@ -95,7 +95,7 @@ .@amount = 1; if (@inventorylist_amount[.@idx] > 1) { - narrator l("Amount?"); + narrator 3, l("Amount?"); input .@amount, 1, @inventorylist_amount[.@idx]; } @@ -107,7 +107,7 @@ $WorldBuriedTreasures_map$[.@wtc] = .@map$; $WorldBuriedTreasures_x[.@wtc] = .@x; $WorldBuriedTreasures_y[.@wtc] = .@y; - narrator l("You buried @@ @@.", .@amount, getitemname(.@id)); + narrator 1, l("You buried @@ @@.", .@amount, getitemname(.@id)); return 0; } @@ -135,12 +135,11 @@ OnUse: if (!CheckDigLocation()) { - narrator 0, - l("You can't use the shovel here."); + narrator l("You can't use the shovel here."); close; } - narrator 0, + narrator 2, l("You hold the shovel in your hangs."), l("What are you going to do?"); @@ -163,7 +162,7 @@ OnUse: Bury(); break; case 3: - narrator l("You hide your shovel."); + narrator 1, l("You hide your shovel."); break; } close; |