Limestone Posted May 25, 2014 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share Posted May 25, 2014 hi! can i request a script that if a player got items (that is restricted from my server) from his/her inventory, it will be auto deleted. Quote Link to comment Share on other sites More sharing options...
Brave Posted May 25, 2014 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 208 Reputation: 11 Joined: 05/31/12 Last Seen: May 15, 2016 Share Posted May 25, 2014 i only knew a npc that you typed in you can do it once a week try this! don't forget to mark as solved and my contribution point poring_w02,56,82,4 script ADMINLOGS 915,{ set .@GMLevel,70; set .@npc$,strnpcinfo(1); if (getgmlevel() < .@GMLevel) close; mes .@npc$; mes "Input the item id"; next; input .@id; next; if (getitemname(.@id) == "") { mes .@npc$; mes "Invalid id number"; close; } mes .@npc$; mes "So, you want to delete " +getitemname(.@id)+ "?"; next; if (select("- Yes:- No") - 1) close; mes .@npc$; mes "Processssinnggg..."; next; query_sql("DELETE FROM `auction` WHERE `nameid` = '" +.@id+ "'"); query_sql("DELETE FROM `cart_inventory` WHERE `nameid` = '" +.@id+ "'"); query_sql("DELETE FROM `guild_storage` WHERE `nameid` = '" +.@id+ "'"); query_sql("DELETE FROM `inventory` WHERE `nameid` = '" +.@id+ "'"); query_sql("DELETE FROM `mail` WHERE `nameid` = '" +.@id+ "'"); query_sql("DELETE FROM `storage` WHERE `nameid` = '" +.@id+ "'"); mes .@npc$; mes "Done!"; close; } Quote Link to comment Share on other sites More sharing options...
Question
Limestone
hi! can i request a script that if a player got items (that is restricted from my server) from his/her inventory, it will be auto deleted.
Link to comment
Share on other sites
1 answer 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.