Faceshifter Posted July 7, 2011 Share Posted July 7, 2011 If ( Ref.GetDistance Player <= [Your Value] ) :thumbsup: Link to comment Share on other sites More sharing options...
bencebence Posted July 7, 2011 Author Share Posted July 7, 2011 What do you think, would 5 do? Link to comment Share on other sites More sharing options...
Faceshifter Posted July 7, 2011 Share Posted July 7, 2011 Then you should stand on the ore I believe ;)I think 256 or 200 should work, again, you must find a distance that suits you. Perhaps try to align it with the weapon reach of the pickaxe? Although that would require a lot of testing. Link to comment Share on other sites More sharing options...
bencebence Posted July 7, 2011 Author Share Posted July 7, 2011 (edited) I'll try.Also one more thing.I played around a bit, and tried to make each ore have own vein.It shows up the Begin/End error.Scriptname RaivenCopperOre short bluntskill short ready short chance short playhitsound Begin GameMode if (GetCrossHairRef == GetSelf) && (OnControlDown 4) if (Player.GetEquipped MiningPick) set ready to 1 else Message "You must equip a Mining Pick to mine the rock." endif endif if (ready) set ready to 0 set bluntskill to player.getactorvalue blunt set chance to getrandompercent elseif (chance >= 10 && bluntskill <= 1) player.additem CopperOre 1 elseif (chance <= 10) message "You found nothing." set playhitsound to 1 elseif (bluntskill >= 1) message "You don't have high enough blunt skill to mine this vein." endif if (playhitsound == 1) playsound wpnhitblunt set playhitsound to 0 else playsound wpnblockblunt endif endif EndWhich part is bad?Also I've gave you a kudos. Edited July 7, 2011 by bencebence Link to comment Share on other sites More sharing options...
Faceshifter Posted July 7, 2011 Share Posted July 7, 2011 I think you have one endif too much at the end. Link to comment Share on other sites More sharing options...
bencebence Posted July 7, 2011 Author Share Posted July 7, 2011 Heh thanks, in the script I edited it was needed, maybe I've taken out something, that I didn't notice. Link to comment Share on other sites More sharing options...
Faceshifter Posted July 7, 2011 Share Posted July 7, 2011 You do have a weird alignment of elseif-s starting with if (ready). Maybe you erased something there.Thanks for the kudos, see you tomorrow ;) Link to comment Share on other sites More sharing options...
bencebence Posted July 7, 2011 Author Share Posted July 7, 2011 Bye, and thanks for all the help you gave me :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts