');
document.write('');
var yuipath = 'clientscript/yui';
var yuicombopath = '';
var remoteyui = false;
}
else // Load Rest of YUI remotely (where possible)
{
var yuipath = 'https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build';
var yuicombopath = '';
var remoteyui = true;
if (!yuicombopath)
{
document.write('');
}
}
var SESSIONURL = "";
var SECURITYTOKEN = "guest";
var IMGDIR_MISC = "warmane/misc";
var IMGDIR_BUTTON = "warmane/buttons";
var vb_disable_ajax = parseInt("0", 10);
var SIMPLEVERSION = "422";
var BBURL = "https://forum.warmane.com";
var LOGGEDIN = 0 > 0 ? true : false;
var THIS_SCRIPT = "showthread";
var RELPATH = "showthread.php?goto=nextnewest&t=458518";
var PATHS = {
forum : "",
cms : "",
blog : ""
};
var AJAXBASEURL = "https://forum.warmane.com/";
var CoTTooltips = {
rename: true,
icons: false,
iconsize: 15,
qualitycolor: true,
overridecolor: {
spells: '#839309',
items: '',
npcs: '#fff',
objects: '#fff',
quests: '#ffb100',
achievements: '#fff'
}
};
// -->
Macro help - guild invites
-
Member
Macro help - guild invites
Hello,
I am receiving the below error when I attempt to run a script in chat. I do not think it's working as a macro button either.
-----------------------------------------------------------------------------------------------------------------------------------
Date: 2023-07-19 19:54:55
ID: 1
Error occured in: Global
Count: 1
Message: [string "n=GetNum!@#$%sults(); i=1; while(i<n+1) do c,g=GetWhoInfo(i); i..."] line 1:
unexpected symbol near '!'
Debug:
(tail call): ?
[C]: ?
[C]: RunScript()
..FrameXMLChatFrame.lua:1996: value()
..FrameXMLChatFrame.lua:4070: ChatEdit_ParseText()
..FrameXMLChatFrame.lua:3660: ChatEdit_SendText()
..FrameXMLChatFrame.lua:3698: ChatEdit_OnEnterPressed()
[string "*:OnEnterPressed"]:1:
[string "*:OnEnterPressed"]:1
-----------------------------------------------------------------------------------------------------------------------------------
The code is as follows:
-----------------------------------------------------------------------------------------------------------------------------------
/script n=GetNum!@#$%sults(); i=1; while(i<n+1) do c,g=GetWhoInfo(i); if(g=="") then SendChatMessage("Hello "...c..."! <Syndicate Alpha> is now recruiting PvP players!, Join now!","WHISPER","COMMON",c); GuildInvite(c); end; i=i+1; end;
-----------------------------------------------------------------------------------------------------------------------------------
Any assistance greatly appreciated
TIA
-
Forum Veteran
GetNum!@#$%sults is not the name of a function... The real name is GetNumWhoResults but it gets censored because of the s****horpe problem
/script n=GetNumWhoResults(); i=1; while(i<n+1) do c,g=GetWhoInfo(i); if(g=="") then SendChatMessage("Hello "...c..."! <Syndicate Alpha> is now recruiting PvP players!, Join now!","WHISPER","COMMON",c); GuildInvite(c); end; i=i+1; end;
-
Forum Veteran
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules