Brynner Posted June 24, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 1973 Reputation: 207 Joined: 01/08/12 Last Seen: 2 hours ago Share Posted June 24, 2012 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. Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted June 24, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted June 24, 2012 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. Quote Link to comment Share on other sites More sharing options...
Brynner Posted June 24, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 1973 Reputation: 207 Joined: 01/08/12 Last Seen: 2 hours ago Author Share Posted June 24, 2012 yes. can you gave me a sample? Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted June 24, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted June 24, 2012 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. Quote Link to comment Share on other sites More sharing options...
Brynner Posted June 24, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 1973 Reputation: 207 Joined: 01/08/12 Last Seen: 2 hours ago Author Share Posted June 24, 2012 bump for this topic. Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted June 24, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted June 24, 2012 Did you test it already? Quote Link to comment Share on other sites More sharing options...
Yanji Posted June 24, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 06/22/12 Last Seen: October 5, 2012 Share Posted June 24, 2012 (edited) 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 June 24, 2012 by Yanji Quote Link to comment Share on other sites More sharing options...
MarkZD Posted June 24, 2012 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 134 Reputation: 35 Joined: 02/27/12 Last Seen: April 5, 2022 Share Posted June 24, 2012 (edited) 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 June 24, 2012 by MarkZD Quote Link to comment Share on other sites More sharing options...
Yanji Posted June 24, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 06/22/12 Last Seen: October 5, 2012 Share Posted June 24, 2012 if ( getgmlevel() > 0 && getgmlevel() < 80 ) { end; } This is the right syntax. My bad I wrote it quick. That's it xD Quote Link to comment Share on other sites More sharing options...
Brynner Posted June 25, 2012 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 1973 Reputation: 207 Joined: 01/08/12 Last Seen: 2 hours ago Author Share Posted June 25, 2012 thanks Rikimaru Yanji and MarkZD Quote Link to comment Share on other sites More sharing options...
Question
Brynner
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.