View Single Post
  #1  
Old 05-03-2009, 04:34 PM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Quote:
Originally Posted by Raelyn View Post
Is there a way in GS1 to do this?

PHP Code:
if (keypressed) {
   if (
strequals(#p(1),I)){
      
if (img 209 is visible){
         
hideimg 209;
      } else {
         
showimg 209,file,x,y;
      }
   }

Solved myself with

PHP Code:


this
.inv_shown 1;

if (
keypressed) {
   if (
strequals(#p(1),I)){
      
Inventory();
   }


function 
Inventory(){

  if (
this.inv_shown == 0){

    
// inventory pane
    
showimg 209;
    
this.inv_shown 1;

  } else {

    
hideimg 209;
    
this.inv_shown 0;
  }

I have another question though, I am trying to change profilevars in server options, and I have

PHP Code:
profilevars=Level:=#v(clientr.level), 
Yet it is not picking up the clientr.level off my NPC...?
__________________
*Don't let the door hit you on the way out.*
Reply With Quote