I can't find solution for that:

Now i make a bot, and one of his command is: !weapon

I have a directory: /weapons/
Those content:

knife.txt - ID 1
pistol.txt - ID 2
fork.txt - ID 3

The ID is on the line 15

If someone writes !weapon 2 need to check all files in the /weapons/ directory..
And if find the ID then set %find_id 2 set %murder pistol

And then i will check
if ($1 == %find_id) { msg $nick the murder is: %murder and the murder's id is %find_id
} else { msg $nick can't find murder..
}


[color:red]m[color:blue]IRC[color:green] for EvEr