Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Please Help (https://forums.graalonline.com/forums/showthread.php?t=14717)

ownerofbabylon 10-16-2001 05:49 AM

Please Help
 
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

KJS 10-16-2001 06:26 AM

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

ownerofbabylon 10-16-2001 08:40 AM

thanks, strings

ownerofbabylon 10-17-2001 02:45 AM

*bump*

btedji 10-17-2001 03:22 AM

and how do you suppose your server will get up at a pace like this?

Petey84 10-17-2001 05:21 AM

Shakaku:
If you have to beat it with a certain weapon, use triggeraction :D, explain a lil more, i can try an help.

ownerofbabylon 10-17-2001 08:05 AM

Quote:

Originally posted by btedji
and how do you suppose your server will get up at a pace like this?
im learning!

Xaviar 10-17-2001 11:27 PM

Quote:

Originally posted by btedji
and how do you suppose your server will get up at a pace like this?
Helmut's trying to learn how to script, I'm the one that does most of the actual scripts.

dragoonvenganc 10-18-2001 12:28 AM

Please people say if it is for a server and if so p2p or not.

there is a big differents in the scripts


All times are GMT +2. The time now is 04:19 PM.

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