summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-08 22:49:39 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-08 22:49:39 -0300
commitd04619229abc5ba9969c75dc1eb3d7d4d8735798 (patch)
tree58d5935fa973bf18890898b0f0cb0c7dda118340
parent68562ddd8bf7eadfd21b48a4f54cd4b86f138702 (diff)
downloadserverdata-d04619229abc5ba9969c75dc1eb3d7d4d8735798.tar.gz
serverdata-d04619229abc5ba9969c75dc1eb3d7d4d8735798.tar.bz2
serverdata-d04619229abc5ba9969c75dc1eb3d7d4d8735798.tar.xz
serverdata-d04619229abc5ba9969c75dc1eb3d7d4d8735798.zip
Sketch some code
-rw-r--r--npc/001-2-43/core.txt3
-rw-r--r--npc/functions/util.txt5
2 files changed, 8 insertions, 0 deletions
diff --git a/npc/001-2-43/core.txt b/npc/001-2-43/core.txt
index c927873c..f7f29d1d 100644
--- a/npc/001-2-43/core.txt
+++ b/npc/001-2-43/core.txt
@@ -37,6 +37,9 @@ OnRead:
// Check if the file was here
if (.@q3 == .@id) {
// TODO: Dialog: How will you deal with the file?
+ // .@t$=faction_addrep("Legion", 50)
+ // .@t$=faction_addrep("Thief", 50)
+ // mesc .@t$;
dispbottom l("This is it! Henry's files! NOW I MUST GET OUT OF HERE BEFORE I'M CAUGHT!!");
setq ThiefQuests_Artis, 2, 0, 0;
}
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 24aa7957..571a7bf1 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -158,6 +158,11 @@ function script faction_addrep {
.@fac$=strtoupper(getarg(0));
.@old=getd(.@fac$+"_REP");
setd(.@fac$+"_REP", .@old+getarg(1));
+ if (getarg(1) > 0)
+ return l("Reputation with %s Faction UP (+%d)!", getarg(0), getarg(1));
+ else
+ return l("Reputation with %s Faction DOWN (%d)!", getarg(0), getarg(1));
+
return;
}
// Returns standing with faction (THIEF/MAGE/LEGION/BROTHERHOOD)