Warning and Debugs Invisible on a map

Alexandria

New member
Messages
341
Points
0
Location
localhost
Hello there,

I'm wondering why I'm getting this error when the time comes up.

[Warning]: script: buildin_atcommand: failed to execute command '@testb'[Debug]: Source (NPC): TEST#RoUG (invisible/not on a map)[Debug]: Source (NPC): TEST#RoUG (invisible/not on a map)

This is my npc:

- script TESTB#RoUG -1,{OnInit:bindatcmd("TESTB","TESTB#RoUG::OnAtcommand2");OnMon0001:atcommand "@testb";end;OnPCLoginEvent:OnAtcommand2:announce "hello world!",bc_self,0x7dfff1;end;}

How can i fix it? Thank you.
 

 
Last edited by a moderator:
To me, it seems you're having a case error with the command. Script commands created this way are case sensitive, so if you bind "TESTB" you can't make use of the atcommand "@testb", you should use "@TESTB" instead. That command failed message appears on script init and on that day since there's no player to give "unknown command" messages.

P.S.: Anyways, if you managed to run that broadcast via automated ways (Init and Monday0001), on the cases the announce would launch, there'd be no player attached to the script, thus no "self" to whom launch the bc_self.

 
actually your script is calling for TESTB#RoUG while your source @testb is calling for TEST#RoUG

 
Back
Top