summaryrefslogtreecommitdiff
path: root/npc/commands/kami.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-01-26 03:04:23 -0300
committerJesusaves <cpntb1@ymail.com>2022-01-26 03:04:23 -0300
commit8e2758fec796d5e4e684f86bc1662f85222096c6 (patch)
tree762aaa2ce8789b7a75e565275b8958db6366205e /npc/commands/kami.txt
parentb5e3ca971ad667832780a0aa69f3bbd6c2ab7773 (diff)
downloadserverdata-8e2758fec796d5e4e684f86bc1662f85222096c6.tar.gz
serverdata-8e2758fec796d5e4e684f86bc1662f85222096c6.tar.bz2
serverdata-8e2758fec796d5e4e684f86bc1662f85222096c6.tar.xz
serverdata-8e2758fec796d5e4e684f86bc1662f85222096c6.zip
Fix some security issues and transfer some GM commands.
- @getvar against self is now GM 80 - @event wrapper is now GM 80 - @blessing is now GM 80 and can be used by others beside Jesusalva
Diffstat (limited to 'npc/commands/kami.txt')
-rw-r--r--npc/commands/kami.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt
index 0e9b567c8..6af990194 100644
--- a/npc/commands/kami.txt
+++ b/npc/commands/kami.txt
@@ -27,6 +27,7 @@ OnServMsg:
end;
OnBuff:
+ .@n$=strtoupper(strcharinfo(0, "JESUSALVA", playerattached()));
// Disabled command, used for debug purposes
.@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
@@ -38,7 +39,7 @@ OnBuff:
sc_start SC_WALKSPEED, 300000, 150;
sc_start SC_ATTHASTE_POTION3, 300000, 50;
percentheal 100, 100;
- dispbottom l("YOU WERE BLESSED BY JESUSALVA");
+ dispbottom l("YOU WERE BLESSED BY %s", .@n$);
dispbottom l("YOU CAN FEEL THE POWER FLOWING TROUGH YOU.");
detachrid();
}
@@ -81,7 +82,7 @@ OnInit:
bindatcmd "k", "@k::OnCall", 60, 80, 1;
bindatcmd "servmsg", "@k::OnServMsg", 80, 99, 1;
- bindatcmd "blessing", "@k::OnBuff", 99, 100, 1;
+ bindatcmd "blessing", "@k::OnBuff", 80, 99, 1;
bindatcmd "harm", "@k::OnHarm", 80, 80, 1;
bindatcmd "cruelty", "@k::OnHarm2", 99, 99, 1;