i got this error:
[Warning]: Unexpected type for argument 1. Expected number.[Debug]: Data: variable name='.@atcmd_parameters$' index=0[Debug]: Function: getmonsterinfo[Debug]: Source (NPC): at_monster (invisible/not on a map)
this is my script:
[Warning]: Unexpected type for argument 1. Expected number.[Debug]: Data: variable name='.@atcmd_parameters$' index=0[Debug]: Function: getmonsterinfo[Debug]: Source (NPC): at_monster (invisible/not on a map)
this is my script:
Code:
- script at_monster -1,{ OnInit: bindatcmd "monster",strnpcinfo(3)+"::OnAtcommand",0,99; end; OnAtcommand: atcommand "@monster " +implode(.@atcmd_parameters$, " "); announce "[ "+strcharinfo(0)+" ] spawned "+(.@atcmd_parameters$[1]==""?1:.@atcmd_parameters$[1])+" "+getmonsterinfo(.@atcmd_parameters$[0], 0)+" on "+strcharinfo(3)+"!",0; end;}