투표 게임/계산 DB: 두 판 사이의 차이
< 투표 게임
백괴게임>Manymaster 편집 요약 없음 |
백괴게임>Manymaster 편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
{{#switch:{{{1}}}|투표={{#expr:({{#expr:{{LOCALYEAR}}*10000+{{LOCALMONTH}}*100+{{LOCALDAY}}}} = {{#expr:{{REVISIONYEAR:투표 게임/투표 DB}}*10000+{{REVISIONMONTH:투표 게임/투표 DB}}*100+{{REVISIONDAY:투표 게임/투표 DB}}}} and {{#ifeq: {{:투표 게임/투표 DB|상태}} | 투표 | 1 | 0}}) + {{#ifeq: {{:투표 게임/투표 DB|최근 투표자}} | {{Username}} | 0 | 10}}}} | {{#switch:{{{1}}}|투표={{#expr:({{#expr:{{LOCALYEAR}}*10000+{{LOCALMONTH}}*100+{{LOCALDAY}}}} = {{#expr:{{REVISIONYEAR:투표 게임/투표 DB}}*10000+{{REVISIONMONTH:투표 게임/투표 DB}}*100+{{REVISIONDAY:투표 게임/투표 DB}}}} and {{#ifeq: {{:투표 게임/투표 DB|상태}} | 투표 | 1 | 0}}) + {{#ifeq: {{:투표 게임/투표 DB|최근 투표자}} | {{Username}} | 0 | 10}}}} | ||
|반영={{:투표 게임/투표 DB|{{{2}}}표}}-{{#ifexpr: ({{CGI}}-{{{2}}}) mod 5 | 0 | 2}}+{{#ifexpr:{{CGI}}>({{{2}}}*5-5) and {{CGI}}<({{{2}}}*5+1) | 1 | 0}} | |반영={{:투표 게임/투표 DB|{{{2}}}표}}-{{#ifexpr: ({{CGI}}-{{{2}}}) mod 5 | 0 | 2}}+{{#ifexpr:{{CGI}}>({{{2}}}*5-5) and {{CGI}}<({{{2}}}*5+1) | 1 | 0}} | ||
|해킹={{#expr:({{#ifeq:{{:투표 게임/투표 DB|상태}}|투표|1|0}} and {{#ifeq: {{REVISIONUSER:투표 게임/투표 DB}}|{{:투표 게임/투표 DB|최근 투표자}}|0|1}}) or ({{#ifeq:{{:투표 게임/투표 DB|상태}}|투표|1|0}} and | |해킹={{#expr:({{#ifeq:{{:투표 게임/투표 DB|상태}}|투표|1|0}} and {{#ifeq: {{REVISIONUSER:투표 게임/투표 DB}}|{{:투표 게임/투표 DB|최근 투표자}}|0|1}}) or ({{#ifeq:{{:투표 게임/투표 DB|상태}}|투표|1|0}} and {{#expr:{{:투표 게임/투표 DB|투표 코드}}>30 or {{:투표 게임/투표 DB|투표 코드}}<1}}) }} | ||
|오프셋 체크={{#expr:{{#expr:({{CGI}}-1) mod 6 and {{CGI}}>0 and {{CGI}}<31}} and not {{#expr:{{:투표 게임/투표 DB|1표}}=0 and (({{CGI}} mod 5 = 1) or {{CGI}}<6)}} and not {{#expr:{{:투표 게임/투표 DB|2표}}=0 and (({{CGI}} mod 5 = 2) or ({{CGI}}>5 and {{CGI}}<11))}} and not {{#expr:{{:투표 게임/투표 DB|3표}}=0 and (({{CGI}} mod 5 = 3) or ({{CGI}}>10 and {{CGI}}<16))}} and not {{#expr:{{:투표 게임/투표 DB|4표}}=0 and (({{CGI}} mod 5 = 4) or ({{CGI}}>15 and {{CGI}}<21))}} and not {{#expr:{{:투표 게임/투표 DB|5표}}=0 and (({{CGI}} mod 5 = 0) or ({{CGI}}>20 and {{CGI}}<26))}} }} | |오프셋 체크={{#expr:{{#expr:({{CGI}}-1) mod 6 and {{CGI}}>0 and {{CGI}}<31}} and not {{#expr:{{:투표 게임/투표 DB|1표}}=0 and (({{CGI}} mod 5 = 1) or {{CGI}}<6)}} and not {{#expr:{{:투표 게임/투표 DB|2표}}=0 and (({{CGI}} mod 5 = 2) or ({{CGI}}>5 and {{CGI}}<11))}} and not {{#expr:{{:투표 게임/투표 DB|3표}}=0 and (({{CGI}} mod 5 = 3) or ({{CGI}}>10 and {{CGI}}<16))}} and not {{#expr:{{:투표 게임/투표 DB|4표}}=0 and (({{CGI}} mod 5 = 4) or ({{CGI}}>15 and {{CGI}}<21))}} and not {{#expr:{{:투표 게임/투표 DB|5표}}=0 and (({{CGI}} mod 5 = 0) or ({{CGI}}>20 and {{CGI}}<26))}} }} | ||
|#default=}} | |#default=}} |