kerbiii 5 Posted November 20, 2013 pls complete my script or teach me - script atcmd_monster -1,{ OnInit:bindatcmd "monster",strnpcinfo(3)+"::OnAtcommand",0,99;end;OnAtcommand:announce "[ "+strcharinfo(0)+" ] spawned "mobcount" "mobname" on "mapname"!",0;end;} Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 20, 2013 - script Sample -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;} Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted November 20, 2013 @patskie. When announcement I got this. [GM] spawned 1 null on prontera Why null ? Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted November 20, 2013 Now I see the problem.. I type @monster poring it will give a null value but when I type @Monster 1031 it will give the name of the monster. Ok its working perfectly Quote Share this post Link to post Share on other sites
pls complete my script or teach me
- script atcmd_monster -1,{
OnInit:
bindatcmd "monster",strnpcinfo(3)+"::OnAtcommand",0,99;
end;
OnAtcommand:
announce "[ "+strcharinfo(0)+" ] spawned "mobcount" "mobname" on "mapname"!",0;
end;
}
Share this post
Link to post
Share on other sites