onConnect/onStart event?
onConnect/onStart event?
Is there an event that is raised on starting mudlet or connecting to a mud?
Re: onConnect/onStart event?
I think there is one called onConnect actually.
Re: onConnect/onStart event?
In the recent 2.0-rc2 release there is a: sysProfileLoaded event that gets raised after all scrips have been loaded, compiled and run, but before connecting to the server. When Mudlet establishes a network connection with the server Mudlet calls a special Lua function that can be overwritten by the user.
Re: onConnect/onStart event?
onConnect()
Ergo in some script object you put:
function onConnect()
echo("We're connected to the server.\n")
end
Ergo in some script object you put:
function onConnect()
echo("We're connected to the server.\n")
end
Re: onConnect/onStart event?
Is there a function/ event I can use when my splitscreen scrollback buffer goes back to fullscreen (i.e. ctrl enter, scrolling all the way down, etc.)? Mudlet is reporting to my mud that I have a terminal of 11 lines or so, and it doesnt update it when the splitscreen is gone.
I want to set the height manually when the splitscreen is gone so the mud doesn't page the output and irritate my data capture triggers.
Thanks.
I want to set the height manually when the splitscreen is gone so the mud doesn't page the output and irritate my data capture triggers.
Thanks.
Re: onConnect/onStart event?
There is not at the moment
Re: onConnect/onStart event?
Incidentally, that function is called even if it doesn't exist - I always used to get a 'attempt to call a nil value' error in the error log before I implemented that function just to shut it up.Heiko wrote:onConnect()
Ergo in some script object you put:
function onConnect()
echo("We're connected to the server.\n")
end
Re: onConnect/onStart event?
You should use events instead now: http://wiki.mudlet.org/w/Manual:Event_E ... ctionEvent