Guild Permissions

05/04/2012 15:32 janvier123#1
I was looking for a way to see what guild permissions are checked

Yet again, its stored into a varbinary(4)

I was able to grab a pice while it was updating

Code:
declare @P1 int
set @P1=0
exec SP_GUILD_UPDATE '0909000001', 0x0003, 0x00000000, 0x00000000, 0x0120, 0x0001, 0x044C, '-Dont Party With Anyone .\\-Dont Give Items To Anyone .\\-Dont Try To Lv Anyone .\\-Dont PK Any One .\\-Feel Free To Ask For PvP And Player Accept .\\-Some More Soon .', 0x1200FFFFFFFF4775696C64206C6561646572, 0x16013E000000537562206775696C64206C6561646572, 0x10020100000053747261746567697374, 0x15030200000054686520726F79616C206775617264, 0x0F0420000000496D70657261746F72, 0x0D050200000047656E6572616C, 0x110600000000506174726F6C207465616D, 0x0C070000000053656E696F72, 0x0D0800000000547261696E6565, 0x1209000000004775696C64206D656D626572, @P1 output
select @P1
peerage_code 0 => Guild leader (Cant be edited)
Some "Permissions" cant be changed
Look at this Example

Code:
                        <input type="checkbox" name="peerage_code[]" > Invite to Guild<br>
                        <input type="checkbox" name="peerage_code[]" > Expel Member<br>
                        <input type="checkbox" name="peerage_code[]" > Change Rank<br>
                        <input type="checkbox" name="peerage_code[]" > Set Authorities<br>
                        <input type="checkbox" checked disabled > Look at Battle<br>
                        <input type="checkbox" checked disabled > View Position<br>
                        <input type="checkbox" name="peerage_code[]" > Participate in Siege Battle<br>
                        <input type="checkbox" name="peerage_code[]" > Announcement<br>
                        <input type="checkbox" name="peerage_code[]" > Register / Mod<br>
                        <input type="checkbox" checked disabled > Use Stash<br>
                        <input type="checkbox" checked disabled > See Stash<br>
                        <input type="checkbox" checked disabled > See info<br>
                        <input type="checkbox" name="peerage_code[]" > Staff Chat<br>
Already tryed

Code:
                $item = strtoupper(bin2hex($getGuildPerm['auth_info']));
                $str = str_split($item, X);
didnt help :)

So does anyone know, how the permissions are set?

Thx in advance
05/04/2012 15:42 *JayKay*#2
big thanks janvier!!!
05/04/2012 15:47 janvier123#3
maybe you didnt understand me
I want to decode the HEX to see what permissions are checked
updated first post, but thx to :)
05/04/2012 17:50 claudiodj#4
Thanks =))))