on *:TEXT:-fish:[color:red]#YourChannelHere[/color]:{
if (%noflood.fishhelp) {
set -u3 %noflood.fishhelp 1
.notice $nick Search syntax: -findfish <name>
}
}
on 10:TEXT:-addfish *:[color:red]#YourChannelHere[/color]:{
if (!$6) {
.notice $nick -fishadd missing parameters.
.notice $nick Syntax: -fishadd <name> <location> <month> <time> <money>
}
else {
writeini fish.ini $2 Location $3
writeini fish.ini $2 Month $4
writeini fish.ini $2 Time $5
writeini fish.ini $2 Money $6
.notice $nick Added $2 to the database.
}
}
on 10:TEXT:-remfish *:[color:red]#YourChannelHere[/color]:{
if ($readini(fish.ini,n,$2,Location)) {
remini fish.ini $2
.notice $nick Removed $2 from the database.
}
else {
.notice $nick No fish named $1
}
}
on *:TEXT:-findfish *:[color:red]#YourChannelHere[/color]:{
if (!%noflood.find) {
if ($readini(fish.ini,n,$2,Location)) {
set -u5 %noflood.find 1
.notice $nick The name of this fish is $2
.notice $nick The location of this fish is $readini(fish.ini,n,$2,Location)
.notice $nick The month that this fish appears is in $readini(fish.ini,n,$2,Month)
.notice $nick The time when this fish is catchable is $readini(fish.ini,n,$2,Time)
.notice $nick This fish is worth $readini(fish.ini,n,$2,Money) bells.
}
}
}