Jump to content
UBot Underground

setting gender from UI to name in signup?


Recommended Posts

Hello all,

I am having a hard time trying to figure out how to force a specific gender based name in a bot I'm working on.

Basically there is no gender in the form I'm filling out, but I want to be able to allow the end user to pick either male or female and have that reflect in the account signup's username and or first name. The way gender is chosen now in ubot v4 it is either male female or any, so is it even possible to pass a variable from the UI to control which is chosen for the first name?

 

I have a dropdown set with either male or female as selections and was thinking of how to use the set command on this. Any insight/ideas? thanks peeps!

Link to post
Share on other sites

ui drop down("Gender", ",Male,Female", #gender)
if($comparison(#gender, "=", "Male")) {
   then {
       reset account("Male")
   }
   else if($comparison(#gender, "=", "Female")) {
       reset account("Female")
   }
   else {
       reset account("Any")
   }
}


  • Like 2
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...