Thanks!

Code: Select all
// Ensure this user can use this command..
if (permission > PChar->m_GMlevel)
{
ShowWarning("cmdhandler::call: Character %s attempting to use higher permission command %s\n", PChar->name.c_str(), cmdname.c_str());
// Delete the cmdprops table..
lua_pushnil(m_LState);
lua_setglobal(m_LState, "cmdprops");
return -1;
}
i had no errors or warnings when i tried (they didn't work for me either), but it was 4 AM and i didn't really feel like looking up whyatom0s wrote:If the permission required is higher then your GM level it wont allow the command to fire.
Does your server console report anything? Any errors or warnings displayed when you try to use a command?
Not that I know of, but I'll check real quick to see. One thing that is new is that when it's loading the map server, it says:atom0s wrote:Are you sure that you have adjusted your characters GM level in the database properly to reflect that?
The new command update works just like the old system did in terms of power to use a command.
If the permission required is higher then your GM level it wont allow the command to fire.Code: Select all
// Ensure this user can use this command.. if (permission > PChar->m_GMlevel) { ShowWarning("cmdhandler::call: Character %s attempting to use higher permission command %s\n", PChar->name.c_str(), cmdname.c_str()); // Delete the cmdprops table.. lua_pushnil(m_LState); lua_setglobal(m_LState, "cmdprops"); return -1; }
Does your server console report anything? Any errors or warnings displayed when you try to use a command?
Click here for a guide on scripting missions.<Giblet[NewBrain]> kj with this first step would be fine on my shit
Oh, dang. I'm stupid. XD Building now. Thank you very much!Xx_DeMoLiSH wrote:You need to rebuild DSGameServer when there are changes to the src/map/ .cpp or .h files.