Hello there I am again :)
I hope you can help me. I am using this alias to do research in Mud. Of course there are objects that don't exist because there is no description.
So when I run the alias I get the feedback “XY nicht gefunden.”
Now, if this happens, I want the alias not to save this in the log.
Now I have customized the alias.
But unfortunately Mushclient tells me this error.
Does anyone have any other ideas?
Thanks!
/edit: Ah, that's because the GetResponse function does not exist in the MUSHclient. The MUSHclient does not have a built-in system to wait directly for the server response and process it before taking any further action. Right?
I hope you can help me. I am using this alias to do research in Mud. Of course there are objects that don't exist because there is no description.
So when I run the alias I get the feedback “XY nicht gefunden.”
Now, if this happens, I want the alias not to save this in the log.
<aliases>
<alias
match="^b ([A-z]+)$"
enabled="y"
group="Forschen"
regexp="y"
send_to="12"
sequence="100"
>
<send>SetLogInput (true)
vitem = "%1"
LogSend("untersuche "..vitem)
LogSend("lausche "..vitem)
LogSend("rieche "..vitem)
LogSend("beruehre "..vitem)
LogSend("fuehle "..vitem)
FlushLog()
</send>
</alias>
</aliases>
Now I have customized the alias.
<aliases>
<alias
match="^b ([A-z]+)$"
enabled="y"
group="Forschen"
regexp="y"
send_to="12"
sequence="100"
>
<send>
vitem = "%1"
SendNoEcho("untersuche "..vitem)
SendNoEcho("lausche "..vitem)
SendNoEcho("rieche "..vitem)
SendNoEcho("beruehre "..vitem)
SendNoEcho("fuehle "..vitem)
function CheckResult(result)
if not string.find(result, "nicht gefunden") then
SetLogInput(true)
LogSend("untersuche "..vitem)
LogSend("lausche "..vitem)
LogSend("rieche "..vitem)
LogSend("beruehre "..vitem)
LogSend("fuehle "..vitem)
FlushLog()
end
end
GetResponse("CheckResult")</send>
</alias>
</aliases>
But unfortunately Mushclient tells me this error.
[string "Alias: "]:22: attempt to call global 'GetResponse' (a nil value)
stack traceback:
[string "Alias: "]:22: in main chunk
Does anyone have any other ideas?
Thanks!
/edit: Ah, that's because the GetResponse function does not exist in the MUSHclient. The MUSHclient does not have a built-in system to wait directly for the server response and process it before taking any further action. Right?