Jump to content
  • 0

How to Modify Level 0 Group_id/GM Commands


Question

Posted

Hello! I'm having trouble editing my group commands for level 0 group_id. I would like normal players by default to be able to use autoloot and everything I have tried doesn't seem to be working. I have edited the script and reloaded everything in the game-client side, but when I try to use a command on a normal account, it just shows up as normal chat text, not "Invalid ID" or anything. 

 

This is my current script:

groups: (
{
	id: 0 /* group 0 is the default group for every new account */
	name: "Player"
	level: 0
	inherit: ( /*empty list*/ )
	commands: {
		/* no commands by default */
		autoloot: true
		alootid: true
		go: true

	permissions: {
		/* without this basic permissions regular players could not 
		trade or party */
		can_trade: true
		can_party: true
		command_enable: true
	}
},
{
	id: 1
	name: "Super Player"
	inherit: ( "Player" ) /* can do everything Players can and more */
	level: 0
	commands: {
		/* informational commands */
		commands: true
		charcommands: true
		help: true
		rates: true
		uptime: true
		showdelay: true
		exp: true
		mobinfo: true
		iteminfo: true
		whodrops: true
		time: true
		jailtime: true
		hominfo: true
		homstats: true
		showexp: true
		showzeny: true
		whereis: true
		/* feature commands */
		refresh: true
		noask: true
		noks: true
		autoloot: true
		alootid: true
		autoloottype: true
		autotrade: true
		request: true
		go: true
		breakguild: true
		channel: true
		langtype: true
	}
	permissions: {
	}
},

Any help would be appreciated. Thank you!

9 answers to this question

Recommended Posts

  • 1
Posted
5 hours ago, Marihna said:

Hello! I'm having trouble editing my group commands for level 0 group_id. I would like normal players by default to be able to use autoloot and everything I have tried doesn't seem to be working. I have edited the script and reloaded everything in the game-client side, but when I try to use a command on a normal account, it just shows up as normal chat text, not "Invalid ID" or anything. 

 

This is my current script:


groups: (
{
	id: 0 /* group 0 is the default group for every new account */
	name: "Player"
	level: 0
	inherit: ( /*empty list*/ )
	commands: {
		/* no commands by default */
		autoloot: true
		alootid: true
		go: true
	}
	permissions: {
		/* without this basic permissions regular players could not 
		trade or party */
		can_trade: true
		can_party: true
		command_enable: true
	}
},
{
	id: 1
	name: "Super Player"
	inherit: ( "Player" ) /* can do everything Players can and more */
	level: 0
	commands: {
		/* informational commands */
		commands: true
		charcommands: true
		help: true
		rates: true
		uptime: true
		showdelay: true
		exp: true
		mobinfo: true
		iteminfo: true
		whodrops: true
		time: true
		jailtime: true
		hominfo: true
		homstats: true
		showexp: true
		showzeny: true
		whereis: true
		/* feature commands */
		refresh: true
		noask: true
		noks: true
		autoloot: true
		alootid: true
		autoloottype: true
		autotrade: true
		request: true
		go: true
		breakguild: true
		channel: true
		langtype: true
	}
	permissions: {
	}
},

Any help would be appreciated. Thank you!

Try that. You are missing 1 right curly brace before the permissions.

  • Upvote 1
  • 1
Posted
Just now, Marihna said:

Thank you for the response. Unfortunately, that didn't appear to fix the problem either. I did add it though, so at least it is in there now. Thank you for catching it. 

Is there a specific way I should be trying to refresh the server to implement it? I've just been using @reloadscript on my GM account assuming it would refresh everything and make it work after I applied changes to the script....

You can use @reloadatcommand to refresh the groups.conf without restarting the server.

  • Upvote 1
  • 0
Posted
12 hours ago, Freya said:

Hello, have you changed the group_id in your SQL (phpmyadmin, etc.)?

Yes, the group_id is correct for the players. I double checked that before I posted. :)

  • 0
Posted
14 hours ago, GodKnows Jhomz said:

Try that. You are missing 1 right curly brace before the permissions.

Thank you for the response. Unfortunately, that didn't appear to fix the problem either. I did add it though, so at least it is in there now. Thank you for catching it. 

Is there a specific way I should be trying to refresh the server to implement it? I've just been using @reloadscript on my GM account assuming it would refresh everything and make it work after I applied changes to the script....

  • 0
Posted
6 hours ago, GodKnows Jhomz said:

You can use @reloadatcommand to refresh the groups.conf without restarting the server.

Perfect! That seemed to do it! I really appreciate your help ^^ Thank you so much!

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