Jump to content
  • 0

Auto Delete Item


Limestone

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   11
  • Joined:  05/31/12
  • Last Seen:  

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;
}
Link to comment
Share on other sites

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.

×
×
  • Create New...