BeBot - An Anarchy Online and Age Of Conan chat automaton
Development => Module Requests => Topic started by: Swiftgank on November 18, 2006, 03:40:02 pm
-
Is it possible to write a module that enables the user to set weather he or she wants to be auto invited to bot at logon or not. like !auto on (bot send you invite to guest at logon) !auto off (bot only show you logged on in chat but dont send invite to guest.). Insted of having auto invite all or none setting. some dont like getting invites every logon, some does.
!autoinv on (for getting invites at logon)
!autoinv off (for not getting invites at logon) or something similar.
-
This code's a bit old/modified from what's posted on the forums, but you can get the idea. :)
Using /tells:
!inv on
!inv off
-
thanks :)
-
Naturalistic,
Is there a way to code autoinv.php so that when one logs in and they're on the buddy list but not on the member list, that it only autoinv's the "guest" and not the "member"? I looked at the coding and am unsure. Our org is using 2.10 with logon.php and autoinv.php. But it autoinv's all rather than just the folks from the guestlist.
Just thinkin' out loud...
-
Yes, under the function buddy, just do a check
if (user logs in), check to see if they are in the guest list, if they are, invite.
Too tired atm to post the code, can tomorrow >_<
-
I had a look at the stock autoinv for 0.3.3 and the buddy function does a check to see if the character logging in is a buddy. I changed the check based on a code comment in the Bot.php file to check for a value of 2:
if (($this -> auto == 1) && ($msg == 1) && ($this -> bot -> is_member($name) == 2))
The is member function had this to say:
is_member($name) : returns if person is a member of the bot (true = member, 2 = guest, false = unknown)
Didn't seem to work for me though.