Hello guys. I try send EntityEventPacket. But it dont send. My code; PHP: $pk = new EntityEventPacket(); $pk->entityRuntimeId = Entity::$entityCount++; $pk->event = EntityEventPacket::CONSUME_TOTEM; $pk->data = 0; $player->dataPacket($pk); Anybody help me?
PHP: $EidOfMyEntity = $player->getId(); $pk = new EntityEventPacket(); $pk->entityRuntimeId = $EidOfMyEntity; $pk->event = EntityEventPacket::CONSUME_TOTEM; $pk->data = 0; $player->dataPacket($pk);
can it be necessary to have the object in hand? I do not know how this kind of thing works, I can not help you on that .. if you want to get something on the screen of the player trying to make appear the head of a guardian? EntityEventPacket::ELDER_GUARDIAN_CURSE