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