Lets see one then. We don't want a script that will play 'alert()' when <= 1 Item is contained. That would defeat the purpose of checkin if it was looted or not. Lets see one done..
Printable View
You're welcome!Code:local items = {"Magic Light Wand", "Orb", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex", "Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer", "Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod", "Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Berserker", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang", "Black Pearl"} -- Items by ID or name
dofile("Forgee.lua") -- getSpotByID() saves me a few lines of code :P
while true do
Corpse = Container.GetLast()
if string.find(Corpse:Name(), "Dead") or string.find(Corpse:Name(), "Slain") or string.find(Corpse:Name(), "Remains") then
for i = 1, #items do
if type(items[i]) == "string" then
Spot = getSpotByID(Item.GetID(items[i]), Corpse:Name())
else
Spot = getSpotByID(items[i], Corpse:Name())
end
if Spot then
alert()
sleep(1000)
break
end
end
end
wait(200, 600)
end
Worried about using Forgee.lua, but uses 200000000 Items in Items List.. SMH
Nice though, testing now..
I have used this, and working. Although, the volume is like 100x higher than the rest, nothing I can do about it since it is something @DarkstaR has to fix!
Yes works great. But I removed Forgees lines for Print, since it was spamming up my Server log. LOL.
The first time the alert() played, volume on my PC is on 100% and my laptop has Beats by Dre speakers, and it played loud as fuck, I jumped 10ft high, like a little punk ass bitch :O
Ye, this is a problem in my opinion "the sound", since that will majke the other alarms barely noticeable. I posted a suggestion of this a while back, but do not know if he has tuned the volume down of that file yet. I tried to do it manually, but did not work.
Yes other than that, and the fact that its pointless if you have noobs around you (which is why you would use it to begin with), its pretty good. Now only if we can have it scan the Server Log for the items dropped, it would be awesome. It sucks when people throw empty flasks, or gold coins on your monsters body before you can open them. In this case, the looter alarm is kinda pointless :P
To remove the crazy sound (Siren.wav):
1- go to C:\Program Files (x86)\XenoBot\Sounds (may change depending on your OS)
2- Rename Siren.wav to Siren Backup.wav
3- Download a sound you like from http://www.wavsource.com/ or any other source
4- Move the new file to C:\Program Files (x86)\XenoBot\Sounds and name it as Siren.wav
no need to restart anything, just call alarm() and you should hear the new sound.
ps. Thx Jakob for the script!
I recommend you(user of the script) to remove all loot that is not important to you from the list provided by Jakob, this way it will run faster.
I know this a smll amount of editing, and I have to credit Stusse since I saw this in one of his settings first, but you just click advanced. Check "use list" and "hide nothing" and you just put a list of the expensive items you dont want to miss. This way it will only report loot when one of these expensive items drops. It doesn't have any alarms, but it works pretty good.
Was this overlooked? Or its just not good enough?
I'm not being sarcastic, I know those last questions might come across that way, but I am genuinly just curious.
What I want to a HUD like Soul4Soul's thats easy to integrate into every script!!