Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-27-2009, 05:05 AM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
MouseOver?

Chris (aka cbk1994) helped me on a custom nickname script, I was just wondering how do I go about making it hide, untill a players mouse is over their character then it will show?

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setTimer(0.05);
}

function 
onTimeout() {
  
hideimgs(2001000); // This will need to be re-optimized as hiding then redrawing every frame is bad 
  
drawNicknames();
  
setTimer(0.05);
  
enablefeatures(allfeatures 0x200);
}

function 
drawNicknames() {
  
// Loop through Players
  
for (temp.pplayers) {
    
// Draw Text under Player
    
with (findimg(200 temp.p.id 2)) {
      
text temp.p.nick;
      
temp.p.1.5;
      
temp.p.3.2;
      
style "bc";
      
font $pref::graal::defaultfontname;
      
      
red 0;
      
green 1;
      
blue 0;
      
layer 0;
    }
    
with (findimg(201 temp.p.id 2)) {
      
text "[" temp.p.account "]";
      
temp.p.1.5;
      
temp.p.4.5;
      
style "c";
      
font $pref::graal::defaultfontname;
      
      
zoom 0.7;
      
      
red 0;
      
green 1;
      
blue 0;
      
layer 0;
    }
  }

__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
 


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 07:49 PM.


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