Non-Case Sensitive Listen Rezzer
Heh, long title. With this script you can rez objects at the set coordanates through chat. But, the special thing is that its non-case sensitive so you can say your command in any case and it will still work. Any problems? Just fix it or IM me in world with the problem!
Offset Coordanates From Objects Version
Spacific Regonal Coordanates
//Deluxe Listen Rezzer
//Created By : Chasingred3 Ixtab
//Created For : Zippo Nabob
//No need to type in the right CaSe to make your
//Commands to work :)
integer channel = 0;//What channel you want it to listen on
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////1st Object Info////////////////////////////
////////////////////////////////////////////////////////////////////////////
string object1command = "rez object1"; /////////////////////////////////
string object1Name = "Object1";//First objects name/////////////////////
vector object1Pos = <0,0,0>;//First Objects Position Cordanates////////
rotation object1rotation = <0,0,0,1>;//First Objects Rotation///////////
////////////////////////////////////////////////////////////////////////////
//==========================================================================
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////2nd Object Info////////////////////////////
////////////////////////////////////////////////////////////////////////////
string object2command = "rez object2"; /////////////////////////////////
string object2Name = "Object1";//Objects name/////////////////////
vector object2Pos = <0,0,0>;//Objects Position - Cordanates////////
rotation object2rotation = <0,0,0,1>;//Objects Rotation///////////
///////////////////////////////////////////////////////////////////////
//==========================================================================
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////3nd Object Info////////////////////////////
////////////////////////////////////////////////////////////////////////////
string object3command = "rez object3"; /////////////////////////////////
string object3Name = "Object3";//Objects name/////////////////////
vector object3Pos = <0,0,0>;//Objects Position - Cordanates////////
rotation object3rotation = <0,0,0,1>;//Objects Rotation///////////
///////////////////////////////////////////////////////////////////////
//==========================================================================
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////4th Object Info////////////////////////////
////////////////////////////////////////////////////////////////////////////
string object4command = "rez object4"; /////////////////////////////////
string object4Name = "Object4";//objects name/////////////////////
vector object4Pos = <0,0,0>;//Objects Position - Cordanates////////
rotation object4rotation = <0,0,0,1>;//Objects Rotation///////////
///////////////////////////////////////////////////////////////////////
//==========================================================================
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////5th Object Info////////////////////////////
////////////////////////////////////////////////////////////////////////////
string object5command = "rez object5"; /////////////////////////////////
string object5Name = "Object5";//Objects name/////////////////////
vector object5Pos = <0,0,0>;//Objects Position - Cordanates////////
rotation object5rotation = <0,0,0,1>;//Objects Rotation///////////
///////////////////////////////////////////////////////////////////////
//==========================================================================
//Please, Dont touch anything down here :P
//==========================================================================
//==========================================================================
//==========================================================================
string obj1 = "";
string obj2 = "";
string obj3 = "";
string obj4 = "";
string obj5 = "";
default
{
state_entry()
{//llGetOwner --- NULL_KEY
llListen(channel, "", llGetOwner(), "");
obj1 = llToLower(object1command);
obj2 = llToLower(object2command);//Changes all commands to
obj3 = llToLower(object3command);//lower case
obj4 = llToLower(object4command);
obj5 = llToLower(object5command);
}
listen(integer channel, string name, key id, string message)
{
string cmd;
cmd = llToLower(message);//Turnes what YOU say to lower
//case letters
if(cmd == obj1)
{
llRezObject(object1Name, object1Pos, ZERO_VECTOR, object1rotation, 42);
}
if(cmd == obj2)
{
llRezObject(object2Name, object2Pos, ZERO_VECTOR, object2rotation, 42);
}
if(cmd == obj3)
{
llRezObject(object3Name, object3Pos, ZERO_VECTOR, object3rotation, 42);
}
if(cmd == obj4)
{
llRezObject(object4Name, object4Pos, ZERO_VECTOR, object4rotation, 42);
}
if(cmd == obj5)
{
llRezObject(object5Name, object5Pos, ZERO_VECTOR, object5rotation, 42);
}
}
}
llRezObject |
llToLower |
llListen |