Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:!spy*:#:{
- if ($1 == !spyadd) && ($regex($3-,/(level|speed|strength|defense|dexterity|total)\x3a\x20([\d\x2c\x2e]+)/ig)) && $regml(10) {
- set -l %num 1
- while ($regml(%num)) {
- inc %num
- writeini $scriptdirspy.ini $2 $v1 $regml(%num)
- inc %num
- }
- msg $chan $2 $+ 's 3stats added to the database!
- }
- elseif ($1 == !spyadd) msg $chan 4Sorry something is missing, the proper format is "!spyadd <nick> speed: $chr(35) strength: $chr(35) defense: $chr(35) dexterity: $chr(35) level: $chr(35) total: $chr(35) $+ " the order of the four stats is not important.
- elseif ($1 == !spy) && ($readini($scriptdirspy.ini,$2,speed)) {
- msg $chan 6 $+ $2 $+ 's stats are:
- msg $chan 6Speed: $readini($scriptdirspy.ini,$2,speed)
- msg $chan 6Strength: $readini($scriptdirspy.ini,$2,strength)
- msg $chan 6Defense: $readini($scriptdirspy.ini,$2,defense)
- msg $chan 6Dexterity: $readini($scriptdirspy.ini,$2,dexterity)
- msg $chan 6Level: $readini($scriptdirspy.ini,$2,level)
- msg $chan 6Total: $readini($scriptdirspy.ini,$2,total)
- }
- elseif ($1 == !spy) && ($2) msg $chan 4sorry $2 is not in the database!
- elseif ($1 == !spy) msg $chan 4You need a nick for me to look up anything silly.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement