Meister Posted August 10, 2012 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
Meister Posted August 10, 2012 Author 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
Ryuuzaki Posted August 10, 2012 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
Meister Posted August 10, 2012 Author Posted August 10, 2012 Geez! Thanks man! Noob me! I declared it as || ( Quote
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 emong6 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.