summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-01 23:10:41 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-01 23:10:41 -0200
commit1f13bfa51c347ca2a7a42f9bda006d8d91c67800 (patch)
tree01047a5fa9c9f4a032938f60796579a42bcfd433 /npc/functions/main.txt
parentf5fea6ecb2437fe5d9b50018e88a2f21af51e99c (diff)
downloadserverdata-1f13bfa51c347ca2a7a42f9bda006d8d91c67800.tar.gz
serverdata-1f13bfa51c347ca2a7a42f9bda006d8d91c67800.tar.bz2
serverdata-1f13bfa51c347ca2a7a42f9bda006d8d91c67800.tar.xz
serverdata-1f13bfa51c347ca2a7a42f9bda006d8d91c67800.zip
b() for **bold** text
Example: b(l("hello")) → ##BHello##b or ##BOlá##b
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index a05d07276..ca828b056 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -62,6 +62,10 @@ function script g {
return Sex == 0 ? getarg(0) : getarg(1);
}
+function script b {
+ return "##B" + getarg(0) + "##b";
+}
+
function script col {
.@color = getarg(1);
if (.@color < 0) .@color = 0;