Thread: Gravity
View Single Post
  #10  
Old 05-12-2002, 04:39 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

Quote:
Originally posted by 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.
are you sure you posted in the right topic dude? He was asking about baddies, not moving the player with your mouse, lol.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote