[Dev Rev II]/gmskills is open

Put your bugs you find in osRose here

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Re: [Dev Rev II]/gmskills is open

Postby lmame on Sat Oct 30, 2010 10:10 pm

Add this log:

AFTER:
  1.  
  2.         if(Config.Command_GMSkills > thisclient->Session->accesslevel || thisclient->CharInfo->isGM == false)
  3.         {
  4.            Log( MSG_GMACTION, " %s : /gmskills NOT ALLOWED" , thisclient->CharInfo->charname);
  5.            return true;
  6.         }
  7.  



ADD:
  1.  
  2. Log(MSG_INFO,"gmskills: %s:: config_smskills=%u, player access level=%u, is he GM? %u",thisclient->CharInfo->charname,Config.Command_GMSkills,thisclient->Session->accesslevel,thisclient->CharInfo->isGM);
  3.  



It's not a fix, it just adds some logs.
Then try to use /gmskills as a normal user and post the log.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Dev Rev II]/gmskills is open

Postby MightyKai on Sat Oct 30, 2010 10:21 pm

problem solved with this code:



  1. if(thisclient->Session->accesslevel < 299)
  2.         {
  3.            Log( MSG_GMACTION, " %s : /gmskills NOT ALLOWED" , thisclient->CharInfo->charname);
  4.            return true;
  5.         }
Consultation en ligne viagrasansordonnancefr.com pharmacie de Paris
MightyKai
Antares
Antares
 
Posts: 335
Joined: Mon May 24, 2010 7:34 pm

Re: [Dev Rev II]/gmskills is open

Postby lmame on Sat Oct 30, 2010 10:49 pm

Well ok but that should mean the value is wrong in the .ini... Too bad you didn't test my code before your fix.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Dev Rev II]/gmskills is open

Postby MightyKai on Sat Oct 30, 2010 11:05 pm

lmame wrote:Well ok but that should mean the value is wrong in the .ini... Too bad you didn't test my code before your fix.



no the number in the ini is 299 but i gonna add you're code.

i have check it all before i post it here .
Consultation en ligne viagrasansordonnancefr.com pharmacie de Paris
MightyKai
Antares
Antares
 
Posts: 335
Joined: Mon May 24, 2010 7:34 pm

Re: [Dev Rev II]/gmskills is open

Postby lmame on Sat Oct 30, 2010 11:13 pm

Ok :)
Anyway if it's working it's the most important.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Dev Rev II]/gmskills is open

Postby Raavi on Sun Oct 31, 2010 12:45 pm

MightyKai wrote:problem solved with this code:



  1. if(thisclient->Session->accesslevel < 299)
  2.         {
  3.            Log( MSG_GMACTION, " %s : /gmskills NOT ALLOWED" , thisclient->CharInfo->charname);
  4.            return true;
  5.         }

This doesn't check the ini anymore if you want to change the acces level you have to change the 299
Raavi
Rackie
Rackie
 
Posts: 243
Joined: Sun May 30, 2010 4:15 pm

Re: [Dev Rev II]/gmskills is open

Postby MightyKai on Sun Oct 31, 2010 12:49 pm

Raavi wrote:
MightyKai wrote:problem solved with this code:



  1. if(thisclient->Session->accesslevel < 299)
  2.         {
  3.            Log( MSG_GMACTION, " %s : /gmskills NOT ALLOWED" , thisclient->CharInfo->charname);
  4.            return true;
  5.         }

This doesn't check the ini anymore if you want to change the acces level you have to change the 299


i don't care i never change it
Consultation en ligne viagrasansordonnancefr.com pharmacie de Paris
MightyKai
Antares
Antares
 
Posts: 335
Joined: Mon May 24, 2010 7:34 pm

Previous

Return to Bugs

Who is online

Users browsing this forum: No registered users and 3 guests