Jump to content
  • 0

Logging script-bound commands in atcommandlog?


Yuka

Question


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

Is there a way to log those commands?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

you mean this??


*bindatcmd "command","<NPC object name>::<event label>"{,<group level>,<group level char>,<log>};

the last parameter <log>, set it to 1.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

you mean this??


*bindatcmd "command","<NPC object name>::<event label>"{,<group level>,<group level char>,<log>};

the last parameter <log>, set it to 1.

 

Ohhh.. thank you. :D

Sorry but how do I fill <group level> and <group level char>?

Group level should be 0 I guess so that everyone can use it.

But what's group level char? I've tried 0 but then my script breaks.

Edited by Yuka
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

group level = @command

group char level = #command

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

group level = @command

group char level = #command

*bindatcmd "command","<NPC object name>::<event label>"{,<group level>,<group level char>,<log>};

So this should work right? :

-	script	testffkk	-1,{
OnTestThis:
dispbottom "hello";
end;
OnInit:
bindatcmd("testkk",strnpcinfo(0)+"::OnTestThis",0,0,1);
end;
}

It only works when I remove the last arguement. Guess my version is too old?

Edited by Yuka
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

group level = @command

group char level = #command

*bindatcmd "command","<NPC object name>::<event label>"{,<group level>,<group level char>,<log>};
So this should work right? :

-	script	testffkk	-1,{
OnTestThis:
dispbottom "hello";
end;
OnInit:
bindatcmd("testkk",strnpcinfo(0)+"::OnTestThis",0,0,1);
end;
}
It only works when I remove the last arguement. Guess my version is too old?
You may wanna set Group Char Level to 40+ that way players can't use it on others.

Also, your script should be:

-	script	testffkk	-1,{
OnTestThis:
dispbottom "hello";
end;
OnInit:
bindatcmd "testkk",strnpcinfo(0)+"::OnTestThis",0,40,1;
end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

 

 

group level = @command

group char level = #command

*bindatcmd "command","<NPC object name>::<event label>"{,<group level>,<group level char>,<log>};
So this should work right? :

-	script	testffkk	-1,{
OnTestThis:
dispbottom "hello";
end;
OnInit:
bindatcmd("testkk",strnpcinfo(0)+"::OnTestThis",0,0,1);
end;
}
It only works when I remove the last arguement. Guess my version is too old?

 

You may wanna set Group Char Level to 40+ that way players can't use it on others.

Also, your script should be:

-	script	testffkk	-1,{
OnTestThis:
dispbottom "hello";
end;
OnInit:
bindatcmd "testkk",strnpcinfo(0)+"::OnTestThis",0,40,1;
end;
}

Yes, I've thought about that as well. :P

So, I still have the problem that it does only work when I leave out the last argument for log on/off.

This is because my rAthena version is too old, right?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...