Meister Posted August 10, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Share Posted August 10, 2012 (edited) ACMD_FUNC(storage) { if(map[sd->bl.m].flag.nostorage || pc_get_group_level < 2) { clif_displaymessage(sd->fd, msg_txt(527)); return -1; } else { nullpo_retr(-1, sd); } it doesn't recognize the group id when admin use @storage command he/she can't use the command. Can someone fix this? Thanks! Edited August 10, 2012 by emong Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 10, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 10, 2012 you mean this ? pc_get_group_level(sd) Quote Link to comment Share on other sites More sharing options...
Meister Posted August 10, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted August 10, 2012 (edited) you mean this ? pc_get_group_level(sd) Yeah. But didn't work when trying the command. Even my admin account can't use @storage command at a particular map where mapflag nostorage is issued. How to solve it? Here's my current code.. ACMD_FUNC(storage) { if(map[sd->bl.m].flag.nostorage || pc_get_group_id(sd) < 2) { clif_displaymessage(sd->fd, msg_txt(527)); return -1; } else { still my admin account can't use storage at a particular map.. Edited August 10, 2012 by emong Quote Link to comment Share on other sites More sharing options...
Ryuuzaki Posted August 10, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 87 Reputation: 13 Joined: 02/15/12 Last Seen: September 11, 2024 Share Posted August 10, 2012 ACMD_FUNC(storage) { if(map[sd->bl.m].flag.nostorage || pc_get_group_level < 2) { clif_displaymessage(sd->fd, msg_txt(527)); return -1; } else { nullpo_retr(-1, sd); } Into ACMD_FUNC(storage) { if(map[sd->bl.m].flag.nostorage && pc_get_group_level < 2) { clif_displaymessage(sd->fd, msg_txt(527)); return -1; } else { nullpo_retr(-1, sd); } Your script issues all users on maps with no storage flag to block storage access... OR if group_id is lower than 2. So no player but the ones group_id higher than 2 can open it IN GENERAL 1 Quote Link to comment Share on other sites More sharing options...
Meister Posted August 10, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted August 10, 2012 Geez! Thanks man! Noob me! I declared it as || ( Quote Link to comment Share on other sites More sharing options...
Ryuuzaki Posted August 10, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 87 Reputation: 13 Joined: 02/15/12 Last Seen: September 11, 2024 Share Posted August 10, 2012 np mate, happens to everyone xD 1 Quote Link to comment Share on other sites More sharing options...
Meister Posted August 10, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted August 10, 2012 Thanks again! Quote Link to comment Share on other sites More sharing options...
Question
Meister
it doesn't recognize the group id when admin use @storage command he/she can't use the command. Can someone fix this? Thanks!
Edited by emongLink to comment
Share on other sites
6 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.