I've tried multiple ways of making miniwindows, however they never seem to work. I've never really learnt advanced VBscript so im not sure how to use other types of script in plugins/triggers etc...
I have 3 years of customised client, I don't want to have to convert that all in Lua, but at the same time I'd love someone to paste a trigger that would load a miniwindow. Once I have the starting frame I can build off it.
For WindowFont you shouldn't need 'a =', just call the function. Also, in testing, it seems the last two arguments (short Charset, short PitchAndFamily) aren't optional in VBscript. Try:
Make sure you put 'world.' in front of the commands in languages other than Lua. To my knowledge, omitting the world object is only supported in Lua and no other languages.
WindowDrawImage (BSTR Name, BSTR ImageId, long Left, long Top, long Right, long Bottom, short Mode, long SrcLeft, long SrcTop, long SrcRight, long SrcBottom);
You haven't supplied them all, which is what the error message is about. (Add 0,0,0,0 to the end). In Lua the last four are optional which is why the examples didn't have them.
This trigger fires with no error messages popping up, I can also change the colour of the window however even though loaded - the image fails to appear.
I tried your script with an image in that directory and it worked perfectly for me. Try this with a note after each line, like:
status = WindowCreate ("6", 45, 45, 290, 670, 6, 0, ColourNameToRGB ("white"))
Note status
status = WindowLoadImage (6, "im1", "C:/Users/Mark/Pictures/planks.bmp")
Note status
status = WindowDrawImage (6, "im1", 45, 45, 0, 0, 1, 0, 0, 0, 0)
Note status
status = WindowShow (6, true)
Note status
And see if any lines give you an error? All should return 0 (eOK). You won't actually get an error message normally if it doesn't work, even if it returns an error code to status, you have to look at the variable manually.
Here is how my client is coming along, thanks for all the help!
http://www.freewebs.com/bethagan/Untitled.jpg
The blank space in the bottom right hand corner; my infobar doesn't stretch across the whole length of the screen. Any way I can fix that?
My next step is to make a miniwindow above the command prompt, containing my Health/Energy etc.. and get away with the INFOBAR all together.