Fresh prince Posted January 5, 2015 Posted January 5, 2015 Hello rathena, Requesting a npc that will tell you the account ids that has 400+ items on their storage. Example is when you click a npc, it will say Users: 10000 13000 13669 14778 16876 Has more than 400 items on their storage. Thanks!! This is for only a game master's use ofcourse. Thanks you! Little help here please? Quote
1 Capuche Posted January 8, 2015 Posted January 8, 2015 Try SELECT `account_id`,COUNT( `nameid` ) AS `total` FROM `storage` GROUP BY `account_id` HAVING `total` >= 400 ORDER BY `total` DESC 1 Quote
Emistry Posted January 6, 2015 Posted January 6, 2015 try query_sql( "SELECT `account_id`,COUNT( `nameid` ) AS `total` FROM `storage` WHERE `total` >= 400 GROUP BY `account_id` ORDER BY `total` DESC",.@aid,.@total ); .@aid_size = getarraysize( .@aid ); for ( .@i = 0; .@i < .@aid_size; .@i++ ) mes .@aid[.@i]+" - "+.@total[.@i]+" items"; close; 1 Quote
Fresh prince Posted January 6, 2015 Author Posted January 6, 2015 Thanks Master Emistry, it produced an error like this. : DB error - unknown column 'total' in 'where clause' regards Quote
Fresh prince Posted January 9, 2015 Author Posted January 9, 2015 Thanks very much Sir Capuche and Emistry! Quote
Question
Fresh prince
Hello rathena,
Requesting a npc that will tell you the account ids that has 400+ items on their storage.
Example is when you click a npc, it will say
Users:
10000
13000
13669
14778
16876
Has more than 400 items on their storage.
Thanks!!
This is for only a game master's use ofcourse. Thanks you!
Little help here please?
4 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.