summaryrefslogtreecommitdiff
path: root/npc/functions/politics.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-09 17:35:18 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-09 17:35:18 -0300
commit41570b5ff91b3bc545e87bbd4de87cb001e6a390 (patch)
treed39684ee8d25bbdb7b8dd65a6e21a312bea609aa /npc/functions/politics.txt
parent545e83916fcf78fd82033de0bc7a11e97fa3f144 (diff)
downloadserverdata-41570b5ff91b3bc545e87bbd4de87cb001e6a390.tar.gz
serverdata-41570b5ff91b3bc545e87bbd4de87cb001e6a390.tar.bz2
serverdata-41570b5ff91b3bc545e87bbd4de87cb001e6a390.tar.xz
serverdata-41570b5ff91b3bc545e87bbd4de87cb001e6a390.zip
One vote per town and weekly (using TP_ variables for control)
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r--npc/functions/politics.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index ba7cd4a90..22b34ddf2 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -234,7 +234,7 @@ function script POL_Candidate {
}
next;
- if (#POL_VOTEDAY == gettimeparam(GETTIME_DAYOFMONTH) || is_gm())
+ if (#POL_VOTEDAY[POL_LocToTP(getarg(0))] == gettimeparam(GETTIME_WEEKDAY) || is_gm())
return;
mesc l("In whom to vote?");
select .@list$;
@@ -253,7 +253,7 @@ function script POL_Candidate {
}
// Cast the vote
- #POL_VOTEDAY=gettimeparam(GETTIME_DAYOFMONTH);
+ #POL_VOTEDAY[POL_LocToTP(getarg(0))]=gettimeparam(GETTIME_WEEKDAY);
.@vt=getd(.@str$);
setd(.@str$, .@vt+1);
@@ -283,8 +283,8 @@ function script POL_TownInfo {
// Town Managment
-// POL_MANAGE( TOWNCODE )
-function script POL_TownInfo {
+// POL_Manage( TOWNCODE )
+function script POL_Manage {
.@town$="$"+getarg(0);
.@MAYOR$=getd("$"+getarg(0)+"_MAYOR$");