All pastes #383771 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-06 16:39 UTC
rendered paste body
on *:text:?gratz *:#:{
if ($3 == $null) {
notice $nick Wrong syntax: ?gratz lvl skill
}
else {
if ($2 !isnum) {
notice $nick Wrong syntax: ?gratz lvl skill
}
elseif ($2 < 1) {
notice $nick Error: your lvl can't be lower than 1.
}
elseif ($2 > 99) {
notice $nick Error: your lvl can't be higher than 99.
}
else {
if ($3 != overall) || ($3 != attack) || ($3 != strength) || ($3 != defence) || ($3 != prayer) || ($3 != ranged) || ($3 != magic) || ($3 != hitpoints) || ($3 != mining) || ($3 != smithing) || ($3 != cooking) || ($3 != fishing) || ($3 != crafting) || ($3 != woodcutting) || ($3 != firemaking) || ($3 != runecrafting) || ($3 != construction) || ($3 != hunter) || ($3 != slayer) || ($3 != farming) || ($3 != thieving) || ($3 != agility) || ($3 != fletching) || ($3 != herblore) {
notice $nick Error: unknown skill.
}
else {
msg $chan Gratz $nick on getting $2 for $3 $+ !
}
}
}
}

- If you find any error, please post a correction of this script. - 

~~~Kakarot6~~~