Sol Reklam
Sağ Reklam
What's new

Chat Pm Plugin

KONU YAZAR

Sarpov

New member
Onaylı Üye
Apr
14
13
1



The shout gesture is a mini edit that will allow you to open your Whisper window when you click directly on the nick without adding any text like [PM]


Python:


game/input_main.cpp search:

int len = snprintf (chatbuf, sizeof (chatbuf), "% s:% s", ch-> GetName (), buf);

change:

int len;

if (pinfo-> type == CHAT_TYPE_SHOUT)

{len = snprintf (chatbuf, sizeof (chatbuf), "| Hmsg:% s | h% s | h | r:% s", ch-> GetName (), ch-> GetName (), buf);}
else
{len = snprintf (chatbuf, sizeof (chatbuf), "% s:% s", ch-> GetName (), buf);}

root/interfaceModule.py open search:

if "item" == type:

self.hyperlinkItemTooltip.SetHyperlinkItem (tokens)

add below(be careful with tab setting):

elif "msg" == type and str (tokens [1])! = Player.GetMainCharacterName ():

self.OpenWhisperDialog (str (tokens [1]))

Syntax syseri atarsa Player.GetMainCharacterName kodunu player.GetMainCharacterName şekilde değiştirin.​
 
Back
Top