My first calc script

By Mudkipz on Mar 07, 2008

Hey, this was like my second script, iv seen other people's calc and its more complicated, unlike mine, its just a simple little script that a newbie can make(proven by me =))

;;;;;;;;;;;;;;;;;;;;;
;Mudkipz calc script;
;Privet Calculator;;;
;;;;;;;;;;;;;;;;;;;;;
on *:TEXT:!calc*:#: {
  { notice $nick 3,15Calculating $2... 3,15 $2 = $calc($2-)  }
if ($2 == $null) notice $nick 3,15Sorry, you didnt supply an equasion to calculate | halt }
}

Comments

Sign in to comment.
Mudkipz   -  Mar 07, 2008

yeah, tbh i didnt expect a reply so fast =p but ty, yeah i went over all my scripts after i posted it becuase they stoped working =p and removed all the mismatches

 Respond  
napa182   -  Mar 07, 2008

you dont need the halt and you seem to have a bracket mis-match
maybe try...

on *:TEXT:!calc*:#: {
  if (!$2-) { .notice $nick 3,15Sorry, you didnt supply an equasion to calculate }
  else { .notice $nick 3,15Calculating $2- $+ ... 3,15 $2- = $calc($2-)  }
}

but nice work keep it up =)

 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.