View Single Post
  #1  
Old 02-19-2006, 03:35 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Selecting an image

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?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote