Jump to content
  • 0
Sign in to follow this  
Alexandria

Warning and Debugs Invisible on a map

Question

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.
 

Edited by Alexandria

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.