EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   How do I make this work ? (.pl) (https://www.eqemulator.org/forums/showthread.php?t=27029)

Producer_BMW 12-18-2008 08:25 PM

How do I make this work ? (.pl)
 
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:

Code:

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);
                }
        }



All times are GMT -4. The time now is 02:12 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.