How can I make so, say, upon clicking once on an image it sets players chat to "lol!"?
Here´s what I tried:
NPC Code:
new GuiShowImgCtrl("x_ShowImg_1"){
x = 10, y = 10;
image = "block.png";
}
and further down...
NPC Code:
function x_ShowImg_1.onSelected()
{
player.chat = "lol!";
}
I have no clue if you can check a ShowImgCtrl at all, and if not; what should I use?