Author Topic: Player Emitter  (Read 625 times)

Is there a way to make a setplayeremitter event? If so, how?..This is what I got done. I'm not sure if it's right..

Code: [Select]
registerOutputEvent(Player,setPlayerEmitter,"dataBlock Emitter",0);

package playerEmitter
{
 function Player::emote(%this,%emote,%skipSpamProtect)
 {
   %this.emote(%emote);
  Parent::emote(%this,%emote,%skipSpamProtect);
 }
};
activatePackage(playerEmitter);
(EDITED)
« Last Edit: November 20, 2012, 06:42:12 PM by Advanced Bot »

Four problems I see right away.

One, you have a pair of braces without an actual statement "{ %this.emote(%emitter) }"
Two, "%this.emote(%emitter)" would cause an infinite loop, if not for the fact that...
Three, "%this.emote(%emitter);" is missing an ending semicolon.
Four, %emitter is never defined to start with.

So would it be %emote instead of %emitter?

You're just calling the same function again while dropping an argument because you don't know what it does.
Then you call the function again. And again. And again. And again. And again.

Line 1   function (%this).emote(%emote, %skipSpamProtect)   //Hey moron wannabe who tries to correct this: Pseudocode.
Line 2   {
Line 3      %this.emote(%emote);   //Goes back to line 1.
Line 4      Parent::emote(%this, %emote, %skipSpamProtect);   //This line is never reached. Ever.
Line 5   }
« Last Edit: November 20, 2012, 06:57:19 PM by Xalos »