Hi Im quite new to scripting been doing it awhile and i've managed to get what i needed working but now i run into a wall.
what i want to do is with a script cast def spells on people comming and asking for it but only to people in the variable
this is what i've been trying to do but it wont work:
sub doRess (name, output, argv)
Dim who
Dim friends
Dim friendlist
who = argv(1)
friends = World.getVariable ("friends")
friendlist = Split(friends,"|")
if who = ("friendlist") then
World.Send "cast summon player ghost " & who & " "
World.doAfter 3, "cast resurrect " & who & " "
World.doAfter 5.2, "cast lolths sanctification " & who & " "
else
world.send "tell " & whot & " sorry no ress"
End if
End sub
any suggestions?
/Giz
what i want to do is with a script cast def spells on people comming and asking for it but only to people in the variable
this is what i've been trying to do but it wont work:
sub doRess (name, output, argv)
Dim who
Dim friends
Dim friendlist
who = argv(1)
friends = World.getVariable ("friends")
friendlist = Split(friends,"|")
if who = ("friendlist") then
World.Send "cast summon player ghost " & who & " "
World.doAfter 3, "cast resurrect " & who & " "
World.doAfter 5.2, "cast lolths sanctification " & who & " "
else
world.send "tell " & whot & " sorry no ress"
End if
End sub
any suggestions?
/Giz