Nullifier Posted August 19, 2023 Posted August 19, 2023 is there a way to make the book interface pop out whenever a command is typed, example @serverinfo, this will pop out the server info interface like the one below. Quote
0 Winterfox Posted August 19, 2023 Posted August 19, 2023 (edited) You could combine bindatcmd and readbook. *bindatcmd "<command>","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>}; This command will bind a NPC event label to an atcommand. Upon execution of the atcommand, the user will invoke the NPC event label. Each atcommand is only allowed one binding. If you rebind, it will override the original binding. Note: The default level for atcommand is 0 while the default level for charcommand is 100. The following variables are set upon execution: .@atcmd_command$ = The name of the @command used. .@atcmd_parameters$[] = Array containing the given parameters, starting from an index of 0. .@atcmd_numparameters = The number of parameters defined. Example: When a user types the command "@test", an angel effect will be shown. - script atcmd_example -1,{ OnInit: bindatcmd "test",strnpcinfo(3) + "::OnAtcommand"; end; OnAtcommand: specialeffect2 EF_ANGEL2; end; } *readbook <book id>,<page>; This command will open a book item at the specified page. Edited August 19, 2023 by Winterfox 1 Quote
Question
Nullifier
is there a way to make the book interface pop out whenever a command is typed, example @serverinfo, this will pop out the server info interface like the one below.
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.