I am having a problem sending the following from within a VB Application made with VB6. I got the main concepts for mushclient from the super hp bar, which I as far have perfected for my own use on Aardwolf (aardmud.org), such as the theworld.XXX i have declared as public in a module, and I get the syntax popup to aid in the commands.
I get the following error message from the code following:
"Object variable or With block variable not set"
In the super bar however I have a wimpy option added, that sends whatever wimpy command is to the mud when HP is less than or equal to the wimpy value.
Do I have to call MY program from inside a plugin, and pass the callingworld option like I see in the super bar?
OR
Can I get the "callingworld" from the mushclient program from some function, or built in COM command ?
Any advice on this topic would be great.
Thanks in advance,
Onoitsu2
I get the following error message from the code following:
"Object variable or With block variable not set"
Dim TriggerName, TriggerMatch, ResponseText, SoundFileName, ScriptName As String
Dim Flags As Long
Dim Colour, Wildcard, SendTo, Sequence As Integer
TriggerName = "HB_Trigger"
TriggerMatch = "^\<(\d+)\/(\d+)hp (\d+)\/(\d+)mn (\d+)\/(\d+)mv (\d+)tnl Gold: (\d+)(\w?\w?(.*?))?\>"
ResponseText = ""
Flags = eEnabled + eTriggerRegularExpression
Colour = -1 'No Colour Change
Wildcard = 0 'Do Not Copy Any Wildcard To Clipboard
SoundFileName = "-1"
ScriptName = "-1"
SendTo = 0 'Send To World = 0, Sent To Command = 1, Send To Script = 12
Sequence = 100
result = theworld.AddTriggerEx("TriggerName", "TriggerMatch", "ResponseText", Flags, Colour, Wildcard, "SoundFileName", "ScriptName", SendTo, Sequence)
theworld.Note "test"
In the super bar however I have a wimpy option added, that sends whatever wimpy command is to the mud when HP is less than or equal to the wimpy value.
Do I have to call MY program from inside a plugin, and pass the callingworld option like I see in the super bar?
OR
Can I get the "callingworld" from the mushclient program from some function, or built in COM command ?
Any advice on this topic would be great.
Thanks in advance,
Onoitsu2