first script

By buckshot987 on Sep 02, 2007

sniper script load into remotes and then type in !sniper to sniper them.

on *:TEXT:!sniper*:#: {
  set %fate $rand(1,7)
  describe $chan loads the Barrett M107 .50 Caliber sniper rifle.
  .timer 1 1 describe $chan gets in sniper postition.
  .timer 1 3 describe $chan is exactly $($r(1,4) $+ . $+ $r(1234,5678)) miles away
  .timer 1 5 describe $chan finds his target $2 
  .timer 1 7 describe $chan pulls the trigger.
  .timer 1 8 if (%fate == 1) describe $chan hits $2 in the ass
  .timer 1 8 if (%fate == 2) describe $chan hits $2 in the hand
  .timer 1 8 if (%fate == 3) describe $chan hits $2 in the head
  .timer 1 8 if (%fate == 4) describe $chan hits $2 in the foot
  .timer 1 8 if (%fate == 5) describe $chan hits $2 in the chest
  .timer 1 8 if (%fate == 6) describe $chan hits $2 in the leg
  .timer 1 8 if (%fate == 7) describe $chan hits $2 in the knee
  .timer 1 10 describe $chan owns $2 to bad nobody liked $2
}

Comments

Sign in to comment.
guest598594   -  Sep 04, 2007
on *:TEXT:!sniper*:#: {
  set %fate ass hand head foot chest leg knee
  describe $chan loads the Barrett M107 .50 Caliber sniper rifle.
  .timer 1 1 describe $chan gets in sniper postition.
  .timer 1 3 describe $chan is exactly $r(1,4) $+ . $+ $r(1234,5678)) miles away
  if ($2 ison $chan) {
    .timer 1 5 describe $chan finds his target, $2 
    .timer 1 7 describe $chan pulls the trigger.
    .timer 1 8 describe $chan hits $2 in the $gettok(%fate,$r(1,7),32)
    .timer 1 10 describe $chan owns $2 $+ .  Too bad nobody liked $2 $+ .
  }
  elseif ($2 !ison $chan) {
    set %target $nick($chan,$r(1,$nick($chan,0)))
    .timer 1 5 describe $chan finds his target, %target
    .timer 1 7 describe $chan pulls the trigger.
    .timer 1 8 describe $chan hits %target in the $gettok(%fate,$r(1,7),32)
    .timer 1 10 describe $chan owns %target $+ .  Too bad nobody liked %target $+ .
  }
}

if you dont supply $2, it picks a random nick from the channenl to set as the target :P

also instead of all those if fate ==... it put all the body parts in a variable and picks a random token from that variable

 Respond  
guest598594   -  Sep 03, 2007

good job for ur first script

 Respond  
FRISH   -  Sep 03, 2007

he ment the code will only work if theres a second work

on *:TEXT:!sniper*:#: {
  if $2 {
  <rest of code>
  }
}

it can still work like if ya do \"!sniper an_apple_tree\" even if their not in the channel.
It just wont spam the channel when ya do \"!sniper\"

 Respond  
buckshot987   -  Sep 03, 2007

i wanted it so it can shoot anybody
so like they do not have to say the whole nick of a person

 Respond  
Ghost-lit Warder   -  Sep 03, 2007

You should probably add an \'if ($2) {\' so that people make sure to add an actual nick. Otherwise you are flooding the script with no target. ;)

 Respond  
Scakk   -  Sep 03, 2007

I like randomness in damages so I change the damage line to be the below

.timer 1 3 describe $chan is exactly $($r(1,4) $+ . $+ $r(1234,5678)) miles away
 Respond  
Scakk   -  Sep 03, 2007

@ Godzilla - Since he set the variable first the random location does work. I tested it to check it out and it did.

 Respond  
Godzilla   -  Sep 02, 2007

it should be (%fate == 1) { timer 1 8 blah blah }
and so on till 7..

 Respond  
buckshot987   -  Sep 02, 2007

edited ty.

 Respond  
Ghost-lit Warder   -  Sep 02, 2007

Nice job. Remove the /\'s in front of the describe\'s.

 Respond  
buckshot987   -  Sep 02, 2007

k i will
ty

 Respond  
Akishoot   -  Sep 02, 2007

Nicely done for being your first script. One thing I recommend is replacing the /\'s in front of the timers, with .\'s. :)

 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.