First reference Microsoft Agent, then place where you need to display the wizard
Private void showagent (String Speak)
{
AgentObjects.iagentctlcharacterex myagent;
/ / AgentObjects.AgentClass myagentclass =, declaring AgentObjects.
New agentObjects.AgentClass ();
// Declared an example of a elf MyagentClass.Characters.Load ("Yjy", "YJY.ACS");
// ACS file is an animation wizard file, you can find some online, or in the office directory, or WinXP, you can search for .acs file, you can get some. Myagent = myagentclass.characters.Character "yjy");
Myagent.show (myagent.srmodeid);
// Display the Elf MYAgent.moveto (800, 600, 1000);
// Move to a location, move speed myagent.play ("Wave");
// Action name, this can be found online to find a list of Agent action list, a lot of action, specifically not listed! Myagent.Speak (Speak, "Temp");
// Let the small elf speak}