Popularity Script (Incomplete)

By pokemaster23 on Jun 08, 2008

This is a incomplete Popularity bot for a channel. It is kinda a contest, users are awarded popularity points by way of vote from other users. (May be buggy) Put in Remotes

On 1:Join:#: {
  Msg $chan Welcome to $chan $Nick ! Please type `enter to begin in the game!
  }
}
On 1:Text:*`enter*:#: {
  If $readini(Popularity.ini,$Nick,entered) == yes) {
   Notice $Nick You have already entered $Nick !
   (Halt}
   Notice $Nick Welcome, I am a contest to show who is most popular in my channel! I will give you one popularity point for joining. 
   write ini Popularity.ini $nick Popularity 1
  }
}
On 1:Text:*`pop*:#: (
  If $readini(Popularity.ini,$Nick,entered) == yes) {
    Msg $Chan $Nick thinks $2 deserves a popularity point, if you agree type `agree .
  }
}
On 1:Text:*`agree*:#: {
  If $readini(Popularity.ini,$Nick,entered) == yes) {
  If ($Nick == $2) (
    Notice $Nick You cannot vote for yourself!
    (Halt}
    Msg $chan $2 has earned 1 popularity by way of vote! Congratz!
    Inc Popularity.ini $nick

    }
  }
}
Sign in to comment.
LucSatise   -  Jun 10, 2008

actually he cant be bothered finishing it so hes left u to work it out for urself

 Respond  
SpotRedDog   -  Jun 10, 2008

Be very very quiet he is hunting for help!!!

/me thinks he wants everyone else to write his script for him......

/me isn\'t helping!!!!

 Respond  
^Neptune   -  Jun 09, 2008
   write ini Popularity.ini $nick Popularity 1

What the? is that meant to be /writeini?

 Respond  
mountaindew   -  Jun 09, 2008
On 1:Text:*`agree*:#: {
  If $readini(Popularity.ini,$Nick,entered) == yes) {
  If ($Nick == $2) (
    Notice $Nick You cannot vote for yourself!
    (Halt}
    Msg $chan $2 has earned 1 popularity by way of vote! Congratz!
    Inc Popularity.ini $nick

    }
  }
}

What\'s up with the \"(Halt}\" ? I guess you\'re brackets are a little messed up.

On 1:Text:*`agree*:#: {
  If $readini(Popularity.ini,$Nick,entered) == yes) {
    If ($Nick == $2) (
      Notice $Nick You cannot vote for yourself!
    }
    else {
      Msg $chan $2 has earned 1 popularity by way of vote! Congratz!
      Inc Popularity.ini $nick
    }
  }
}
 Respond  
vaseline28   -  Jun 09, 2008

[quote]On 1:Text:`agree:#: { If $readini(Popularity.ini,$Nick,entered) == yes) { [/quote]

Needs to be:

if ($readini(Popularity.ini,$nick,entered) == yes) {

 Respond  
napa182   -  Jun 08, 2008

um why post this if it\'s Incomplete?? also you should have tested this before you posted like it\'s stated in the rules. and why make ur triggers wildcards? as well as a ton of errors =/

 Respond  
pokemaster23   -  Jun 08, 2008

I just recently got into using .ini\'s in my scripts..

 Respond  
Jamiie   -  Jun 08, 2008

inc is used in variables, not ini\'s. Example

inc %popularity 1

Also, get rid of halt\'s. No need for them.

 Respond  
Jamiie   -  Jun 08, 2008

There is alot of error\'s in this snippet. I didn\'t thoroughly look through it till now.

 Respond  
pokemaster23   -  Jun 08, 2008

Fixed! Thanks.

 Respond  
Jamiie   -  Jun 08, 2008

Your missing $ in the readini, It\'s supposed to be $readini.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.