Problem: While grinding up my Sage, I make a ton of Apprentice IV shit that isn't worth messing with.
Solution: This snippet basically runs in the background and any time an item is created, it checks to see if it contains the phrase "(Apprentice IV)" in it. If so, it destroys it.
Notes: This is pretty safe script as it comes. You can adjust this easily to destroy, move, or whatever you want particular items as they're created...simply modify the "ItemCreated" function to suit your needs.
Once you start this snippet in your scripts (which you should do before crafting), it will run until you unload isxeq2 or until you manually end the script.
Solution: This snippet basically runs in the background and any time an item is created, it checks to see if it contains the phrase "(Apprentice IV)" in it. If so, it destroys it.
Notes: This is pretty safe script as it comes. You can adjust this easily to destroy, move, or whatever you want particular items as they're created...simply modify the "ItemCreated" function to suit your needs.
Once you start this snippet in your scripts (which you should do before crafting), it will run until you unload isxeq2 or until you manually end the script.
Code:
function ItemCreated(string Line, string itemname)
{
wait 8
;Destroy any item that has just been crafted that contains "(Apprentice IV)" in the name
if (${itemname.Find[(Apprentice IV)]} > 0)
{
if ${Me.Inventory[${itemname}](exists)}
{
Me.Inventory[${itemname}]:Destroy
echo ${itemname} created -> destroyed.
}
}
}
function main()
{
AddTrigger ItemCreated "Announcement::You [EMAIL="created@*@:@itemname@\\\/a"]created@*@:@itemname@\\\/a[/EMAIL]."
echo "Script [DestroyCrafted] now active."
do
{
waitframe
ExecuteQueued
}
while ${ISXEQ2(exists)}
echo "Script [DestroyCrafted] ended."
}