Thread: Gravity
View Single Post
  #8  
Old 05-09-2002, 11:02 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Well yeah. There is so much to do with scripting.
Like this:
NPC Code:

//#CLIENTSIDE
if (playerenters || timeout) {
if (mousebuttons == 1)
findPlayer();
if (strlen(#a(this.player))>0 && this.b<=100)
showAttribs();
else
hideimg 600;
timeout=.05;
}
function findPlayer() {
for (i=0; i<playerscount; i++; ) {
if (mousex in |players[i].x, players[i].x+3| && mousey in |players[i].y, players[i].y+4|) {this.player = i; i=playerscount;}
}
if (strlen(#a(this.player))<=0) this.player=-2;
this.b = 0;
}
function showAttribs() {
showimg 600, @#a(this.player), 5, 100;
changeimgzoom 600, .75;
changeimgvis 600, 5;
this.b++;
}


Isn't it beautiful, only 2 minutes of scripting...*breathtaking*. Unfortunatly you cannot edit players[i].x and y and etc from clientside, so you have to go serverside to make a player drag...:-/. Oh well. Learn how to script.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote