From 99385b26263c27020d8ce526afaa1811e4eceaa1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Oct 2021 20:48:01 +0000 Subject: NPC Improvements --- npc/items/croconut.txt | 19 ++++++++++--------- npc/items/emptybox.txt | 4 ++-- npc/items/miscrecipes.txt | 4 ++-- npc/items/shovel.txt | 2 +- npc/items/teleporter.txt | 12 ++++++------ 5 files changed, 21 insertions(+), 20 deletions(-) (limited to 'npc/items') diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt index 39c420316..eececb0f7 100644 --- a/npc/items/croconut.txt +++ b/npc/items/croconut.txt @@ -4,13 +4,13 @@ // Reid // Jesusalva // Description: -// Allows to cut a Croconut in multiple parts. +// Allows to break a Croconut into multiple parts. - script Croconut NPC_HIDDEN,{ close; OnUse: - mesc l("Do you want to cut this @@?", getitemlink(Croconut)); + mesc l("Do you want to break open this %s?", getitemlink(Croconut)); select l("Yes."), @@ -40,12 +40,13 @@ L_Weapon: } L_TooWeak: + // Croconuts do not heal much. So opening them without fail should be possible at relatively low strength levels. .@q = rand2(5); - if (readparam2(bStr) > 30) + if (readparam2(bStr) > 10) .@q = .@q + 1; - if (readparam2(bStr) > 60) + if (readparam2(bStr) > 25) .@q = .@q + 1; - if (readparam2(bStr) > 90) + if (readparam2(bStr) > 35) .@q = .@q + 1; if (.@q == 0) goto L_TooWeakLost; @@ -54,23 +55,23 @@ L_TooWeak: if ( (.@q > 6) ) goto L_Good; L_TooWeakLost: - dispbottom l("Ops! You destroyed your @@.", getitemlink(Croconut)); + dispbottom l("Oops! You destroyed your %s.", getitemlink(Croconut)); close; L_TooWeakFail: - dispbottom l("Well... you did not succeed in opening this @@.", getitemlink(Croconut)); + dispbottom l("Well... you did not succeed in opening this %s.", getitemlink(Croconut)); getitem Croconut, 1; close; L_Weak: - dispbottom l("You opened the @@ in two parts, but you crushed one of them.", getitemlink(Croconut)); + dispbottom l("You broke the %s into two parts, but you crushed one of them.", getitemlink(Croconut)); getitem HalfCroconut, 1; close; L_Good: - dispbottom l("You perfectly cut your @@ into two edible parts.", getitemlink(Croconut)); + dispbottom l("You perfectly cut your %s into two edible parts.", getitemlink(Croconut)); getitem HalfCroconut, 2; close; diff --git a/npc/items/emptybox.txt b/npc/items/emptybox.txt index b49a12b6c..ec667ebdc 100644 --- a/npc/items/emptybox.txt +++ b/npc/items/emptybox.txt @@ -2,14 +2,14 @@ // Authors: // Jesusalva // Description: -// Allows to mount your own fish/plushroom/croconut box +// Allows to create your own fish/plushroom/croconut box - script Empty Box#it NPC_HIDDEN,{ close; OnUse: mesn; - mesc l("You can fill this box with the following:"); + mesc l("You can fill this box with the following items:"); mesc l("- @@ @@", 7, getitemlink(GrassCarp)); mesc l("- @@ @@", 8, getitemlink(Croconut)); mesc l("- @@ @@", 20, getitemlink(CommonCarp)); diff --git a/npc/items/miscrecipes.txt b/npc/items/miscrecipes.txt index 1dee0861f..d0df7f3aa 100644 --- a/npc/items/miscrecipes.txt +++ b/npc/items/miscrecipes.txt @@ -9,7 +9,7 @@ function script TerraniteBlueprint { // Lucky roll (0.25%) if (rand2(2500) < 1) { getitem AncientBlueprint, 1; - dispbottom l("Wait a minute... This is written in Mananese! I can't read!"); + dispbottom l("Wait a minute... This is written in Mananese! I can't read it!"); return; } @@ -49,7 +49,7 @@ function script LegendaryBlueprint { // Unlucky roll (0.25%) if (rand2(2500) < 1) { getitem AncientBlueprint, 1; - dispbottom l("Wait a minute... This is written in Mananese! I can't read!"); + dispbottom l("Wait a minute... This is written in Mananese! I can't read it!"); return; } diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 7f5132a08..947d89eec 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -73,7 +73,7 @@ function script shovel_scatter { function Dig { - // First check: Did some player burried a TREASURE? O.o + // First check: Did some player bury some TREASURE? O.o getmapxy(.@map$, .@x, .@y, 0); for (.@i = 0; .@i < getarraysize($WorldBuriedTreasures_id); .@i++) { diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt index d08f006c7..b7e311b85 100644 --- a/npc/items/teleporter.txt +++ b/npc/items/teleporter.txt @@ -10,8 +10,8 @@ function Cooldown { mesn; - mesc l("Successive warps cause time-space distortions and thus, are not allowed."); - mesc l("You can use it again in @@.", FuzzyTime(TELEPORTER_TIME)); + mesc l("Successive warps cause time-space distortions and are thus not allowed."); + mesc l("You can use it again in %s.", FuzzyTime(TELEPORTER_TIME)); getitem @itemid, 1; close; } @@ -26,14 +26,14 @@ OnUse: if (TELEPORTER_TIME > gettimetick(2)) Cooldown(); if (BaseLevel < 20) { - dispbottom l("This is too powerful to you. Get level 20 before attempting to use."); + dispbottom l("The might contained in this curious object is too powerful. You have to be at least level 20 to harness it."); ReturnItem(); } // TODO: Are you already at target point? - // It have at least 20% chance to break - // Chances begin at 100%, and lower in 0.01% each second - // It will never be below 15%, which happens after x seconds + // The chance to break is always at least 20% + // Begins at 100% and each second will subtract 0.01% + // It will never go below 15%, which happens after x seconds .@timet=limit(0, gettimetick(2)-TELEPORTER_TIME, 3600); .@prop=.@timet*2777/1000; // Make it range from 0~10000 .@adj_breakrate=limit(1500, .@prop, 9500 ); -- cgit v1.2.3-70-g09d2