Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   help !?! (https://forums.graalonline.com/forums/showthread.php?t=5016)

Bane2000 06-17-2001 03:21 PM

help !?!
 
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 06:34 PM

Yeah!! umm yeah... errr... *runs*

Spearman 06-19-2001 07:25 PM

use this. variables like this.stonepower

General 06-20-2001 03: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 04:23 AM

Quote:

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 02: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 ^_^


All times are GMT +2. The time now is 12:43 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.