nikki1200 Posted October 30, 2013 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 34 Reputation: 0 Joined: 10/06/13 Last Seen: April 25, 2020 Share Posted October 30, 2013 Hi All, Seeking for your assistance on how to check the inventory and storage of the player. Please advise, Thanks, Quote Link to comment Share on other sites More sharing options...
Capuche Posted October 30, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted October 30, 2013 how to check the inventory getinventorylist or countitem storage of the player. by sql You want to search a specific item or to see all the item of the player? Quote Link to comment Share on other sites More sharing options...
nikki1200 Posted October 30, 2013 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 34 Reputation: 0 Joined: 10/06/13 Last Seen: April 25, 2020 Author Share Posted October 30, 2013 how in sql?? Quote Link to comment Share on other sites More sharing options...
Patskie Posted October 30, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 6 minutes ago Share Posted October 30, 2013 Try : prontera,150,150,0 script Sample 100,{ mes "Input player"; input .@player$; next; mes .@player$+ " have the following items on his storage :"; .account_id = getcharid(3, .@player$); query_sql "SELECT COUNT(`nameid`) FROM `storage` WHERE `account_id` = '" +.account_id+ "'",.@total; while ( .@count < .@total ) { query_sql "SELECT `nameid` FROM `storage` WHERE `account_id` = '" +.account_id+ "' LIMIT 128 OFFSET "+.@offset,.@list; .@i = 0; .@size = getarraysize( .@list ); while ( .@i < .@size ) { mes "- " +getitemname(.@list[.@i]); .@count++; .@i++; } .@offset += .@size; deletearray .@list, .@size; } close; } Quote Link to comment Share on other sites More sharing options...
Question
nikki1200
Hi All,
Seeking for your assistance on how to check the inventory and storage of the player.
Please advise,
Thanks,
Link to comment
Share on other sites
3 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.