mIRC Home    About    Download    Register    News    Help

Print Thread
#114952 20/03/05 06:38 AM
Joined: Feb 2005
Posts: 27
O
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Feb 2005
Posts: 27
Ok all , back again , i have this game in which you can !rob ppl
but it wont let you rob again for 30mins.
I would like to change this to 5mins but not sure how to ,lol.

on *:text:!rob*:#Battle: {
if (%rob [ $+ [ $nick ] ] == on) {
msg $nick You Have Already Robbed Someone Within 30 mins!
halt
}
if (%rob [ $+ [ $nick ] ] != on) && ($2 ison #) && (%account [ $+ [ $2 ] ] == on) {
msg $chan $nick Attempts To Rob $2
set %attempt $rand(1,5)
}
if (%attempt == 1) {
set %tthier-money $round($calc(%money [ $+ [ $2 ] ] / 2),0)
msg $chan $nick SuccessFully Robs $2
msg $chan $nick Has Robbed $2 by %tthier-money Money From $2
inc %money [ $+ [ $nick ] ] %tthier-money
dec %money [ $+ [ $2 ] ] %tthier-money
set -u1800 %rob [ $+ [ $nick ] ] on
}
else {
msg $chan $nick Has Failed To Rob $2 !
set -u1800 %rob [ $+ [ $nick ] ] on
}
}


I think its something to do with -
set -u1800 %rob [ $+ [ $nick ] ] on
????????

#114953 20/03/05 07:26 AM
Joined: Mar 2005
Posts: 11
A
Pikka bird
Offline
Pikka bird
A
Joined: Mar 2005
Posts: 11
yes, u're right
modify
[code
set -u1800 %rob [ $+ [ $nick ] ] on
[/code]
to:
Code:
 set -u300 %rob [ $+ [ $nick ] ] on

the number after -u are the seconds till the variable is deleted smile

#114954 20/03/05 07:27 AM
Joined: Feb 2005
Posts: 27
O
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Feb 2005
Posts: 27
thx very much smile)


Link Copied to Clipboard