Jump to content

Kroket

Members
  • Posts

    52
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Kroket's Achievements

Advanced Member

Advanced Member (3/3)

0

Reputation

  1. Looks very nice, i have a site just like this but ofcourse mine is no framework but it also got a Template Engine. Does yours also have a Database & Site Engine?
  2. noshit, but how with scriptdev2?
  3. Im creating a donator shop via Gossip and would like to display text such as item information, price etc as normal text and not a menu item. How would i do that?
  4. Are you sure? few years ago when i had an arcemu server i managed to add it infront of the player name. There also was this server that added people's country code infront of their name (if im not mistaken).
  5. AH ok, i thought i would attempt to make a global world channel.
  6. if(ChannelMgr* cMgr = channelMgr(GetTeam())) { if(Channel *chn = cMgr->GetJoinChannel("GLOBAL", 0)) { chn->Join(GetGUID(), NULL); chn->SetAnnounce(true); chn->Announce(GetGUID()); chn->Say(GetGUID(), "Hi everyone!", 0); } } The player joins the channel but: #1 it doesnt get announced. #2 cannot send any messages in that channel.
  7. if(type == CHAT_MSG_SAY) { if(GetPlayer()->isDonator()) msg.insert(0, "[Donator] "); GetPlayer()->Say(msg, lang); } But now it appears INFRONT of the message and not infront of the player name.
  8. void Player::Say(const std::string& text, const uint32 language) { WorldPacket data(SMSG_MESSAGECHAT, 100); if(isDonator()) text.insert(0, "[Donator] "); BuildPlayerChat(&data, CHAT_MSG_SAY, text, language); SendMessageToSetInRange(&data,sWorld.getConfig(CONFIG_FLOAT_LISTEN_RANGE_SAY),true); }
  9. Sure, you can close this btw
  10. ..\\..\\src\\game\\Player.cpp(15796) : error C2663: 'std::basic_string<_Elem,_Traits,_Ax>::insert' : 10 overloads have no legal conversion for 'this' pointer 2> with 2> [ 2> _Elem=char, 2> _Traits=std::char_traits<char>, 2> _Ax=std::allocator<char> 2> ]
  11. Cool! i will try it.
  12. I tried: void Player::Say(const std::string& text, const uint32 language) { WorldPacket data(SMSG_MESSAGECHAT, 100); if(isDonator()) { std::string prefix = "[Donator] "; data << prefix.length()+1; data << prefix; } BuildPlayerChat(&data, CHAT_MSG_SAY, text, language); SendMessageToSetInRange(&data,sWorld.getConfig(CONFIG_FLOAT_LISTEN_RANGE_SAY),true); } But that wont work.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use