Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   hidden npcs can't showimg (https://forums.graalonline.com/forums/showthread.php?t=5831)

Tyhm 06-26-2001 08:34 AM

hidden npcs can't showimg
 
hidelocal;
showimg 0,stone.png,x,y;

It does not work.

vergil 06-26-2001 08:58 AM

:(

FxChiP 06-26-2001 12:16 PM

Stone.png doesn't show up even when hidelocal isn't used...

Solareon 06-26-2001 02:14 PM

instead of
 
using hidelocal just use a transparent img for your npc (make blank.gif as a black transparent black image) and then place it in a place where users cannot get to and you cna use show images (at least I think, my GraalBoy script is having issues with it being totally invisible. Prolly cause I suck major at scripting [VB is so much nicer and more friendlier but changing between the two is hell])

Tyhm 06-27-2001 06:37 AM

The workarounds are easy, have different NPCs show the image than the one that's hiding, but imagine doing a chest that's supposed to hide itself (the closed chest) and show a key. You have to change the image to an open chest, the hide the image of the closed chest that's usually over the drawunderplayer open chest, and show the key over it, it's a nightmare.

FxChiP 06-28-2001 10:58 AM

Quote:

Originally posted by Tyhm
The workarounds are easy, have different NPCs show the image than the one that's hiding, but imagine doing a chest that's supposed to hide itself (the closed chest) and show a key. You have to change the image to an open chest, the hide the image of the closed chest that's usually over the drawunderplayer open chest, and show the key over it, it's a nightmare.
?

Dude, that's easy to do, you don't even really need two NPCs to do it.

NPC Code:

if (playertouchsme && !chestopen) {
setgif chestopen.gif;
showimg 0,key.gif,x+.5,y+.5;
set chestopen;
}

if (playerenters && chestopen) {
setgif chestopen.gif;
}


FxChiP 06-28-2001 10:59 AM

And, of course, put that script into an NPC with the closed chest graphic, and everything should be fine.

Kaimetsu 06-28-2001 09:57 PM

No... flags!

T-Squad 06-29-2001 03:51 AM

Quote:

Originally posted by Kaimetsu
No... flags!
grrr...never use flags unless its like a permanit thing to tell something...like if you showed an intro, make a flag that like shownintro......or then that flags are evil!

grim_squeaker_x 06-29-2001 03:45 PM

Quote:

Originally posted by FxChiP


?

Dude, that's easy to do, you don't even really need two NPCs to do it.

NPC Code:

if (playertouchsme && !chestopen) {
setgif chestopen.gif;
showimg 0,key.gif,x+.5,y+.5;
set chestopen;
}

if (playerenters && chestopen) {
setgif chestopen.gif;
}


The problem is that the setgif and setimg commands are not done locally, hidelocal however is, that's primarily why Tyhm is posting it.


All times are GMT +2. The time now is 07:08 PM.

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