Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   testindex(x, y) (https://forums.graalonline.com/forums/showthread.php?t=43506)

tlf288 03-16-2003 09:39 PM

testindex(x, y)
 
This would be usefull as it could return the index number of a item (e.g. showpoly, showimg, showtext, showani, etc . . .) at the given X and Y.

Example:
NPC Code:

if (created) {
showimg 1,test.gif,130,130;
changeimgvis 1,5;
timeout = .05;
}

if (timeout) {
test = testindex(mousescreenx, mousescreeny)

if (test == 1) {
message Mouse is at index 1;
}
timeout = .05;
}



For this to work it would have to check the demensions of the item, such as the full demensions of an showimg.

Python523 03-16-2003 09:56 PM

would be hard to have it return false since image indexs can have negative numbers as an index I think

tlf288 03-16-2003 10:45 PM

Quote:

Originally posted by Python523
would be hard to have it return false since image indexs can have negative numbers as an index I think
Your right, and I don't know how either. But Stefan seems like a fairly smart fellow, so he will probally find a way :p .

CheeToS2 03-16-2003 10:47 PM

http://forums.graal2001.com/forums/s...threadid=42162

You already suggested it once, and stefan replied.. o.o

tlf288 03-16-2003 10:50 PM

Quote:

Originally posted by CheeToS2
http://forums.graal2001.com/forums/s...threadid=42162

You already suggested it once, and stefan replied.. o.o

Wasn't the same thing. Close, but not the same.

Dach 03-17-2003 12:41 AM

Quote:

Originally posted by tlf288

Wasn't the same thing. Close, but not the same.

Quote:

Originally posted by Stefan

Both testimg and isonimg would be good

You need to pay attention :p

tlf288 03-17-2003 12:50 AM

Quote:

Originally posted by Dach



You need to pay attention :p

Still isn't the same thing. This would wrap it all into one.

CheeToS2 03-17-2003 05:46 AM

Quote:

Originally posted by tlf288


Still isn't the same thing. This would wrap it all into one.

I think it would do that anyways, I'm pretty sure showpoly/showani are considered "images" too, I doubt you can use the same index twice on one NPC to show two different types of things

tlf288 03-17-2003 06:47 AM

Quote:

Originally posted by CheeToS2

I think it would do that anyways, I'm pretty sure showpoly/showani are considered "images" too, I doubt you can use the same index twice on one NPC to show two different types of things

YOU KNOW WHAT?!


Your exactly right :(

CheeToS2 03-17-2003 01:55 PM

<3 I could still be wrong though, I had a reason, but then I forgot it ^_^


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

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