automacro sample {
pm "info"
exclusive 1
call {
$jobID = @eval ($::players{$::playersID[$id]}->{jobID})
$Baselvl = @eval ??????
do log "$.lastpm" job id is = $jobID and base level is = $Baselvl
}
}
can someone help me on how to make macro detect the players base level that pm'ed me?
or what is the eval code for my sample macro above?
thanks in advance.
#### Step 2: update actor information ####
$actor->{ID} = $args->{ID};
$actor->{jobID} = $args->{type};
$actor->{type} = $args->{type};
$actor->{lv} = $args->{lv};
where do put this? I've tried using pasting this to the macro itself and saved it in a variabl and made the bot pm me about the info but it didn't do anything. I really want to learn all of this but I still don't know where to find the information. Thanks in advance!
automacro samplelocation1 {
pm "sample1"
exclusive 1
call {
$loc = do eval use Data::Dumper; Log::message Dumper $::players{$::playersID[$id]}
do log player's location pm'ed you is $loc
}
}
console error
(From: xxxxxx) : sample1
[macro] automacro samplelocation1 triggered. Error in 0: $loc = do eval use Data::Dumper; Log::message Dumper
$::players{$::playersID[$id]}
Warning: Ignoring Unknown Command in sub-line 1: (Log::message Dumper
$::players{$::playersID[$id]}) Unknown command 'log'. Please read the documentation for a list of commands.