summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/lockpicks.txt8
-rw-r--r--npc/functions/mounts.txt2
-rw-r--r--npc/functions/util.txt10
3 files changed, 16 insertions, 4 deletions
diff --git a/npc/functions/lockpicks.txt b/npc/functions/lockpicks.txt
index 3a27d4749..9775fa3ed 100644
--- a/npc/functions/lockpicks.txt
+++ b/npc/functions/lockpicks.txt
@@ -55,7 +55,7 @@ function script LockPicking {
@chance=min(.@d*.@m-1, THIEF_RANK+.@d);
mesc l("You insert the hook pick inside the lock, and, without applying any tension, you discover there are only @@ pins to set.", .@d);
- // You have as many attempts as pins and appliable strenghts.
+ // You have as many attempts as pins and appliable strength.
// Each thief rank grants you an extra attempt.
// Each pin takes one attempt.
// It's not multiplied, so 3 pins with 3 positions: 6 chances, 9 possibilities.
@@ -146,7 +146,7 @@ function script LootableVault {
.@level=getarg(1);
.@var$=getarg(2);
mesn;
- mesq l("There's a shiny safe here. How much money is inside? Nobody is looking at you, great!");
+ mesq l("There's a shiny safe here. How much money is inside? Nobody is looking at you, too.");
// 2*3 = 6 possibilities, 5 attempts
if (LockPicking(.@tier, .@level)) {
Zeny=Zeny+getd("$VAULT_"+.@var$);
@@ -163,9 +163,9 @@ function script LootableVault {
atcommand("@jailfor 5mn "+strcharinfo(0));
} else {
if (is_night())
- .@p$=l("The darkness of night gives you cover.");
+ .@p$=l("The darkness of the night gives you cover.");
else
- .@p$=l("Your agile legs and sheer luck allows you to outrun the cops.");
+ .@p$=l("Your agile legs and sheer luck allows you to outrun the guards.");
mesc l("You run as far as you could. %s", .@p$);
warp "000-1", 22, 22;
}
diff --git a/npc/functions/mounts.txt b/npc/functions/mounts.txt
index 12d56d71f..af797cbf2 100644
--- a/npc/functions/mounts.txt
+++ b/npc/functions/mounts.txt
@@ -10,6 +10,7 @@ function script MoubooRent {
if (MOUBOO_RENTTIME > gettimetick(2) || BaseLevel < 20) {
mesn .@n$;
mesq l("Moo!");
+ tutmes l("You are already renting a mount or are below level 20.");
return;
}
@@ -57,6 +58,7 @@ function script TortugaRent {
if (MOUBOO_RENTTIME > gettimetick(2)) {
mesn .@n$;
mesq l("Boo!");
+ tutmes l("You are already renting a mount or are below level 20.");
return;
}
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 5063a23a3..77a1c073a 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -1328,3 +1328,13 @@ function script api_send {
return;
}
+function script announce_bosskill {
+ .@party=getcharid(1);
+ if (.@party > 0) {
+ mapannounce getmap(getarg(0)), getmonsterlink(getarg(1)) + " defeated by Party: " + getpartyname(.@party), bc_all;
+ } else {
+ mapannounce getmap(getarg(0)), getmonsterlink(getarg(1)) + " defeated by: " + strcharinfo(0), bc_all;
+ }
+ return;
+}
+