Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnGetScriptCommands()
- {
- var ScriptCommands = "<ScriptCommands>";
- ScriptCommands += "<Command>";
- ScriptCommands += "<Name>sharem</Name>";
- ScriptCommands += "<Description>Send all your emoticons to your contact</Description>";
- ScriptCommands += "</Command>";
- ScriptCommands += "</ScriptCommands>";
- return ScriptCommands;
- }
- function OnEvent_ChatWndSendMessage(ChatWnd,Message)
- {
- if(Message.match(/^\/sharem( .*)?$/)){
- var ce = Messenger.CustomEmoticons;
- var e = new Enumerator(ce),em=[],x=1;
- while(!e.atEnd())
- {
- l=em.length;
- em[l] = e.item().Shortcut;
- if((x++)%5==0){
- ChatWnd.SendMessage(em.join(" "));
- em=[];
- }
- e.moveNext()
- }
- return em.join(" ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement