Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   script commands... (https://forums.graalonline.com/forums/showthread.php?t=49329)

Gambet 11-27-2003 11:05 AM

script commands...
 
a "drawundernpc" and "drawovernpc" command would be helpful, since there already is a "drawoverplayer" and "drawunderplayer" command, then im sure drawundernpc and drawovernpc should be too hard to add.


Edit: any opinions?

HoudiniMan 11-27-2003 12:10 PM

changeimgvis can be used to do that

if you make an npc 1, and another 2 then #2 will show over #1

Toxin 11-27-2003 05:35 PM

To put in greater detail of what Houdini said:
changeimgvis #imgnumber,#1-3;
ex:
NPC Code:

showimg 200,blahblahgui.png,screenwidth-imgwidth(blahblahgui.png),screenheight-imgheight(blahblahgui.png);
changeimgvis 200,3;


- 0 = under everything, except other images that have this set(will act like 1 to them)
- 1 = just like an npc, the ones behind the image will show up under, and in front, will be over...
- 2 = over, and for other images set like this, well, you can figure it out
- 3 + = Stick on screen, uses pixels for x,y, not tiles

For use of 3, or higher, make sure the image number is above... 100 (I believe), so others dont see your images aswell... that can get messy.

xManiamaNx 11-27-2003 05:46 PM

Actually, 3 is the equivilant of drawaslight;
4 and up sticks it on the screen.

Toxin 11-27-2003 06:20 PM

Yeah, wasn't 100% sure on it, I havent had to use them in a while, ty for clearing that little bit up ;)

HoudiniMan 11-27-2003 11:12 PM

I always use an index over 250 for on screen things, im not sure about the actual limit though.

Lance 11-28-2003 12:57 AM

200 is the magical index number. :)

HoudiniMan 11-28-2003 01:01 AM

Quote:

Originally posted by Lance
200 is the magical index number. :)
There ya go.

osrs 11-28-2003 01:23 AM

I never tried negative values, have anybody?

CheeToS2 11-28-2003 05:44 AM

he's talking about the npc itself, not showimgs x.x

the only problem I can think of with draw(over/under)npc would be if two NPCs both used the same command.. then they'd either fight over it, or the indexes would come into play o.o

MrGannondorf 11-28-2003 11:41 AM

o.o or maby he was refering to the drawing height of theplayer ...

wich I don't see the use of, unless you wanted some equivalent to raising the z without the psudo y coming into effect... blah blah blah...

though that still doesn't sound too usefull.


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

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