Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
I want to check whether the player is in crew X with my bot. Is it possible? If yes, how?
Offline
case "add"
21 Boolean Crew Member Value indicating whether the player is a member of the crew to which belongs this world.
Offline
I know, but I want to test if the player belongs to specific crew, not just the crew to which belongs this world
Offline
Ninja is right
You check if the user is a member of that crew
if(user == crewMem)
{
do something
}
else
{
is not member
}
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Ninja is right
You check if the user is a member of that crew
if(user == crewMem)
{
do something
}
else
{
is not member
}
Whaaaaaaaaaaaaa... What type is "user", what type is "crewMem". You suggest to make there a list of members of every crew I need to check for?
Offline
Yeah, I'm pretty sure (could be wrong) there is no way to check unless it is the crew's, in which case you can use ninjasupeatsninja's suggestion.
Other than that, make it a suggestion ^^
Offline
Maybe in the public player object?
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
Offline
I have been looking in the swf code. And this was the last I updated, http://pastebin.com/S4NNwsKC
I can maybe fix a crew lookup.
Offline
Took me a while to reverse code from the swf. But here do you have the code. If you want to read more informations, read the swf.
http://pastebin.com/0UUSj2uu
Offline
Xfrogman43 wrote:Ninja is right
You check if the user is a member of that crew
if(user == crewMem)
{
do something
}
else
{
is not member
}Whaaaaaaaaaaaaa... What type is "user", what type is "crewMem". You suggest to make there a list of members of every crew I need to check for?
It's called pseudo code... It's not the exact code like Capasha provided
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Pages: 1
[ Started around 1732751467.7866 - Generated in 0.061 seconds, 12 queries executed - Memory usage: 1.53 MiB (Peak: 1.7 MiB) ]