Author Topic: Bot Hole Text Name for Event  (Read 5924 times)

I wrote some the script aslo rip it off from Bot hole, Brick text and Bot Gear. I put some lines together. I not see any error or bugs, it should be work. I check out the console log didn't say error. I am going post my script lines below.

Quote
registerOutputEvent("fxDTSBrick","setBotText","string 30 100");
registerOutputEvent("fxDTSBrick","setBotTextColor","int 0 255" TAB "int 0 255" TAB "int 0 255");

function fxDtsBrick::setBotText(%brick,%name,%bot)
{
   if(isObject(%brick.hBot))
      %brick.hBot.SetShapeName(%name);
}
function fxDtsBrick::setBotNameColor(%bot,%r,%g,%b)
{
   if(isObject(%brick.hBot))
      %brick.hBot.SetShapeNameColor(%r/255 SPC %g/255 SPC %b/255);
}

function fxDTSBrick::onBotSpawn(%obj)
{
   %client = %obj.getGroup().client;
   $InputTarget_["Self"]   = %obj;
   $InputTarget_["Bot"]   = %obj.hBot;
   // $InputTarget_["MiniGame"] = getMiniGameFromObject(%obj);

   %obj.processInputEvent("onBotSpawn", %client);
}
registerInputEvent("fxDTSBrick", "onBotSpawn", "Self fxDTSBrick" TAB "Bot Bot");// TAB "MiniGame MiniGame"

datablock StaticShapeData(BrickTextEmptyShape)

{

        shapefile = "base/data/shapes/empty.dts";

};

function fxDtsBrick::BotHoleText(%this,%name,%color,%distance,%client)

{

        %bot = %client.bot;

        //%Color = "getColorIDTable";

        %color = getColorIDTable(%color); // Better way for Colors

        

        if(isFunction("FilterVariableString"))

        {

            %name = filterVariableString(%name,%this,%client,%bot);

        }

        

        if(isObject(%this.textShape))

        {

                %this.textShape.setShapeName(%name);

                %this.textShape.setShapeNameColor(%color);        

                %this.textShape.setShapeNameDistance(%distance);

                %this.botholetext = %name;

        }

        else

        {

                %this.botholetextShape = new StaticShape()

                {

                        datablock = botholeTextEmptyShape;

                        position = vectorAdd(%this.getPosition(),"0 0" SPC %this.getDatablock().botholetextSizeZ/9 + "0.166");

                        scale = "0.1 0.1 0.1";

                };

                %this.botholetextShape.setShapeName(%name);

                %this.botholetextShape.setShapeNameColor(%color);        

                %this.botholetextShape.setShapeNameDistance(%distance);

                %this.botholetext = %name;

        }

}

function botholetext(%obj,%name, %bot)
         {
            %playerpos = %obj.getEyeTransform();
            %bot.settransform(%playerpos);
            %bot.setShapeName("");
            schedule(1,0,%obj);
         }
Detail- The Text put above on Bot's head with text name.
« Last Edit: December 01, 2014, 09:06:42 PM by Furling² »

Insight for others:

6:23 PM - Adam487: you can't change bots shape name
6:23 PM - Adam487: badspot blocked the function from working
6:23 PM - Furling: no, It got worked on Gear bot. I am going gvie you the link and you should look at.
6:24 PM - Furling: http://forum.blockland.us/index.php?topic=237082.0
6:25 PM - Furling: Badspot never block it
6:30 PM - Adam487: yes he did
6:31 PM - Adam487: what that addon does
6:31 PM - Adam487: is create a staticshape, put the shapename on that
6:31 PM - Adam487: and continously set the staticshape's position to the bot's position
6:31 PM - Adam487: it's a cheap workaround, looks laggy, and i don't feel like doing it

The setShapeName for bots and players is locked. The way how Gear did it was using an insane loop of an empty item with a shape name on it. You are obviously able to set the shape name on players and bots if you figure out the password for (AI)Player::setShapeName(%obj,%name,%password)

The setShapeName for bots and players is locked. The way how Gear did it was using an insane loop of an empty item with a shape name on it. You are obviously able to set the shape name on players and bots if you figure out the password for (AI)Player::setShapeName(%obj,%name,%password)
Fun fact: if you give out the password you'll probably be banned. If you manage to figure out what it is, keep it to yourself and don't give it out.

That for event to create name on the bot. Also I went to Elm's server, I saw them, They are so cool!

That for event to create name on the bot. Also I went to Elm's server, I saw them, They are so cool!

 :cookieMonster:

:cookieMonster:
You are welcome, How you did made your bot with text name and while they are walking?

You are welcome, How you did made your bot with text name and while they are walking?
He likely figured out the setShapeName password and used that.
If not, he probably asked someone what it is.
However, you'll likely get banned if you release the key if you somehow get your hands on it.

He likely figured out the setShapeName password and used that.
If not, he probably asked someone what it is.
However, you'll likely get banned if you release the key if you somehow get your hands on it.
Does Badspot say that? I would like read his post.

Does Badspot say that? I would like read his post.
Not sure but there is a reason why he had put a code on it.
It used to be unlocked for anyone to use but in v13/14 ( not sure which ) it was required a code to use.
Also don't bother trying to package it to figure it out as that doesn't work. I've tried before.

Not sure but there is a reason why he had put a code on it.
It used to be unlocked for anyone to use but in v13/14 ( not sure which ) it was required a code to use.
Also don't bother trying to package it to figure it out as that doesn't work. I've tried before.
Aide33 did figure out without the password.

Aide33 did figure out without the password.
I meant to figure out the password for setShapeName on Players and AIPlayers.
What you want to do is possible as stated by others.
It just looks messy.

I meant to figure out the password for setShapeName on Players and AIPlayers.
What you want to do is possible as stated by others.
It just looks messy.
That why I need make event for create name put on bot's head above of text as allow player can create thier own name put on bot's head of text. But one thing need disable one name is Badspot. Cuz Badspot not like anyone put his name on Bot. Once when the script are finish then I will put encrypt put on the script, so no one able crack it open the file and edit the script. Make sure the script are full protect of encrypt.

Once when the script are finish then I will put encrypt put on the script, so no one able crack it open the file and edit the script. Make sure the script are full protect of encrypt.
Yeah that's not going to work
Plus there's no way badspot will allow an encrypted add-on to be posted
« Last Edit: December 03, 2014, 09:44:45 AM by Headcrab Zombie »

Yeah that's not going to work
Plus there's no way badspot will allow an encrypted add-on to be posted
Does Badspot said that?