Moderator: MacroQuest Developers
Code: Select all
class EqWrapper
{
static void Main(string[] args)
{
using (new FrameLock(true))
{
EqMe myGuy = new EqMe();
IS.Echo("Name: " + myGuy.Name);
IS.Echo("Loc: " + myGuy.Y.ToString("F") + "," + myGuy.X.ToString("F") + "," + myGuy.Z.ToString("F"));
IS.Echo("Level: " + myGuy.Level.ToString("D"));
if (myGuy.Levitating) IS.Echo("Woah I seem to be flying!");
EqSpawn aMob = new EqSpawn("npc");
IS.Echo("aMob type: " + aMob.Type);
IS.Echo("Nearest MOB: " + aMob.Name);
aMob.Target();
aMob.Face();
LS.ExecuteCommand("cast Rend");
}
}
}
Code: Select all
char FullText[8192]={0};
pISInterface->GetArgs(1,argc,argv,FullText); // this gets the rest of the arguments, from 1 to argc
Code: Select all
pISInterface->GetArgs(1,argc,argv,FullText,8192);
Code: Select all
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Threading;
using InnerSpaceAPI;
using LavishVMAPI;
using IS = InnerSpaceAPI.InnerSpace;
using LS = LavishScriptAPI.LavishScript;
// This is an experiment to understand how to access ISXEQ Top Level Objects from .NET.
// It's a console app that should display a few stats about your character and a nearby MOB on the InnerSpace console.
// If you happen to be a baby Wizard, it will also cast a baby nuke on said MOB, so don't test it in the wrong zone.
// To run it, so far I am feeding the IS dotnet command the full line of text that gacutil creates. For example,
// at the InnerSpace console I type:
// dotnet "ISXBasicAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=48f786b573cdbb7f, processorArchitecture=MSIL"
// There has to be a better way to do this, but it works for now.
//
// To set this up in VS2005, follow the instructions in
// http://www.lavishsoft.com/wiki/index.php/NET:Tutorials:HelloWorld
namespace ISXEQWrapper
{
class EqWrapper
{
static void Main(string[] args)
{
using (new FrameLock(true))
{
EqMe myGuy = new EqMe();
IS.Echo("Name: " + myGuy.Name);
IS.Echo("Loc: " + myGuy.Y.ToString("F") + "," + myGuy.X.ToString("F") + "," + myGuy.Z.ToString("F"));
IS.Echo("Level: " + myGuy.Level.ToString("D"));
if (myGuy.Levitating) IS.Echo("Woah I seem to be flying!");
EqSpawn aMob = new EqSpawn("npc");
IS.Echo("aMob type: " + aMob.Type);
IS.Echo("Nearest MOB: " + aMob.Name);
aMob.Target();
aMob.Face();
LS.ExecuteCommand("cast Rend");
}
}
}
Code: Select all
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Threading;
using InnerSpaceAPI;
using LavishVMAPI;
using IS = InnerSpaceAPI.InnerSpace;
using LS = LavishScriptAPI.LavishScript;
using IX = ISXEQ.EQTypes;
namespace ISXEQWrapper
{
class EqWrapper
{
static void Main(string[] args)
{
using (new FrameLock(true))
{
IX.EQCharacter myGuy = new IX.EQCharacter();
IS.Echo("Name: " + myGuy.Name);
IS.Echo("Loc: " + myGuy.Y.ToString("F") + "," + myGuy.X.ToString("F") + "," + myGuy.Z.ToString("F"));
IS.Echo("Level: " + myGuy.Level.ToString("D"));
if (myGuy.Levitating) IS.Echo("Woah I seem to be flying!");
[b]IX.EQSpawn aMob = new IX.EQSpawn("npc");[/b]
IS.Echo("aMob type: " + aMob.Type);
IS.Echo("Nearest MOB: " + aMob.Name);
aMob.Target();
aMob.Face();
LS.ExecuteCommandEx("cast","Disease Cloud");
}
}
}
}
Try changing "Show" to "dShow" as referenced here. If the relationship between ISXEQChatWnd and ISXEQChat is the same as they are in the MQ2 version, you do want ISXEQChatWnd as the output to that window is protected from being sent to Sony.Burrick wrote: ISXEQChatWnd
error C2065: 'Show' : undeclared identifier Line 114 ISXEQChatWnd
The next three errors reference this error.
error C2039: 'Show' : is not a member of 'CMQChatWnd' Line 283 ISXEQChatWnd
This is repeated for lines 318 and 366.
I have no idea where this variable should be declared, nor what value it should be set to. (0 i am guessing). Either way, since I have an ISXEQChat, I figured I don't need an ISXEQChatWnd, so I didn't compile it.