View Single Post
  #1  
Old 11-15-2005, 03:08 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
Post whats wrong with this profile sys??

NPC Code:


// NPC by Rapidwolve


//-SERVERSIDE-\\
if (actionserverside){
if (strequals(#p(0),getstats)){
with (getplayer(#p(1))){
triggeraction 0,0,clientside,-Profile Sys,stats,#s(client.hp),#s(client.maxhp),#s(client .money),#s(client.gang);
}
}
}




//#CLIENTSIDE
if (created){
enablefeatures allfeatures-0x800;
this.menux=35/100 * screenwidth;
this.menuy=25/100 * screenheight;
timeout = .05;
}

if (mousedown){
if (rightmousebutton){
this.player = testplayer(mousex, mousey);
triggeraction 0,0,serverside,-Profile Sys,getstats,#a(this.player);
}
}


if (mousedown){
if (rightmousebutton){
if (actionclientside){
if (strequals(#p(0),stats)){
if (this.player > -1) {
showimg 1,renamed6.gif,this.menux,this.menuy;
changeimgvis 1,19;

showimg -2,@Verdana@bi@#a(this.player),this.menux+100,this. menuy+70;
changeimgvis -2,20;
changeimgzoom -2,.55;
changeimgcolors -2,1,0,0,.99;

showimg -3,@Verdana@bi@#p(1)/#p(2),this.menux+100,this.menuy+100;
changeimgvis -3,30;
changeimgzoom -3,.55;
changeimgcolors -3,1,0,0,.99;


showimg -4,@Verdana@bi@$#p(3),this.menux+70,this.menuy+133;
changeimgvis -4,40;
changeimgzoom -4,.55;
changeimgcolors -4,1,0,0,.99;

showimg -5,@Verdana@bi@#p(4),this.menux+79,this.menuy+173;
changeimgvis -5,50;
changeimgzoom -5,.50;
changeimgcolors -5,1,0,0,.99;

showimg 6,#3(this.player),this.menux+105,this.menuy+16;
changeimgvis 6,60;
changeimgpart 6,0,62.1,35,34;

timeout = .05;
}
}
}
}
}




















//-CLOSE-\\
function close(){
hideimg 1;
hideimg -2;
hideimg -3;
hideimg -4;
hideimg -5;
hideimg 6;
unset mouseover;
}

if (leftmousebutton){
close();
}



Reply With Quote