Top

WarScript (Need help)


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  1.0
Scores Submitted  3
Date Added  Jul 01, 2008
Last Updated  Jul 01, 2008
Tags  war 
  Bookmark and Share

Introduction

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]

Grab the Code

Comments

  (5)  RSS
ChunkieMonkey
Comments: 139
 
mIRC Snippet:  WarScript (Need help)
Posted on Jul 1, 2008 4:26 pm
My brackets suck, I know....Help!!!
mountaindew
Comments: 1,550
 
mIRC Snippet:  WarScript (Need help)
Posted on Jul 1, 2008 4:33 pm
Use the forums to ask for help now on.

Also, it looks like the bottom is cut off.
ChunkieMonkey
Comments: 139
 
mIRC Snippet:  WarScript (Need help)
Posted on Jul 1, 2008 4:35 pm
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)
mountaindew
Comments: 1,550
 
mIRC Snippet:  WarScript (Need help)
Posted on Jul 1, 2008 4:43 pm
Try:
Code:

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
vaseline28
Comments: 134
 
mIRC Snippet:  WarScript (Need help)
Posted on Jul 2, 2008 1:10 am
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:
Quote:
On 1:Text:.enter:#: {
If (Power == on) {

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

Please Register or Login to start posting comments.
Bottom