Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-23-2004, 09:25 PM   #1
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Lightbulb Calculate nuke size

Nuke size : size * ratio + size * (multiplier - 1)

What is needed :

[user] : !trigger 3 100
[bot] : 100Mb release nuked 3x will result in 500Mb punishment


No ftp connections needed, no mysql etc, simple script, nothing advanced. If anyone could do this, would be apreciatted Thanks.


PS: If you're gonna reply with something like "learn tcl, it's not that hard, specially for this kind of script", then please don't reply at all... Go to the toilet or something and put all this bs out there, thank you This forum's purpose is to ask for help and to get it... If nobody will do this script, it's ok... But befree me and rest of the forum of that bs, thnx
wooolF[RM] is offline   Reply With Quote
Old 11-23-2004, 10:13 PM   #2
EwarWoo
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 462
Default Re: Calculate nuke size

Quote:
Originally posted by wooolF[RM]
Nuke size : size * ratio + size * (multiplier - 1)
That should be:
Nuke size : size * ratio + (size * (multiplier - 1))
EwarWoo is offline   Reply With Quote
Old 11-23-2004, 11:26 PM   #3
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

which gives same result as mine as by math rules u first take * and/or / and only then + and/or -
wooolF[RM] is offline   Reply With Quote
Old 11-24-2004, 05:32 AM   #4
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

removed
jeza is offline   Reply With Quote
Old 11-24-2004, 06:14 PM   #5
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

Doesn't really work here... hmmm... just get no output at all :|
thanks for trying tho'

Regards
wooolF[RM] is offline   Reply With Quote
Old 11-25-2004, 03:01 AM   #6
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

this works for me

Code:
set trigger "!trigger"

proc pub:calc { nick uhost hand chan text } {
  
  #!trigger 3 100
  #size * ratio + (size * (multiplier - 1))
  
  set math [expr [expr [lindex $text 1]*3]+[expr [lindex $text 1]*[expr [lindex $text 0]-1]] ]
  
  putquick "PRIVMSG $chan :[lindex $text 1]Mb release nuked [lindex $text 0]x will result in $math Mb punishment "
  
  return 
}

bind pub -|- $trigger pub:calc
Code:
1125[08:58] <__jeza> !trigger 3 100
1125[08:58] <ef~|iojTQ|> 100Mb release nuked 3x will result in 500 Mb punishment 
1125[08:58] <__jeza> !trigger 3 11235
1125[08:58] <ef~|iojTQ|> 11235Mb release nuked 3x will result in 56175 Mb punishment
jeza is offline   Reply With Quote
Old 11-25-2004, 07:58 PM   #7
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

Thanks a lot, this worked flawessly Nice nifty addition

Best Regards
wooolF[RM] is offline   Reply With Quote
Old 05-11-2006, 11:06 PM   #8
ioUSER
Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jul 2004
Posts: 98
Default

is it possible to integrate that into dzsbot? on nuke announce: blabla got nuked 1x reason: blabla lost: 10MB

would be a nice function
ioUSER is offline   Reply With Quote
Reply

Tags
ftp, nuke, reply, script, size

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I think i’m found 2 new bug’s in ioFTPD 3-7-0 CrossFire Bug Reports 6 12-06-2002 07:51 PM


All times are GMT -5. The time now is 06:27 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)