gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 November 21, 2024, 07:15:57 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Vote for splitting WPN in your room
gfx
gfxgfx
 

Author Topic: Vote for splitting WPN in your room  (Read 2090 times)

0 Members and 1 Guest are viewing this topic.

Offline reef

  • WMW Volunteer
  • *****
  • ***
Vote for splitting WPN in your room
« on: March 12, 2007, 11:46:30 am »
Ok...since not many but a handful have been posting about splitting
the network,I thot it might be interesting to see sum voting take
place in the chat rooms.Mucked around with an old music poll script
originally made by mr scruff.Give it a try and see what your regs
and visitors think on this matter.... or change it and use it for
sumthin completely different.

It'll post the vote message every 1/2 hour approximately...your bot
may only have 1 OnTimer script so have a look before adding this.


Offline reef

  • WMW Volunteer
  • *****
  • ***
Re: Vote for splitting WPN in your room
« Reply #1 on: March 17, 2007, 04:07:17 am »
ok i know the topic of splitting the WPN has quieted down.... just updating this script as it wasnt working correctly as posted previously......change it up to create any kind of poll you'd like... text files will need
to be created and stuck into plugins folder or addons if yer still using older metis (change directory as needed)

Code: [Select]
<OnTimer interval="7200">
<out>#c4#POLL IN PROGRESS! #c8#Should the WinMX Peer Network be split?\n#c2#Type #c1#!#c20#question#c1#! #c2#for further details\n#c12#To see current poll results type in #c1#!results! #c12#...Please vote 1 time only or something bad might happen to you , like ummmm... hehe....i'll think of sumthin... 1 vote only plz ;p</out>
</OnTimer>

// THIS SPEAKS FOR ITSELF

<command type="script">
<in>!question!</in>
<out>#c8#Question : #c1#Should The WPN be Split? Pie users go their own way and winmxgroup/winmxworld users go the other?</out>
<out>#c8#for: #c4#yes #c2#type #c1#!yes!</out>
<out>#c8#for: #c4#no #c2#type #c1#!no!</out>
<out>#c8#for: #c4#undecided #c2#type #c1#!undecided!</out>
<out>#c8#for: #c4#I dont know enough about it #c2#type #c1#!dunno!</out>
<out>#c8#for: #c4#I dont care #c2#type #c1#!idc!</out>
<out>#c8#for: #c4#Tell me more about it #c2#type #c1#!tmm!</out>
</command>

// THIS READS ALL THE POLLFILES THEN ADDS 1 TO THE VALUE THERE, THEN OVERWRITES THE FILE

<command type="script">
<in>!yes!</in>
<out type="push" extdata="pollyes"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollyes.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="pollyes"><operator type="++"  lvalue="$pollyes$"/></out>
<out>#c20#Your vote has been added!</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollyes.txt">$pollyes$</out>
</command>

<command type="script">
<in>!no!</in>
<out type="push" extdata="pollno"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollno.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="pollno"><operator type="++"  lvalue="$pollno$"/></out>
<out>#c20#Your vote has been added!</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollno.txt">$pollno$</out>
</command>

<command type="script">
<in>!undecided!</in>
<out type="push" extdata="pollundecided"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollundecided.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="pollundecided"><operator type="++"  lvalue="$pollundecided$"/></out>
<out>#c20#Your vote has been added!</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollundecided.txt">$pollundecided$</out>
</command>

<command type="script">
<in>!dunno!</in>
<out type="push" extdata="polldunno"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\polldunno.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="polldunno"><operator type="++"  lvalue="$polldunno$"/></out>
<out>#c20#Your vote has been added!</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\polldunno.txt">$polldunno$</out>
</command>

<command type="script">
<in>!idc!</in>
<out type="push" extdata="pollidc"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollidc.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="pollidc"><operator type="++"  lvalue="$pollidc$"/></out>
<out>#c20#Your vote has been added!</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollidc.txt">$pollidc$</out>
</command>

// AND A VERY HANDY RESULTS SECTION

<command type="script">
<in>!RESULTS!</in>
<out type="push" extdata="currentnumber"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollcounter.txt" lvalue="c" rvalue="-1"/></out>
<out delay="1000">#c20#There has been #c1#$currentnumber$ #c20#votes so far. </out> 
<out type="push" extdata="pollyes"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollyes.txt" lvalue="c" rvalue="-1"/></out>
<out delay="1000">#c4#yes=#c4#$pollyes$</out>
<out type="push" extdata="pollno"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollno.txt" lvalue="c" rvalue="-1"/></out>
<out delay="1000">#c8#no=#c8#$pollno$</out>
<out type="push" extdata="pollundecided"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollundecided.txt" lvalue="c" rvalue="-1"/></out>
<out delay="1000">#c16#undecided=#c16#$pollundecided$</out>
<out type="push" extdata="polldunno"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\polldunno.txt" lvalue="c" rvalue="-1"/></out>
<out delay="1000">#c21#I dont know enough about it=#c21#$polldunno$</out>
<out type="push" extdata="pollidc"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollidc.txt" lvalue="c" rvalue="-1"/></out>
<out delay="1000">#c9#I don't care=#c9#$pollidc$</out>
</command>

<usergroup name="bot">
HOST*
</usergroup>

<command type="script" usergroup="bot">
<in>!resetpoll!</in>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollyes.txt">0</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollno.txt">0</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollundecided.txt">0</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\polldunno.txt">0</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollidc.txt">0</out>
<out>#c4#Poll Is Now Cleared %NAME%</out>
</command>

<command type="script" usergroup="!bot">
<in>!resetpoll!</in>
<out>#c8#This Poll is still in progress #c10#%NAME% #c8#And you don't have access for that command anyways ;p</out>
</command>

<command type="script">
<in>!tmm!</in>
<out>#c4#To Learn more on this, before you decide to vote.... visit here #c1#https://www.winmxworld.com/tutorials/fake_file_info.html</out>
</command>

<command type="script">
<in>!yes!</in>
<in>!no!</in>
<in>!undecided!</in>
<in>!dunno!</in>
<in>!idc!</in>
<out type="push" extdata="currentnumber"><operator type="readfile" nvalue="C:\Program Files\RoboMX 2.80\Plugins\pollcounter.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="newcount"><operator type="+" lvalue="$currentnumber$" rvalue="1"/></out>
<out>#c4#Thanks for voting #c2#%NAME% #c4#you're vote was number #c2#$newcount$ #c4#so far</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX 2.80\Plugins\pollcounter.txt">$newcount$</out>
</command>

WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Vote for splitting WPN in your room
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.009 seconds with 22 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!