View Single Post
  #2  
Old 11-28-2009, 12:28 PM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default

This script could easily be modified to support multiple guilds on the server.

instead of using this line for a one guild setup:

Code:
elsif ($text=~/Interested/i)
		{
			quest::setguild(1,0);
			quest::say("Welcome to the guild $name!");
		}
You could modify it for each guild like so:

Code:
elsif ($text=~/Guild1/i)
		{
			quest::setguild(1,0);
			quest::say("Welcome to the guild $name!");
		}

elsif ($text=~/Guild2/i)
		{
			quest::setguild(2,0);
			quest::say("Welcome to the guild $name!");
		}

elsif ($text=~/Guild3/i)
		{
			quest::setguild(3,0);
			quest::say("Welcome to the guild $name!");
		}
and so on... Of course you would have to change the intro text to support the new guild names.

the quest::setguild(x,y); command uses the "x" value as the guild ID on the server, which you can find with the GM command #guilds list. The "y" value is the guild status so 0 is member, 1 is officer. You probably want to keep the "y" value as 0 since the bot is auto-inviting members.
Reply With Quote