PDA

View Full Version : How do I make this work ? (.pl)


Producer_BMW
12-18-2008, 08:25 PM
sub EVENT_SAY {

if ($text =~/hail/i {
quest:::say ("hello $name , Which guild would you like to be in [blood] or [crip].");
}

if ($text =~/blood/i {
quest:::say (" there you go");
quest::guild set $name (1);

}
}

just a ruff draft on how i want it to look this one was just done from memory
any heelp would be bad ass

Neiv
12-18-2008, 08:39 PM
You posted this in the wrong forum, and it will likely be move. But the corrected script would look like this:

sub EVENT_SAY
{
if($text=~/hail/i)
{
quest::say("hello $name , Which guild would you like to be in [blood] or [crip].");
}
if ($text =~/blood/i)
{
quest:::say("there you go");
quest::setguild(guild_id,rank);
}
}