WarScript (Need help)

By ChunkieMonkey on Jul 01, 2008

I started making a war rpg for mIRC, But I need help with brackets and other bugs. Only .acces power works o.0...... Please /auser 500 [yournick]

 on 500:Text:.access power*:#: {
  Msg $chan $nick Has accessed my central power control.
  timer 1 5 Notice $Nick Hello, you can use .power on ; .power off .power standby
  }
}
 On 500:Text:.power on*:#: {
    If (%power == on) { Notice $nick Denied: Power is on.
    Else 
    If (%power == off) { Notice $nick Approved: Power is now on. | Msg $Chan $Nick has turned the power on. .enter to start.
    set %power on
  }
}
 On 500:Text:.power standby*:#: {
  If (%power == on) {
    Msg $chan $nick has turned central power on standby, this is temporary to reduce lag. 
      set %power standby
       Ignore $chan
       Timer 1 30 Ignore -rs $chan
       Msg $chan Standby is complete, enjoy.
       set %power on
   }
}
 On 1:Text:.enter:#: {
  If (Power == on) {
  If ($nick,entered == yes) { Notice $nick you have entered!
  If ($nick,entered == no) { Notice $nick Welcome to 

Comments

Sign in to comment.
vaseline28   -  Jul 02, 2008

I agree with MountainDew, you may as well set it on anyway(even if already on).
Please note, the script above will only work if %power is specified, so before starting the script, you will need to type
/set %power on
In MountainDew\'s script, there is a small mistake, change:

On 1:Text:.enter:#: {
If (Power == on) {
to:
On 1:Text:.enter:#: {
If (%Power == on) {

 Respond  
guest598594   -  Jul 01, 2008

Try:

on 500:Text:.access power*:#: {
  Msg $chan $nick Has accessed my central power control.
  timer 1 5 Notice $Nick Hello, you can use .power on ; .power off .power standby
}
On 500:Text:.power on*:#: {
  If (%power == on)  Notice $nick Denied: Power is on.
  elseIf (%power == off) { 
    Notice $nick Approved: Power is now on. 
    Msg $Chan $Nick has turned the power on. .enter to start.
    set %power on
  }
}
On 500:Text:.power standby*:#: {
  If (%power == on) {
    Msg $chan $nick has turned central power on standby, this is temporary to reduce lag. 
    set %power standby
    Ignore $chan
    .Timer 1 30 Ignore -rs $chan
    Msg $chan Standby is complete, enjoy.
    set %power on
  }
}
On 1:Text:.enter:#: {
  If (Power == on) {
    If ($nick,entered == yes)  Notice $nick you have entered!
    elseIf ($nick,entered == no)  Notice $nick Welcome to 
  }
}

Edit: I don\'t see why you check if (%power == on) and then set it as on

 Respond  
ChunkieMonkey   -  Jul 01, 2008

Ok mountaindew, sorry. I\'m still getting used to hawkee. And it isn\'t lol. I forgot to finish the sentence (I was in a rush)

 Respond  
guest598594   -  Jul 01, 2008

Use the forums to ask for help now on.

Also, it looks like the bottom is cut off.

 Respond  
ChunkieMonkey   -  Jul 01, 2008

My brackets suck, I know....Help!!!

 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.