Jump to content
  • 0

[@command] How to make some @commands set by default?


Question

Posted

hello! i just want to know how can I auto-enable some commands as they log in?

So for "Lvl 0" -Group

Every member of each group will automatically enable some @commands

Such as @showexp or @showzeny

And so for "Lvl 99" -GM group

Will automatically enable: @battleignore and @speed plus its parameter

please help thanks in advance and more power.

6 answers to this question

Recommended Posts

Posted (edited)

@Malufett

Thank you very much for your reply.

- script sample -1,{

OnPCLoginEvent:

if (Group-ID == 99) {

atcommand "@speed 0";

close;

end;}

}

Lol, anyone who knows the variable of Group IDs?

It is not on wikis.

please help.

Edited by Robotculator
Posted

use this:

getgroupid()

to get the group id and this:

getgmlevel()

to get the level set in group.conf for the related group id.

Example:

group.conf

	id: 1
name: "Super Player"
inherit: ( "Player" ) /* can do everything Players can and more */
level: 0

getgmlevel()

Will return: 0

getgroupid()

Will return: 1

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...