PDA

View Full Version : help !?!


Bane2000
06-17-2001, 04:21 PM
k, i'm making a mining script, iahev it all done but of course to make more stones the variables have to change for each one or u mine one stone untill it's nearly finished and it'll bring the others down too, so will this work ?

stonepower = strtofloat(#s(this.stonepower));

so when ever i put this. infront although the same will it only effect this npc and not the others ?

GrimMoogle
06-19-2001, 07:34 PM
Yeah!! umm yeah... errr... *runs*

Spearman
06-19-2001, 08:25 PM
use this. variables like this.stonepower

General
06-20-2001, 04:55 AM
if (actionMined) {
this.stone-=strtofloat(#p(0));
}
if (this.stone<=0) {
givegem();
}
function givegem() {
//do this yourself you lazy bum
}

activeconvict
06-20-2001, 05:23 AM
Originally posted by General
if (actionMined) {
this.stone-=strtofloat(#p(0));
}
if (this.stone<=0) {
givegem();
}
function givegem() {
//do this yourself you lazy bum
}


Haha

Bane2000
06-21-2001, 03:07 AM
lazy bum ?

lmao I've already made the script I just wanted to make sure that the this. command actually does that because I have had problems with all the rocks going dopwn at the same time ^_^