View Single Post
  #2  
Old 01-26-2002, 10:24 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Here's that whole section of the clip:
NPC Code:

if (weaponfired) {
if (placeset) {
putleaps 2,playerx+.5,playery+.5;
this.i = strtofloat(#s(charges)) - 1;
if (this.i == 0) {
setstring charges,;
destroy;
}
setstring charges,#v(this.i);
sleep .5;
setlevel2 #s(filename),strtofloat(#s(oldx)),strtofloat(#s(ol dy));
}
if (havntplaceset) {
setstring filename,#L;
setstring oldx,#v(x+1);
setstring oldy,#v(y);
playerx = strtofloat(#s(oldx));
playery = strtofloat(#s(oldy));
set placeset;
unset havntplaceset;
}
}



Bleeeh...this is so irritating. I checked my x and y before i used it and then i use it and i get switched x+1 or something...It's really messed up

Gohan
Reply With Quote