Quote:
Originally posted by Termina_Owner
NPC Code:
setarray playersx,playercount;
setarray playersy,playercount;
for (i=0;i<playercount;i++){
playersx[i] = player[i].x;
playersy[i] = player.y;
}
In breif: Make your own parameters for the Camera.
*cough*LAG*cough*
For webpages.... It won't be possible... Well, it IS possible, but won't be happening, unless you put a life webcam on your computer, and have your guy constantly move, and send what your webcame shows.
|
You don't seem to understand. With a particular command, Graal would
take a screenshot that would be stored in memory. It could be accessed by parameters or attributes and, in the case of playerworlds with NPC Servers, the image in memory could be saved to the FTP or some location and then be opened from a webpage.
Really, all you'd need is a db NPC that randomly selects players online based upon playerindex. The NPC could 'track' the actions of the randomly selected player. Then it could be saved to the server's filespace and then access by the Graal main page much like it used to do for the player stats. It wouldn't be that hard
Using multiple showimgs and whatnot slows down older computers. This would just take a window/screen snapshot and put it in memory until something else wrote over where its stored. Buffering the screen to memory could allow for certain transition effects seen in games like Final Fantasy. It would be kept client-side unless used with a dbNPC which could possibly store it on the server itself.
To be honest, I suggested this in the first place because I wanted to do some nice screen transitions. Its kind of difficult to do that as of now. I only threw in the other things about it to make it more appealing and useful since I'm sure all of it is possible in some form or another.
This is probably what the command(s) could look like:
//Client-side command
takesnap attrib;
takes a snapshot of the playing window/screen and stores it in specified attribute #P()
//Client-side/Server-side command
takesnap2 playerindex,x,y,attrib;
takes a snapshot of the specified playerindex with x and y being the frame size. Stored in #P()