![]() |
Get all staff from serveroptions
Just add this as a wNPC and say /getstaffs, voilá check RC!
Update by Skyld: pasted latest script post Update: no longer makes client RC not work wNPC: PHP Code:
PHP Code:
PHP Code:
W00t! |
Useful, indeed.
Nice work. |
Doesn't work.
Does client RC need to be in use for this to work? Edit: i found the problem: replace for (staff: temp.staffs) echo(staff); with echo(temp.staffs); |
Here's another version of it, thats currently in use on Mythic.. it checks what staff position you are, and sets a clientr. string as it. Could be useful for showing it in your profile etc.
wNPC: PHP Code:
PHP Code:
PHP Code:
|
Quote:
Yes, of course. Though it's supposed to start clientrc once you use it, at least from the looks of it. |
Quote:
Quote:
|
Second version looks better, though of course I can't think of many uses for it besides setting a profile var.
I guess the simpler way would be best unless you'd like to set up such profile vars. |
Nice work. :)
|
Useful =] rep++
|
Update: no longer tokenize account names that has any spaces in it.
wNPC: PHP Code:
PHP Code:
PHP Code:
(wee I even fixed something I misspelled in my old post!) |
Neat, but I don't like the idea of having to use clientrc to get such. Also a loadvarsfromarray() would probably be much more effecient then using a for loop through the whole serverops text :(
|
Update: no longer makes client RC not work
wNPC: PHP Code:
PHP Code:
PHP Code:
W00t! |
Wow, thanks a lot whomever gave me bad rep for "u cant script" - the script in the first post no longer works. Ever heard of reading through the entire thread for possible updates?
This is exactly why THIS should be done. Skyld, or anyone, mind editing my first post with the latest script? Cheers. |
lolol
What an arrogant person to not even read the entire thread... |
Quote:
PS: postcount++; |
All times are GMT +2. The time now is 02:44 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.