Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Findimg created by another script? (https://forums.graalonline.com/forums/showthread.php?t=71648)

JkWhoSaysNi 01-24-2007 02:59 AM

Findimg created by another script?
 
Does findimg only find images created by the current script?

Is there any way to get an image that's been created with showimg and alter its attributes from another script?

Thanks :)

Tolnaftate2004 01-24-2007 04:18 AM

Perhaps;

PHP Code:

//#CLIENTSIDE
/* otherscript */
...
public function 
retrieveimageintIndex ) {
  return 
findimg(intIndex);
}
... 

PHP Code:

...
  
temp.img otherscript.retrieveimage2001 );
  
temp.img.zoom *= 1.1;
... 

Can't guarantee anything, but that's my best bet.

JkWhoSaysNi 01-24-2007 03:54 PM

I've decided just to make it call a function in the original script which changes the attributes of the image.

Admins 01-24-2007 10:10 PM

You should be able to call findimg() of other objects

Chompy 01-25-2007 03:51 PM

Quote:

Originally Posted by Stefan (Post 1268570)
You should be able to call findimg() of other objects

Different wnpcs can use same id on images, so how do it find the id of which img? Or you have to define the object (wnpc) its getting the id from? :o

zokemon 01-25-2007 08:50 PM

I think Stefan means that you can go
NPC Code:
  findweapon("Systems/Main").findimg(200).zoom = 1.1;



All times are GMT +2. The time now is 12:24 AM.

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