• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Adress

Newbie Spellweaver
Joined
Sep 26, 2011
Messages
77
Reaction score
2
What address displayed message for everyone? Example: / damage, damage to all the shows.
zChatOutPut the only shows for those who are activating the command
 
Newbie Spellweaver
Joined
Jan 23, 2012
Messages
9
Reaction score
27
Depends on where you are.

ZPostPeerChat = battle
ZPostChannelChat = channel
ZPostStageChat = stage

You'll need to check where the player(s) are at before, such as;

Code:
if( pMyChar->nPlace == MMPL_LOBBY )
    ZPostChannelChat( pMyChar->GetUID(), szMsgBuff );
else if( pMyChar->nPlace == MMPL_STAGE )
    ZPostStageChat( pMyChar->GetStageUID(), pMyChar->GetUID(), szMsgBuff );
else if( pMyChar->nPlace == MMPL_BATTLE )
    ZPostPeerChat( pMyChar->GetUID(), szMsgBuff );

Note; function parameters may be different. I haven't messed with GunZ in years so this may not be 100% on.
 
Upvote 0
Newbie Spellweaver
Joined
Sep 26, 2011
Messages
77
Reaction score
2
Contradict
ZPostPeerChat and zPostStage chat,inside the room? I'm bad English
 
Upvote 0
Newbie Spellweaver
Joined
Jan 23, 2012
Messages
9
Reaction score
27
....? ZPostPeerChat will chat inside the game (Team DeathMatch, Quest, etc.)
ZPostStageChat will chat inside the actual stage (not in game).
 
Upvote 0
Back
Top