Robotculator Posted May 23, 2012 Posted May 23, 2012 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. Quote
malufett Posted May 23, 2012 Posted May 23, 2012 do something like this - script sample -1,{ OnPCLoginEvent: atcommand "@speed 0"; close; end; } Quote
Robotculator Posted May 23, 2012 Author Posted May 23, 2012 (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 May 23, 2012 by Robotculator Quote
malufett Posted May 23, 2012 Posted May 23, 2012 use this to get account group ID or gm level getgmlevel() Quote
Bahmut Posted May 23, 2012 Posted May 23, 2012 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 Quote
Robotculator Posted May 23, 2012 Author Posted May 23, 2012 Weee! Thank you very much guys! I will start coding as soon as i get back to home. Quote
malufett Posted May 23, 2012 Posted May 23, 2012 @Bahmut oh didn't see that...thanks for that info... Quote
Question
Robotculator
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.