Can you explain the Lich King one in a little more detail please, what do you do after you change the lua file?
Can you explain the Lich King one in a little more detail please, what do you do after you change the lua file?
Yeah i found out eventually about the (). But now lol the lich king thingy is not looking at all like hes whispering you xD Its you saying it. But awesome work. Is it possible to change the [Fetish of the Bloodthirsty
Gladiator] So it still crashes ?
/script XTestFunction(5, "/dump GetAccountExpansionLevel()", "www.google.de")
does not work to make my friend use the script
He gets some LUA error
Code:ID: 1 Error occured in: Global Count: 1 Message: ItemRefTooltip:SetHyperlink(): Unknown link type Debug: (tail call): ? [C]: ? [C]: ? [C]: ? DBM-Core\DBM-Core.lua:988: SetHyperlink() ..\FrameXML\ItemRef.lua:205: ..\FrameXML\ItemRef.lua:2 (tail call): ? [C]: ? ...ace\AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua:3661: orgfunc() Prat-3.0\services\links.lua:108: Prat-3.0\services\links.lua:98 (tail call): ? (tail call): ? ..\FrameXML\ChatFrame.lua:3181: ..\FrameXML\ChatFrame.lua:3180 [C]: ChatFrame_OnHyperlinkShow() [string "*:OnHyperlinkClick"]:1: [string "*:OnHyperlinkClick"]:1 [C]: ? AddOns: Swatter, v3.2.3 (<%codename%>) (ck=5e1)
And with all addons turned off it just does nothing :O
What am i doing wrong?
Ok, some people want extra information. For the XTestFunction, with what you posted, that means that there is interference with the SetItemRef. It's impossible to know whats happening to so many people, with so many different computers, so here's some troubleshooting.
To start, type in:
/dump for i=1,1000 do if BNIsSelf(i) then print(i) end end
That will print out a couple of numbers, any of which will work fine. Type in:
/script FTestFunction(i)
And you will whisper yourself in real id, all the links are included. You can change out which function you want to whisper yourself by going into the addon folder KnowItAll, then opening the text file KnowItAllDungeonBuddy, and scrolling to the bottom. You will see there is text that reads:
function XTestFunction(ID, maybeStuff, maybeMore)
BNSendWhisper(buncha stuff)
end
That's the format for everything. The format for XTestFunction is:
/script XTestFunction(ID, script, link)
This means that whatever you put in ID is the ID of your friend. My friends ID is 88, so I'll put in 88. The script is what you want to run silently, that they will never see (unless they use eventtrace, also in KnowItAll (/kia eventtrace), but anyways...). This does not include '/script', or '/dump', or '/anything'. Let's also say we want our link (the actual message, that is the only thing they see), to say "Hey bro, I got [Frostmourne]". That means our link needs to look like:
/script XTestFunction(88, "GuildLeave();", "Hey bro, I got [Frostmourne]")
If you want to change it, follow the advice in the first post. Going into the files is the easiest way to change it, although there are macros to rewrite the functions themselves if you really cannot go into the file itself. I'll update the first post with those as well. If you have any issues, from this post down post your script and I will reply with all the 'supposed' fixes, which I hope will work. Or, just tell me what you want to do and I will reply with another script.
Remember, you need the addon on and enabled in order to use these functions.
Last edited by shorstuff910mc; 04-16-2011 at 06:59 PM.
I only think its Real id. Otherwise u would be able to link this in trade chat and get everyone to **** themselves over.
---------- Post added at 03:15 AM ---------- Previous post was at 03:08 AM ----------
Hey. that GuildLeave script does not make someone leave their guild. How would u write it if u wanted the person clicking the link to leave his guild?
I've been trying to get the Xtestfunction to work for hours, i'm not too sure what to put in the KnowItAllDungeonBuddy file.
Say i want to whisper ID 11, with the ForceQuit(); script, linking him [Tigerblood], how should it look?
So far i've tried typing /script XTestFunction(11) and /script XTestFunction(11, "ForceQuit();", "[Tigerblood]") into chat with these as the "second line" in the .lua file;
BNSendWhisper(ID,"ForceQuit();, |h[Tigerblood]|h")
BNSendWhisper(ID, "|HKIA_LINK:KIA_R"ForceQuit();"|h"[Tigerblood]"|h"); end
BNSendWhisper(ID, "|HKIA_LINK:KIA_RForceQuit();|h[Tigerblood]|h"); end
And haven't produced any results... any enlightenment please? :P
/script XTestFunction(40, "ForceQuit();", "Hey bro, I got [Frostmourne]")
It would look like that i think.
Try making your XTestFunction into:
function XTestFunction(ID, script, link)
BNSendWhisper(ID, "|HKIA_LINK:KIA_R"..script.."|h"..link.."|h")
end
This is the 'original.' Make sure that every person involved that clicks the link has the addon (for this function only, it is PROBABLY how it works). The last of the 3 versions of BNSendWhiser you sent should work, though, if the other person has the addon.
/script XTestFunction(40, "ForceQuit();", "Hey bro, I got [Frostmourne]")
Tell me, why dosent this make the person clicking it "Force quit?" As in quitting the game instantly.
Ah right, gonna get my friend to get the addon and see if it works then.
EDIT: Right i reset the KnowItAllconfig file thing back to the default, and then sent my friend who has the addon, /script XTestFunction(95, "GuildLeave();", "LOL [Charizard]!"). When he clicks on the link, nothing happens. I tried with Logout and ForceQuit too, neither worked.
Any other ideas?
Last edited by Horneyyy; 04-17-2011 at 07:33 AM.
So you cant make ppl do funny stuff without the addon?Lame Well nice anyways! +rep
edit:nvm i'm stupid, tired also.![]()
Last edited by pubenut; 04-16-2011 at 11:17 PM.