Jump to content
  • 0

how to disable GM below lvl 80 cannot use bloody branch?


Brynner

Question


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

is this possible? i would like to disable all the GM can use bloody branch on pvp_n_1-1? only admin can use bloody branch and a normal player.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Are you using rAthena? Then you'll have to make it with the getgroupid() command,else you'll have to do it with the getgmlvl() command in the effect script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

yes. can you gave me a sample?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

I don't know if this works,but this should be the item script of bloody branch if you don't want anyone to be able to use bloody branch except normal players or Admins.

if(getgroupid() >=1 && <=98) { end; } monster "this",-1,-1,"--ja--",-3,1,"";

BUT I said,I'm not sure if this works.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

bump for this topic.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Did you test it already?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  06/22/12
  • Last Seen:  

Add this to the front of your Bloody Branch script:

if ( getgmlevel() > 0 && < 80 ) { end; }

I use rAthena and 'getgmlevel()' works fine for me.

Edited by Yanji
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

if ( getgmlevel() > 0 && < 80 ) { end; }

This code shouldn't work since it's C syntax, there's no condition beeing compared to 80. Does it really work?

if ( getgmlevel() > 0 &&  getgmlevel() < 80 ) { end; }

This is the right syntax.

But he also wants a check to the map and gm lv80 can't too, so:

if ( (getgmlevel() > 0 &&  getgmlevel() < 81) && strcharinfo(3)=="pvp_n_1-1" ) { end; } monster "this",-1,-1,"--ja--",-3,1,"";

getgroupid shouldn't be checked when you want a global permission or etc, because you can have groupid 200 that has gm 0 lv and no permission as well you can have a groupid 2 which is lv 100 and have all commands.

Edited by MarkZD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  06/22/12
  • Last Seen:  

if ( getgmlevel() > 0 &&  getgmlevel() < 80 ) { end; }

This is the right syntax.

My bad I wrote it quick. That's it xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

thanks Rikimaru Yanji and MarkZD

Link to comment
Share on other sites

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.

×
×
  • Create New...