Broadcast problem..

fa1thDEV

Baron
Customer
We all know that Broadcast is for forcing information and showing it to everyone... but I've tried to hide the information from others and only see my own information. Does anyone understand the logic behind how to achieve this?

Does it exist? Or does it need to be created from scratc


Java:
    public void broadcastCharInfo() {
        this.broadcastUserInfo(false);
    }

    public void broadcastUserInfo(boolean var1, UserInfoType... var2) {
        this.sendUserInfo(var1, var2 != null && var2.length > 0 ? var2 : UserInfoType.VALUES);
        if (this.isVisible() && !this.isInvisible()) {
            if (Config.BROADCAST_CHAR_INFO_INTERVAL == 0L) {
                var1 = true;
            }

            if (var1) {
                if (this._broadcastCharInfoTask != null) {
                    this._broadcastCharInfoTask.cancel(false);
                    this._broadcastCharInfoTask = null;
                }

                this.broadcastCharInfoImpl();
            } else if (this._broadcastCharInfoTask == null) {
                this._broadcastCharInfoTask = ThreadPoolManager.getInstance().schedule(new BroadcastCharInfoTask(), Config.BROADCAST_CHAR_INFO_INTERVAL);
            }
        }

    }
 
What are you trying to achieve ? Send yourself system message or you want to show chat message but just to yourself ?
 
We all know that Broadcast is for forcing information and showing it to everyone... but I've tried to hide the information from others and only see my own information. Does anyone understand the logic behind how to achieve this?

Does it exist? Or does it need to be created from scratc


Java:
    public void broadcastCharInfo() {
        this.broadcastUserInfo(false);
    }

    public void broadcastUserInfo(boolean var1, UserInfoType... var2) {
        this.sendUserInfo(var1, var2 != null && var2.length > 0 ? var2 : UserInfoType.VALUES);
        if (this.isVisible() && !this.isInvisible()) {
            if (Config.BROADCAST_CHAR_INFO_INTERVAL == 0L) {
                var1 = true;
            }

            if (var1) {
                if (this._broadcastCharInfoTask != null) {
                    this._broadcastCharInfoTask.cancel(false);
                    this._broadcastCharInfoTask = null;
                }

                this.broadcastCharInfoImpl();
            } else if (this._broadcastCharInfoTask == null) {
                this._broadcastCharInfoTask = ThreadPoolManager.getInstance().schedule(new BroadcastCharInfoTask(), Config.BROADCAST_CHAR_INFO_INTERVAL);
            }
        }

    }
Э
We all know that Broadcast is for forcing information and showing it to everyone... but I've tried to hide the information from others and only see my own information. Does anyone understand the logic behind how to achieve this?

Does it exist? Or does it need to be created from scratc


Java:
    public void broadcastCharInfo() {
        this.broadcastUserInfo(false);
    }

    public void broadcastUserInfo(boolean var1, UserInfoType... var2) {
        this.sendUserInfo(var1, var2 != null && var2.length > 0 ? var2 : UserInfoType.VALUES);
        if (this.isVisible() && !this.isInvisible()) {
            if (Config.BROADCAST_CHAR_INFO_INTERVAL == 0L) {
                var1 = true;
            }

            if (var1) {
                if (this._broadcastCharInfoTask != null) {
                    this._broadcastCharInfoTask.cancel(false);
                    this._broadcastCharInfoTask = null;
                }

                this.broadcastCharInfoImpl();
            } else if (this._broadcastCharInfoTask == null) {
                this._broadcastCharInfoTask = ThreadPoolManager.getInstance().schedule(new BroadcastCharInfoTask(), Config.BROADCAST_CHAR_INFO_INTERVAL);
            }
        }

    }
You won't be able to grasp the full depth of the broadcast and how the notification of other players about new or old modified objects works as a whole.
In short, we have a region system.
This system is far more complex than writing scripts and AI.
 
Back
Top