So i am trying to make this thing where i for example type
Linux warp me to earth
it should warp me there, I have some problems but i don't know what's wrong. this is my code
Code:
@name Linux
@inputs
@outputs
@persist
@trigger all
runOnChat(1)
if(first())
{
botSay("Linux", " ", vec(255,255,255) , "Starting up...")
botSay("Linux", " ", vec(255,255,255) , "Start up complete.")
}
if(owner():lastSaid() == "Linux hello")
{
botSay("Linux", " ", vec(255,255,255) , "Hello wapic i am ready to serve you")
}
if(owner():lastSaid() == "Linux analyze my ship")
{
botSay("Linux", " ", vec(255,255,255) , "Threat level: IT'S OVER 9000!!!")
}
if(owner():lastSaid() == "Linux play me music")
{
botSay("Linux", " ", vec(255,255,255), "playing music")
owner():soundPlay(1, 0, "Vision/one more night.mp3")
}
if(owner():lastSaid() == "Linux warp me to earth")
{
botSay("Linux", " ", vec(255,255,255) , "warp completed")
owner():teleport(vec(1173, 9463, 8080))
}
if(owner():lastSaid() == "Linux warp me to shakuras")
{
botSay("Linux", " ", vec(255,255,255) , "warp completed")
owner():teleport(vec(-5823.93, -3924.72, 7024.03))
}
16-11-2013, 05:37 AM, (This post was last modified: 16-11-2013, 06:07 AM by Wapic.)