Jump to content
  • 0

Logging script-bound commands in atcommandlog?


Question

6 answers to this question

Recommended Posts

Posted

you mean this??


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

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

Posted (edited)

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
Posted (edited)

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
Posted

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;
}
Posted

 

 

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?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...