Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 08-20-2011, 12:06 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Actually I have seen someone doing something familiar on Testbed. He also shared the script in the shared folder. I´ll see if I can find it.
__________________
MEEP!
Reply With Quote
  #17  
Old 08-20-2011, 12:06 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by callimuc View Post
Actually I have seen someone doing something familiar on Testbed. He also shared the script in the shared folder. I´ll see if I can find it.
Testbed is gone as far as I know.
Reply With Quote
  #18  
Old 08-20-2011, 12:18 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
I made a personal backup of the shared folder since it got nice stuff and also script where I think they where pretty good to learn from.

Also I found it. Since it was in that shared folder it shouldnt be a problem sharing it here.
Credits goes so Hoyt (thats how I knew him I don´t know his "real" graal name)

As far as I remember he said that this is only working on v6. I didn´t test it on v5 yet.

Script:
PHP Code:
//Created by Hoyt
//#CLIENTSIDE
function onCreated(){
 new 
GuiDrawingPanel("Test_DrawingPanel"){
  
x=0;
  
y=0;
  
width=screenwidth;
  
height=screenheight;
  
clearall();
  
mode=2;
  
alpha=.8;
  
active=0;
  
drawimagestretched(0,0,screenwidth,screenheight,"hoyt_white.png",0,0,16,16);
 }
 
settimer(0.05);
}
function 
onTimeout(){
 
settimer(0.05);
 
Test_DrawingPanel.width=screenwidth;
 
Test_DrawingPanel.height=screenheight;
 
Test_DrawingPanel.clearall();
 
Test_DrawingPanel.drawimagestretched(0,0,screenwidth,screenheight,"hoyt_white.png",0,0,16,16);
 
Test_DrawingPanel.drawimage(mousescreenx-64,mousescreeny-64,"hoyt_lightgrad2.png");

Output:
Click image for larger version

Name:	1.png
Views:	122
Size:	16.2 KB
ID:	53497

Click image for larger version

Name:	2.png
Views:	123
Size:	16.5 KB
ID:	53498

Click image for larger version

Name:	3.png
Views:	117
Size:	16.7 KB
ID:	53499

I hope thats what you meant
__________________
MEEP!
Reply With Quote
  #19  
Old 08-20-2011, 12:21 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by callimuc View Post
I hope thats what you meant
DrawingPanel's would indeed be the way to go with this, but that's not a very complete example. A single light source would easily be possible, and preferred(as it's more efficient) with a showpoly/image.
Reply With Quote
  #20  
Old 08-20-2011, 12:25 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Was just something I just remembered
__________________
MEEP!
Reply With Quote
  #21  
Old 08-24-2011, 04:05 AM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
It looks a lot clearner
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #22  
Old 08-31-2011, 11:40 AM
Hoyt1134 Hoyt1134 is offline
Registered User
Join Date: Jul 2004
Posts: 18
Hoyt1134 is on a distinguished road
Since Testbed is gone, I can't really mess around with the script anymore, but there was a command in v6, drawobject, that I was playing around with to draw ganis onto the drawingpanel. It was still really buggy though, and allowed either rotation or alpha-transparency, but not both. The example posted above was a pretty basic script, but it should work if you just add more drawimages.

"hoyt_white.png" Was simply a white square image that was stretched over the drawingpanel, I used a gani to draw light images on the panel in alpha mode 2, then used alpha mode 2 for the entire drawing panel. You run into slowdowns pretty fast with more light sources depending on the computer. You also have to compensate for screen movement and light source movement due to the slow updating of the drawing panel. I was able to do glowing projectiles with the shoot command, and have colored light sources, but unable to do image rotation. Some of this may have changed with the newest version of v6 but I havn't gotten a chance to test it since Testbed went offline.
Reply With Quote
  #23  
Old 06-25-2012, 11:14 PM
DeCeaseD DeCeaseD is offline
Registered User
Join Date: Jan 2008
Posts: 247
DeCeaseD will become famous soon enough
Thread bump! I could really use something like this on my server.. Would be a very useful/neat addition to the client. PLEASE CONSIDER GETTING THIS DONE PLEASE!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:58 PM.


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