StealthBot.net: Resolved: Queue Object Help - StealthBot.net

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Resolved: Queue Object Help Need help displaying queue list.

#1 User is offline   RagnarokOD Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: October-08 09

Posted August 26, 2013 - 06:35 AM

I want to display the bot's internal queue list. According to Stealthbot Wiki I can do something like that with Queue.Item but it throws me an error every time.

I am doing something like this:

Sub Event_ServerInfo(Message)
	If Instr(Message, "was banned by") > 0 Then
		For v = 1 to Queue.Count
			AddChat 9118312, "Queue for ban: " & Queue.Item(v)
		Next
	End IF
	
End Sub



I want to display the ban queue after someone is banned from channel.

The error is the following:
Scripting runtime error '438' in ODScript: (line 969; column 3)
Object doesn't support this property or method
Offending line: >>

Any info about what I'm doing wrong would be much appreciated!.

This post has been edited by RagnarokOD: August 26, 2013 - 06:44 AM


#2 User is offline   Pyro Icon

  • Silver Member
  • Icon
  • Group: Administrators
  • Posts: 692
  • Joined: July-31 09

Posted August 26, 2013 - 08:26 AM

Queue.Item() returns a QueueObj, not a string. That object wasn't documented in the wiki yet, so I went ahead and added the basics. You're looking for the .Message property.

Queue.Item(v).Message


Pyro, AKA Davnit
  • StealthBot Developer
  • Host of pyro.no-ip.biz

Website: https://davnit.net/
BNETDocs Discord: https://discord.gg/u87WVeu

Do not send me a friend request or private message. Do not ask me for help with a script I did not write.
If you have a question or need help, post a thread on the forums or join Discord and ask in a channel.

#3 User is offline   RagnarokOD Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: October-08 09

Posted August 26, 2013 - 01:55 PM

Excellent! I just tested that and it works like a charm. Thanks a lot for the help and the fast reply!

#4 User is offline   Pyro Icon

  • Silver Member
  • Icon
  • Group: Administrators
  • Posts: 692
  • Joined: July-31 09

Posted August 26, 2013 - 11:05 PM

I have marked this topic as resolved. If you did not receive a satisfactory response please reply and provide as much relevant information as possible.
Pyro, AKA Davnit
  • StealthBot Developer
  • Host of pyro.no-ip.biz

Website: https://davnit.net/
BNETDocs Discord: https://discord.gg/u87WVeu

Do not send me a friend request or private message. Do not ask me for help with a script I did not write.
If you have a question or need help, post a thread on the forums or join Discord and ask in a channel.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users