Jump to content

Question

Posted

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

Posted

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;
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...