Quote:
Originally Posted by Raelyn
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...?