![]() |
|
06-05-2012
|
16 |
|
Registered User
Join Date: Dec 2011
Location: Blacksburg, Virginia
Posts: 5,459
|
I have summed this up by doing this: PHP Code:
Last edited by The Doctor; 06-05-2012 at 03:31 AM.
Reason: Nevermind
|
|
06-05-2012
|
17 |
|
Registered User
Join Date: Apr 2016
Location: Testbed
Posts: 604
|
Lol whoops. My bad on that one :-)
|
|
06-06-2012
|
18 |
|
Registered User
Join Date: Dec 2011
Location: Blacksburg, Virginia
Posts: 5,459
|
Amazing what you can do with scripts. I made an NPC in a small staff room guarded by that staff only script. The NPC inside gives whoever touches it the default staff weapons.
|
|
06-06-2012
|
19 | |
|
Registered User
Join Date: Apr 2016
Location: Testbed
Posts: 604
|
|
|
|
06-06-2012
|
20 |
|
Registered User
Join Date: Dec 2011
Location: Blacksburg, Virginia
Posts: 5,459
|
I though't I'd be easier. I can always make the Control NPC add weapons to staff when they log in.
|
|
06-06-2012
|
21 | |
|
Nerd
Join Date: Sep 2011
Location: Berlin
Posts: 3,825
|
PHP Code:
PHP Code:
|
|
|
06-06-2012
|
22 |
|
Registered User
Join Date: Dec 2011
Location: Blacksburg, Virginia
Posts: 5,459
|
I don't like indenting my code. Tried it in PHP, didn't make a difference to me. But I'll try from now on
|
|
06-07-2012
|
23 | ||
|
Banned
Join Date: Apr 2012
Location: Sweden
Posts: 287
|
There's little to no reason to keep the weapon list stored in a permanent array, so I'd change that too to a temporary one. I also hate that styling, but then again it comes down to personal preference in this case. Correct way, with my personal touch to it: PHP Code:
|
||
|
06-07-2012
|
24 |
|
Registered User
Join Date: Dec 2011
Location: Blacksburg, Virginia
Posts: 5,459
|
What difference does it make, other than making it pretty?
|
|
06-07-2012
|
25 |
|
Registered User
Join Date: Aug 2011
Location: En La Caja
Posts: 1,679
|
|
|
06-07-2012
|
26 |
|
Registered User
Join Date: Dec 2011
Location: Blacksburg, Virginia
Posts: 5,459
|
Last edited by The Doctor; 06-07-2012 at 02:35 AM.
Reason: typo
|
|
06-07-2012
|
27 |
|
Banned
Join Date: Apr 2012
Location: Sweden
Posts: 287
|
|
|
06-07-2012
|
28 |
|
Registered User
Join Date: Dec 2011
Location: Blacksburg, Virginia
Posts: 5,459
|
It's because I'm beginner and he expects something that comes from a pro.
|
|
06-08-2012
|
29 | |
|
SUPER SCRIPT-FU™
Join Date: Sep 2011
Posts: 46
|
|
|
|
06-08-2012
|
30 | |
|
Banned
Join Date: Apr 2012
Location: Sweden
Posts: 287
|
|
|