MDelete

Open discussion forum. For topics that do not fit anywhere else.
Post Reply
Zaksmeer
Grandmaster Poster
Posts: 187
Joined: Mon Nov 19, 2012 8:32 pm

MDelete

Post by Zaksmeer »

Looking for anyone who may have the code to this. Used for deleting multiple items, like the copy command, but not deletemulti command.

thanks.
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Re: MDelete

Post by RusseL »

Do you mean Nuke? Destroy all items in selected area
Or destroy all by type?
Explain
Zaksmeer
Grandmaster Poster
Posts: 187
Joined: Mon Nov 19, 2012 8:32 pm

Re: MDelete

Post by Zaksmeer »

It works like the copy command but in reverse.
You can delete tile after tile, like a grass tile or a floor tile. Then delete multiple tiles by clicking on them one at a time.
Its similar to the mtele command.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: MDelete

Post by CWO »

Something like...

.mdelete
target
destroyitem
target
destroyitem?

Code: Select all

use uo;
use os;

program mdelete(who)
     SendSysMessage(who, "What would you like to destroy?");
     var targ := Target(who, TGTOPT_NOCHECK_LOS);
     while (targ)
          DestroyItem(targ);
          targ := Target(who, TGTOPT_NOCHECK_LOS);
     endwhile
endprogram
I'm thinking this code should work but not sure. I just scripted this blindly just now and I haven't scripted or even done anything with POL in years.
Post Reply