Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   finding width/height of images (https://forums.graalonline.com/forums/showthread.php?t=19274)

btedji 12-20-2001 08:25 PM

finding width/height of images
 
Couldnt you record the current image of the npc then set a new one, get the width and height of the npc, record those, then reset the image to the old one and use the recorded width and height when using showimg?

ShockwaveISTHEBEST 12-20-2001 10:03 PM

I have no clue

Xaviar 12-20-2001 11:15 PM

Re: finding width/height of images
 
Quote:

Originally posted by btedji
Couldnt you record the current image of the npc then set a new one, get the width and height of the npc, record those, then reset the image to the old one and use the recorded width and height when using showimg?
I don't think so, but elaborate, maybe theres a different way to do whatever you want...

Saga2001 12-20-2001 11:56 PM

yeah there actually is...
 
I was thinking about that the other day.
maybe there is. i think so. man if only i could remember and i wasn't in cisco finals and i hadn't gone to sleep at 1:30 last night...that sucks. there is a way to do it tho. i'll figure it out than post it.

grim_squeaker_x 12-21-2001 12:00 AM

I'd think so, although it would only work clientside.

Xaviar 12-21-2001 12:01 AM

Re: yeah there actually is...
 
Quote:

Originally posted by Saga2001
I was thinking about that the other day.
maybe there is. i think so. man if only i could remember and i wasn't in cisco finals and i hadn't gone to sleep at 1:30 last night...that sucks. there is a way to do it tho. i'll figure it out than post it.

Am I missing something? I don't think theres a way to get the height/width of an image, short of setting it, and keeping track of what you set it to...And that doesn't really do you much good...Maybe testing onwall on a non-p2p server (so you don't need setshape), but then all the surrounding tiles can't be onwall...

Warcaptain 12-21-2001 11:37 AM

2 and 8 makes.. no then carry the 1 to .. wait no is it a 2.. or blah you confused me already!

btedji 12-21-2001 08:17 PM

Well I will try some scripts to see if it works.


All times are GMT +2. The time now is 07:32 AM.

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