Item Linking. menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Schuetrumpf2's Avatar Private
    Reputation
    1
    Join Date
    Apr 2012
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Item Linking.

    Does anyone know the first character of a link as parsed by SendChatMessage? I don't mean a link like \124Hitem:12345\124h[Item]\124h. I mean a shift-clicked link. I am attempting to re-write the script for the ColorMe addon but my script breaks shift-linking spells/items/etc. So far, everything else is supported. Commands, / commands (mainly /afk), etc.

    I've tried using if string.sub(msg,1,1)=="\\", if string.sub(msg,1,4)=="\124", if string.sub(msg,1,1)=="|", and if string.sub(msg,1,1)=="[" but nothing seems to be picked up.

    I tried doing
    Code:
    /script if (not scm) then scm=SendChatMessage end; function SendChatMessage(msg,type,lang,chan) scm(string.sub(msg,1,5),type,lang,chan) end
    to get it to return the first 5 characters of the link, but all it seemed to do was send a null string. When I did the same thing using print() instead of scm(), it would show something like "|cff", "|cf", "cf", or "cff"

    My current script is
    Code:
    /run if (not ss) then ss = string.sub end if(not scm) then scm = SendChatMessage; end; function SendChatMessage(msg, type, lang, chan) if ss(msg,1,1)=="\." or ss(msg,1,1)=="\\" or type=="AFK" or type=="EMOTE" then scm(msg,type,lang,chan);  else scm("\124cff<color code>"..msg.."\124r", type, lang, chan);  end; end
    That will let you successfully color your chat and do everything except shift-link items. It will color all chat except any made with a . command.

    Item Linking.

Similar Threads

  1. Customized Item Links
    By Bob_Magic in forum World of Warcraft Exploits
    Replies: 34
    Last Post: 11-14-2015, 05:00 PM
  2. Editing Item Links and Stats
    By darkwarrior in forum World of Warcraft Exploits
    Replies: 171
    Last Post: 05-21-2008, 10:26 AM
  3. Item Links
    By Kezah in forum Suggestions
    Replies: 2
    Last Post: 11-13-2007, 07:36 AM
  4. Despair into Torch of the Damned (Both item link inside)
    By Rombot in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 08-10-2007, 09:11 AM
  5. WoW Customized Item Links?
    By shadowdreams7 in forum World of Warcraft General
    Replies: 8
    Last Post: 03-19-2007, 11:05 AM
All times are GMT -5. The time now is 01:59 PM. 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