I try this in my script:
$world->note($world->addtimer("commandtimer", 0, 1, 30, "", 1+4+1024+16384, "timetrig1"));
And I get 30009, script name is not in script file. This kinda boggles me since I don't think addtimer is supposed to be able to return that. Plus I don't know what it means :P
Funny enough, it does that for me also. But I'm calling this function from my plugin:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Monday, June 28, 2004, 8:59 PM -->
<!-- MuClient version 3.50 -->
<!-- Plugin "Commandcall" generated by Plugin Wizard -->
<muclient>
<plugin
name="Commandcall"
author="Simon Lundmark"
id="09b6d58de9fc047136bcac86"
language="PerlScript"
purpose="Calls commandhook() in your script (using prefix /) when the user types a command."
save_state="y"
date_written="2004-06-28 20:58:24"
requires="3.50"
version="1.0"
>
</plugin>
<!-- Get our standard constants -->
<include name="constants.pl"/>
<!-- Script -->
<script>
<![CDATA[
## On received a command ##
sub OnPluginSend
{
$world->execute("/commandhook();");
return 1;
}
#################################################
]]>
</script>
What this will do is switch to the global script space to process the alias, and then "commandhook" will be executed in global script space. I assume this is what it is all about.