Thread: Please Help
View Single Post
  #2  
Old 10-16-2001, 06:26 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: Please Help

Quote:
Originally posted by ownerofbabylon
Alright, im working on the thing where you have to beat the mineral to 100% after it has been mined. I dont wanna use Put NPC so i have the npc already at the spot and its hidden and when the player says "Mineral at 1" it shows it at the station 1. Now I need to know how i should do it so that when someone is already at the point working on it, someone cant come in and say mineral at 1 and it replaces that persons.

And also what would be the way to do it so if no one hits it for 15 seconds it sets #a to no owner until someone hits it again and it sets the flag to owner is #a
well for your first question its easy when someone is hitting it or whatever placed a stone there you go like

this.stoneplaced=1;

and in the if/then that you check if they place it

add this

this.stoneplaced==1

next question would be really easy if you have a npc server...

but jw how are you saving what account owns it or whatever?

then mabie I can help
__________________
Thanks,
-KJL
Reply With Quote