mIRC Home    About    Download    Register    News    Help

Print Thread
#164869 17/11/06 08:49 PM
Joined: Oct 2006
Posts: 60
M
moshkin Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Oct 2006
Posts: 60
the pc script and the event script seem to be attacking each other, if i use !world, it comes up with
(20:47:33) -********- the current world is 14
(20:47:33) <@*******> The current event has been set to : .
(20:47:33) -*********- the event today is


so they dont seem to want to seperate, what have i done wrong?

;!---------PC script ------------!;

on *^1:TEXT:!setworld*:#: {
if (($nick isreg $chan || $nick isvoice $chan )) { halt }
else set %rank $2-
msg $chan The current world has been set : %rank .
}
on $^1:TEXT:/^!(pcw|world)/iS:#:{
{ if ($nick ishop $chan) || ($nick isop $chan) || ($nick isvoice $chan) /notice $nick 8,2the current world is %rank
else /notice $nick voice or higher only
}


;------------ Event -----------------!;

on *^2:TEXT:!setevent*:#: {
if (($nick isreg $chan || $nick isvoice $chan )) { halt }
else set %event $2-
msg $chan The current event has been set to : %event .
}
on $^2:TEXT:/^!(event|events)/iS:#:{
{ if ($nick ishop $chan) || ($nick isop $chan) || ($nick isvoice $chan) /notice $nick 8,2the event today is %event
else /notice $nick voice or higher only
}

#164870 18/11/06 01:41 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
simple solution...remove the * from the event level.
Code:
 on *^1:TEXT:!setworld*:#: { 
would become
Code:
 on ^1:TEXT:!setworld*:#: { 


You should be able to figure out the other events

#164871 18/11/06 06:08 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
On each script, remove the '{' on the 2nd line of the 2nd event. I think I already told you this before.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#164872 18/11/06 01:52 PM
Joined: Oct 2006
Posts: 60
M
moshkin Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Oct 2006
Posts: 60
;!---------PC script ------------!;

on ^1:TEXT:!setworld*:#: {
if ($nick isreg $chan || $nick isvoice $chan ) { halt }
else set %rank $2-
msg $chan The current world has been set : %rank .
}
on $^1:TEXT:/^!(pcw|world)/iS:#:{
{ if ($nick ishop $chan) || ($nick isop $chan) || ($nick isvoice $chan) /notice $nick 8,2the current world is %rank
else /notice $nick voice or higher only
}


;------------ Event -----------------!;

on ^2:TEXT:!setevent*:#: {
if ($nick isreg $chan || $nick isvoice $chan ) { halt }
else set %event $2-
msg $chan The current event has been set to : %event .
}
on $^2:TEXT:/^!(event|events)/iS:#:{
{ if ($nick ishop $chan) || ($nick isop $chan) || ($nick isvoice $chan) /notice $nick 8,2the event today is %event
else /notice $nick voice or higher only
}




doesnt work

#164873 18/11/06 05:33 PM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
I don't know a way to make what you've been told already any clearer ...

make 2 changes.

on $^1:TEXT:/^!(pcw|world)/iS:#:{
{ if ($nick ishop $chan) || ($nick isop $chan) || ($nick is .....

on $^2:TEXT:/^!(event|events)/iS:#:{
{ if ($nick ishop $chan) || ($nick isop $chan) || ($nick is ....

REMOVE anything I have colored RED

Last edited by CtrlAltDel; 18/11/06 05:34 PM.

I refuse to engage in a battle of wits with an unarmed person. wink
#164874 18/11/06 06:45 PM
Joined: Oct 2006
Posts: 60
M
moshkin Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Oct 2006
Posts: 60
thnx but now i can set the event, but not view it

;!---------PC script ------------!;

on *^1:TEXT:!setworld*:#: {
if (($nick isreg $chan || $nick isvoice $chan )) { halt }
else set %rank $2-
msg $chan The current world has been set : %rank .
}
on $^1:TEXT:/^!(pcw|world)/iS:#:{
if ($nick ishop $chan) || ($nick isop $chan) || ($nick isvoice $chan) /notice $nick 8,2The current world is %rank
else /notice $nick voice or higher only
}


;------------ Event -----------------!;

on *^2:TEXT:!setevent*:#: {
if (($nick isreg $chan || $nick isvoice $chan )) { halt }
else set %event $2-
msg $chan The current event has been set to : %event .
}
on $^2:TEXT:/^!(event|events)/iS:#:{
if ($nick ishop $chan) || ($nick isop $chan) || ($nick isvoice $chan) /notice $nick 8,2the event today is %event
else /notice $nick voice or higher only
}


Link Copied to Clipboard