No it wouldn’t be… I suggest you start over with my better idea. You should draw up a stick of dynamite and make a toss gani… Then you just throw the dynamite to blow the ore right out of the ground. If it’s not there, there’s no need for a message, because talking to yourself in Graal is pretty much idiotic.
[QUOTE=VariousWeapon;57610]No it wouldn’t be… I suggest you start over with my better idea. You should draw up a stick of dynamite and make a toss gani… Then you just throw the dynamite to blow the ore right out of the ground. If it’s not there, there’s no need for a message, because talking to yourself in Graal is pretty much idiotic.[/QUOTE]
That would be pretty cool. Too bad I don’t know how to script very well…
***Ooops… I’m on my testing account :0
When converting a string to a variable you have to do this: this.y=strtofloat(#s(client.ore));
rather than this.y=#v(player && strequals(#s,client.ore)
The strtofloat command converts a string (text) to a float (number) so that you can perform math on it or use it with variables
I’m not really sure what you are trying to do in your script, increase the value?
If so, you can do it like this: this.y=strtofloat(#s(client.ore))+1; (Make sure you put your +1 outside of the brackets!)
Edit: Looking at your script
You don’t even need to use the this.y, you can just set it directly like so:
You can perform any math operations you want inside a #v (variable / number)
As for this being ‘an awesome script’, no it’s not. You can just spam D anywhere inside a mine and you will get loads of ore.
You are better off looking for a mining script from another server and seeing how it works.
Normally you have ‘ore’ as npcs and you triggeraction them, you can find out how to use triggeraction in front of the player inside one of the newfeatures.txt (hint: CTRL+F for triggeraction)
Stefan made a “Freeze” npc which is a great base.
Thanks for the help. I know the part that allows you to “SPAM” the mines is a little stupid but it’s more realistic than just hitting rocks, and I’m also using a shovel. SHOVEL VS. ROCK! breaks shovel