Jump to content

Question

1 answer to this question

Recommended Posts

Posted

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;
}

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...