Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-06-2004, 06:42 AM
Zickle Zickle is offline
Awesome
Zickle's Avatar
Join Date: Dec 2002
Posts: 121
Zickle is on a distinguished road
Send a message via ICQ to Zickle Send a message via AIM to Zickle Send a message via MSN to Zickle Send a message via Yahoo to Zickle
Make Image Stick on Screen

What would it take to make this stick on screen like

EXAMPLE:
top: 3 down
left: 1/2 of the screen

NPC Code:

showimg 38,dr-weaponsys.gif, X , Y;

__________________
Reply With Quote
  #2  
Old 12-06-2004, 07:36 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
changeimgvis
__________________
Reply With Quote
  #3  
Old 12-06-2004, 09:19 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
in a timeout loop would help
__________________
Reply With Quote
  #4  
Old 12-06-2004, 03:24 PM
Zickle Zickle is offline
Awesome
Zickle's Avatar
Join Date: Dec 2002
Posts: 121
Zickle is on a distinguished road
Send a message via ICQ to Zickle Send a message via AIM to Zickle Send a message via MSN to Zickle Send a message via Yahoo to Zickle
Thanks you two!
__________________
Reply With Quote
  #5  
Old 12-06-2004, 09:00 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally Posted by xAndrewx
in a timeout loop would help
pointless, unless you are updating the image
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #6  
Old 12-06-2004, 09:12 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
try it without a timeout loop, it'll soon move after you move will it not?
__________________
Reply With Quote
  #7  
Old 12-06-2004, 09:21 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by xAndrewx
try it without a timeout loop, it'll soon move after you move will it not?
No. Changeimgvis.
__________________
Reply With Quote
  #8  
Old 12-06-2004, 09:28 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
screenheight and screenwidth will also help position it on the screen , hence custom gui's
__________________

Reply With Quote
  #9  
Old 12-06-2004, 09:53 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
so I could make an image stay in the same place using changimgvis?
__________________
Reply With Quote
  #10  
Old 12-06-2004, 11:04 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by xAndrewx
so I could make an image stay in the same place using changimgvis?
Relative to a given point on the screen, yes.
__________________
Reply With Quote
  #11  
Old 12-07-2004, 12:02 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
If you want something to stick ot the screen, use changeimgvis with a layer of 4 or higher.
Try using variables such as screenwidth (how wide the graal window is in pixels) and screenheight (how tall the graal window is in pixels) if you want to make it appear 5 pixels from the bottom of the screen or something.
NPC Code:
showimg index,image,screenwidth/2,screenheight/2;


That would make the image appear centered (You can make an algorithim to make the placing more precisely centered on the screen - Thats your job, if thats what your doing.)
If its for a GUI, I suggest using an index of 200 or more.
Reply With Quote
  #12  
Old 12-07-2004, 02:08 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Addition: Slash suggested you to use an index > 200 because it will be displayed only for you, indexes < 200 are displayed for everybody that is in the same level. (If you did not knew)
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #13  
Old 12-07-2004, 03:33 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by osrs
Addition: Slash suggested you to use an index > 200 because it will be displayed only for you, indexes < 200 are displayed for everybody that is in the same level. (If you did not knew)
Seeing everyone else's GUI would get quite annoying
Reply With Quote
  #14  
Old 12-07-2004, 06:46 AM
Zickle Zickle is offline
Awesome
Zickle's Avatar
Join Date: Dec 2002
Posts: 121
Zickle is on a distinguished road
Send a message via ICQ to Zickle Send a message via AIM to Zickle Send a message via MSN to Zickle Send a message via Yahoo to Zickle
Quote:
Originally Posted by osrs
Addition: Slash suggested you to use an index > 200 because it will be displayed only for you, indexes < 200 are displayed for everybody that is in the same level. (If you did not knew)
Thanks alot! just had that problem!
__________________
Reply With Quote
Reply


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:27 AM.


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