Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Password to make invisible an img (https://forums.graalonline.com/forums/showthread.php?t=134268639)

Jcs1919 08-19-2013 03:19 PM

Password to make invisible an img
 
Hello,

I want to make invisible an image if the player says a specific word, what should I put in the npc? :confused::cry:

cbk1994 08-19-2013 04:01 PM

Hide the image clientside when the player says whatever the word is. If you're interested in learning to script, Jer's guide is a good starting place. I know people have asked this exact same question in the past on these forums as well, so maybe try searching.

Otherwise if you post the code you have so far I'm sure we could guide you in the right direction. These forums are intended more for scripting help and less for script requests, so please try to keep that in mind.

baseman101 08-24-2013 01:58 AM

I'd suggest you learn how to script, but here's a small code snippet.
PHP Code:

//#CLIENTSIDE
function onPlayerChats() {
  if(
player.chat == "myPassword") {
    
this.hide();
  }


This works if you want to hide the NPC from view.


All times are GMT +2. The time now is 08:42 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.