I wrote this function, and didn't implement something to handle duplicate quest names. If roleplaying names aren't important to you, you can make the name something like "SoAndSo's cleric" to work around duplicates. Otherwise, you could use a qglobal to flag the char to be able to create a bot and prompt them for a name (eg. /say call my bot AwesomeBot, and use a regular expression to extract 'AwesomeBot'), check if the bot was created successfully, and clear the global if it was.
You could also modify the function to append _00n if a duplicate name is found, but that would take more work than I have time for right now.
|