Can't see chat... menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    XxCyanidexX's Avatar Member
    Reputation
    56
    Join Date
    Nov 2008
    Posts
    138
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    I have recently added an event system script to my server (similar to the one by CoolManBoB). It works just fine, but when I try to say something other than one of the event commands, I cannot see it, nor can anyone else.

    Here is the script:

    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    #include <string>
    #include <iostream>
    using namespace std;
    
    //If set to true, will enable players to #event while in combat
    static bool bypassCombat = false;
    bool rezzon = false; //Will be switchable later ingame via GMCommand
    
    static string evon = "#eventstart";
    static string evoff = "#eventend";
    static string evpPlayer = "#join";
    static string rezzcmd = "#revive";
    static string mall = "#leave";
    
    //Default Values
    static bool eon = false;
    static uint32 emapid = 0;
    static float ex = 0.0f;
    static float ey = 0.0f;
    static float ez = 0.0f;
    
    void EventChat(Player * pPlayer, uint32 Type, uint32 Lang, const char * Message, const char * Misc)
    {
    if(Message == evon && pPlayer->GetSession()->HasGMPermissions())
    {
    eon = true;
    ex = pPlayer->GetPositionX();
    ey = pPlayer->GetPositionY();
    ez = pPlayer->GetPositionZ();
    emapid = pPlayer->GetMapId();
    char message[200];
    sprintf(message, "%s has started an event! Type #join to join!", pPlayer->GetName());
    sWorld.SendWorldWideScreenText(message);
    }
    else if(Message == evoff && pPlayer->GetSession()->HasGMPermissions())
    {
    eon = false;
    char message[200];
    sprintf(message, "Summons to the event are now closed.", pPlayer->GetName());
    sWorld.SendWorldWideScreenText(message);
    }
    else if(Message == evpPlayer)
    {
    if(eon)
    if(bypassCombat || !pPlayer->CombatStatus.IsInCombat())
    pPlayer->EventTeleport(emapid, ex, ey, ez);
    else
    pPlayer->BroadcastMessage("You can't port while in combat.  Please leave combat and try again.");
    else
    pPlayer->BroadcastMessage("There is no event goin on at the moment.");
    }
    else if(Message == home)
    {
    if(pPlayer->getRace()== 10||pPlayer->getRace()== 2||pPlayer->getRace()== 6||pPlayer->getRace()== 8||pPlayer->getRace()== 5)
    pPlayer->EventTeleport(1, 1502.709961, -4415.419922, 21.553234);
    else
    pPlayer->EventTeleport(0, -8913.230469, 554.632996, 93.795029);
    }
    //#rezz-Command - Start
    if(Message == rezzcmd)
    {
    if(rezzon)
    if( rezzon )
    { //You can add parameters where reviing is enabled here. e.g. for allowing it only on kalimdor and in Zone 123: (pPlayer->GetMapId() == 1 || pPlayer->GetZoneId() == 123)
    if(bypassCombat || !pPlayer->CombatStatus.IsInCombat())
    if (pPlayer->GetUInt32Value(PLAYER_FIELD_COINAGE)>=7500) //Will cost 75 Silver (check if enough money)
    {
    pPlayer->SetUInt32Value(PLAYER_FIELD_COINAGE,(pPlayer->GetUInt32Value(PLAYER_FIELD_COINAGE) - 7500)); //Here 75 Silver is removed
    sEventMgr.AddEvent(pPlayer, &Player::RemoteRevive, EVENT_PLAYER_REST, 1, 1,0);
    } else pPlayer->BroadcastMessage("You don't have 75 silver in your backpack.");
    } else
    pPlayer->BroadcastMessage("Your in combat!");
    else
    pPlayer->BroadcastMessage("You can't revive here!.");
    }
    //#rezz-Command end.
    
    //#mall-Command - Start
    if(Message == evpPlayer)
    {
    if(bypassCombat || !pPlayer->CombatStatus.IsInCombat())
    pPlayer->EventTeleport(emapid, ex, ey, ez);
    else
    pPlayer->BroadcastMessage("You can't port while in combat.");
    }
    else if(Message == mall)
    {
    if( pPlayer->GetTeam() == 1 )
    pPlayer->EventTeleport(530, -1722.58, 5382.7, 2.47504); //Shattrath
    else
    pPlayer->EventTeleport(530, -1722.58, 5382.7, 2.47504); //Shattrath
    }
    }
    
    
    
    void SetupEvent(ScriptMgr * mgr)
    {
    mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, &EventChat);
    }
    Whoever finds out whats wrong and helps me correct it gets +Rep.




    Thanks
    Last edited by XxCyanidexX; 03-06-2009 at 12:53 AM.

    Can't see chat...
  2. #2
    alj03's Avatar Contributor
    Reputation
    91
    Join Date
    Feb 2008
    Posts
    1,103
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe its your addons? it happens to me.
    Death to all but Metal.

  3. #3
    Azshaz's Avatar Member
    Reputation
    7
    Join Date
    Feb 2009
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it other players messages, GameMaster announces, or both?

    Try to clear your cache and see if that does anything.

  4. #4
    XxCyanidexX's Avatar Member
    Reputation
    56
    Join Date
    Nov 2008
    Posts
    138
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Azshaz View Post
    Is it other players messages, GameMaster announces, or both?

    Try to clear your cache and see if that does anything.
    I cant see any messages, or use any commands. The whole chat system is not working besides the event commands in the script. I have seen many other servers with an OnChat hook, and they do not have this problem. I have restarted the server, deleted my cache, all of that stuff but it sill does not work.

  5. #5
    axxo135's Avatar Member
    Reputation
    3
    Join Date
    Nov 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Had same problem (addon)
    just run repair and delete interface folder :P

Similar Threads

  1. Can I see who I opened a chat with?
    By beyou in forum Wildstar Memory Editing
    Replies: 1
    Last Post: 07-06-2014, 04:54 AM
  2. Guests Can't see forums
    By dude891 in forum Suggestions
    Replies: 2
    Last Post: 02-28-2008, 12:21 PM
  3. [Help] I can't see the creature's I've spawned in creature_spawns.
    By Ebon in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-02-2008, 03:20 PM
  4. can someone see if my website is public
    By cjwilson in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-31-2007, 04:28 PM
  5. [PROGRAM] After a long wait , we can now see models on Mac !!!
    By Flying Piggy in forum World of Warcraft Model Editing
    Replies: 10
    Last Post: 06-06-2007, 01:36 PM
All times are GMT -5. The time now is 11:41 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search