Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-06-2004, 05:40 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Oooo custom gui's and such

I believe they use showimg ? Im just wondering, how do servers like era manage to keep their GUI on that perfect space on the screen? heh, right now im trying to make some mine rock types stay in a certain place on the time but when the player reaches the edge of the level, the rock likes to walk away. How is it done?
  #2  
Old 02-06-2004, 05:49 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Re: Oooo custom gui's and such

Quote:
Originally posted by Gman4pwnu
I believe they use showimg ? Im just wondering, how do servers like era manage to keep their GUI on that perfect space on the screen? heh, right now im trying to make some mine rock types stay in a certain place on the time but when the player reaches the edge of the level, the rock likes to walk away. How is it done?
Images/text are drawn on layer 4 or greater so they draw on screen, then use screenwidth and screenheight to place them on the screen.
  #3  
Old 02-06-2004, 05:55 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
Re: Oooo custom gui's and such

Quote:
Originally posted by Gman4pwnu
I believe they use showimg ? Im just wondering, how do servers like era manage to keep their GUI on that perfect space on the screen? heh, right now im trying to make some mine rock types stay in a certain place on the time but when the player reaches the edge of the level, the rock likes to walk away. How is it done?
I don't understand what you mean by "it walks away". Please elaborate. (I like using big words =P)
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
  #4  
Old 02-06-2004, 05:58 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
ehehe confused, examples? examples always help.
  #5  
Old 02-06-2004, 05:59 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
You are confusing me by just what you say. At least post an example script so I can understand what you are saying.
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
  #6  
Old 02-06-2004, 06:02 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Ok, i use a timeout = .05 and everytime theres a timeout i put a showimg at the playerx + some numbers and playery + some numbers, and like it just goes off screen at a point. I thought you did it by usin playerx and playery.
  #7  
Old 02-06-2004, 06:04 AM
Nappa Nappa is offline
The Great Nappa
Nappa's Avatar
Join Date: Sep 2003
Location: Florida
Posts: 1,911
Nappa is on a distinguished road
Send a message via AIM to Nappa
STOP. WITH. THE. THREADS.


MAKE ONE THREAD WITH MULTIPLE QUESTIONS PLEASE.
__________________
  #8  
Old 02-06-2004, 06:05 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
Oh, I see.
I believe you are going about it wrong.
When making GUIs, the images are shown at screen coordinates, rather than in-game coordinates.
An example would look like this:

NPC Code:

if (created || timeout){
showimg 201,guigfx.png,screenwidth-imgwidth(guigfx.png),0;
changeimgvis 201,4;
timeout = .05;
}



That would show "guigfx.png" at the upper right-hand corner of the screen all the time.
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
  #9  
Old 02-06-2004, 06:06 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Nappa: S T F U, ITS BEEN 2 THREADS ONLY IN A DAY, THE OTHER TIME I JUST DECIDED TO ASK A LOT OF QUESTIONS, DO NOT REPLY IF YOU DO NOT BRING HELP!

that is all.
  #10  
Old 02-06-2004, 06:07 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Thank you duwal, that is helpful, is there any way i can customize it so its lower down the screen? Like set the exact position of it.
  #11  
Old 02-06-2004, 06:10 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
NPC Code:

showimg 201,guigfx.png,screenx,screeny;
changeimgvis 201,4;



Change screenx/y to adjust the positioning of the image on the screen.
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
  #12  
Old 02-06-2004, 06:33 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
How can i do this with showtext?
  #13  
Old 02-06-2004, 06:41 AM
Alexander Alexander is offline
Registered User
Join Date: Apr 2003
Location: California
Posts: 246
Alexander is on a distinguished road
Send a message via AIM to Alexander
same way
NPC Code:

if (created) {
showtext 500,screenwidth/2,screenheight/2,Arial,bc,Hello;
changeimgvis 500,4;
changeimgzoom 500,5;
}

  #14  
Old 02-06-2004, 09:34 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
2 Threads, calm down bud.
Looks like this has been solved
__________________
V$:CONFL16T
  #15  
Old 02-06-2004, 01:50 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Ok seriously, MAKE. AN. EFFORT. TO. LEARN., you should not expect to get every answer handed to you.
Closed Thread

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 08:34 PM.


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