sub Poll (thename, theoutput, thewildcards)
dim Name
Name = world.gettriggerinfo (thename, 101)
world.send """Well hello there, " + Name + ". Todays poll is: Who's cooler, Intro or Naveah?"
world.enabletrigger "Vote", TRUE
end sub
sub Vote (thename, theoutput, thewildcards)
dim Name
dim Vote
dim Vote2
dim fVote
dim Intro
dim Naveah
Name = world.gettriggerinfo (thename, 101)
Vote = world.gettriggerinfo (thename, 110)
Vote2 = LCASE(Vote)
fVote = RIGHT(Vote2, 6)
SELECT CASE fVote
Case "intro."
world.send """Your vote has been registered as Intro. #SA"
world.activatenotepad "Poll"
world.appendtonotepad "Poll", "1 | " + Name
world.appendtonotepad "Poll", vbcrlf
world.SaveNotepad "Poll", "c:\Program Files\Mushclient\Poll", 0
Case " intro"
world.send """Your vote has been registered as Intro. #SA"
world.activatenotepad "Poll"
world.appendtonotepad "Poll", "1 | " + Name
world.appendtonotepad "Poll", vbcrlf
world.SaveNotepad "Poll", "c:\Program Files\Mushclient\Poll", 0
Case "aveah."
world.send """Your vote has been registered as Naveah. #SA"
world.activatenotepad "Poll"
world.appendtonotepad "Poll", "2 | " + Name
world.appendtonotepad "Poll", vbcrlf
world.SaveNotepad "Poll", "c:\Program Files\Mushclient\Poll", 0
Case "naveah"
world.send """Your vote has been registered as Naveah. #SA"
world.activatenotepad "Poll"
world.appendtonotepad "Poll", "2 | " + Name
world.appendtonotepad "Poll", vbcrlf
world.SaveNotepad "Poll", "c:\Program Files\Mushclient\Poll", 0
end SELECT
world.enabletrigger "Vote", FALSE
end sub
Now this whole thing works like magic *but* when I exit out of Mushclient or the notepad it refuses to save. So I can't save over sessions. Any solutions?
dim Name
Name = world.gettriggerinfo (thename, 101)
world.send """Well hello there, " + Name + ". Todays poll is: Who's cooler, Intro or Naveah?"
world.enabletrigger "Vote", TRUE
end sub
sub Vote (thename, theoutput, thewildcards)
dim Name
dim Vote
dim Vote2
dim fVote
dim Intro
dim Naveah
Name = world.gettriggerinfo (thename, 101)
Vote = world.gettriggerinfo (thename, 110)
Vote2 = LCASE(Vote)
fVote = RIGHT(Vote2, 6)
SELECT CASE fVote
Case "intro."
world.send """Your vote has been registered as Intro. #SA"
world.activatenotepad "Poll"
world.appendtonotepad "Poll", "1 | " + Name
world.appendtonotepad "Poll", vbcrlf
world.SaveNotepad "Poll", "c:\Program Files\Mushclient\Poll", 0
Case " intro"
world.send """Your vote has been registered as Intro. #SA"
world.activatenotepad "Poll"
world.appendtonotepad "Poll", "1 | " + Name
world.appendtonotepad "Poll", vbcrlf
world.SaveNotepad "Poll", "c:\Program Files\Mushclient\Poll", 0
Case "aveah."
world.send """Your vote has been registered as Naveah. #SA"
world.activatenotepad "Poll"
world.appendtonotepad "Poll", "2 | " + Name
world.appendtonotepad "Poll", vbcrlf
world.SaveNotepad "Poll", "c:\Program Files\Mushclient\Poll", 0
Case "naveah"
world.send """Your vote has been registered as Naveah. #SA"
world.activatenotepad "Poll"
world.appendtonotepad "Poll", "2 | " + Name
world.appendtonotepad "Poll", vbcrlf
world.SaveNotepad "Poll", "c:\Program Files\Mushclient\Poll", 0
end SELECT
world.enabletrigger "Vote", FALSE
end sub
Now this whole thing works like magic *but* when I exit out of Mushclient or the notepad it refuses to save. So I can't save over sessions. Any solutions?