Ok, I can't get this code to work. What I have I done wrong. I have tried it both ways below.
Code:
EVENT_SAY {
if ($1-=~ "Hail") { say("Hello $name . welcome to the Kunark translocation area. Do you wish to journey to [kunark]?") }
if ($1-=~ "kunark") { say("Very well, watch") cast($userid,2709) }
}
Code:
EVENT_SAY {
if ($1-=~ "Hail") { say("Hello $name . welcome to the Kunark translocation area. Do you wish to journey to [kunark]?") }
if ($1-=~ "kunark") { say("Very well, watch out") castspell($userid,2709) }
}
Any suggestions?