Ir para conteúdo
  • Cadastre-se

Posts Recomendados

 

 

Antes esse era meus problemas com o autoloot, agora eu consegui resolver de maneira simples.

 

Segue como resolve!

 

 

Qual servidor ou website você utiliza como base? 

OTServBR-Global-master

Qual o motivo deste tópico? 

Arrumar o erro que dá na Distro, acho que por conta deste erro não pega loot

Está surgindo algum erro? Se sim coloque-o aqui. 

Citar

Screenshot_3.thumb.png.601bc4be36785f76fcaaf6e6ac062e13.png

 

Você tem o código disponível? Se tiver publique-o aqui: 

Não sei qual código precisa?

 

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

Screenshot_3.thumb.png.601bc4be36785f76fcaaf6e6ac062e13.pngScreenshot_4.thumb.png.5327ebb0a91d115c2243d6dc05891651.png

 

Editado por Deltaxx
Estou em dúvida se o problema é website, script, ou programação... (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
10 minutos atrás, GabrielSv disse:

qual versãodo distro vc esta usando ?

 

1.3.10

 

@GabrielSv 

Editado por Deltaxx (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
ALTER TABLE `player_autoloot` ADD `count_id` INT(11) DEFAULT 0;

nao sei se vai te ajudar mas nao custa tentar 

 

executa essa query na sua database

Link para o post
Compartilhar em outros sites
10 horas atrás, GabrielSv disse:

ALTER TABLE `player_autoloot` ADD `count_id` INT(11) DEFAULT 0;

nao sei se vai te ajudar mas nao custa tentar 

 

executa essa query na sua database

 

Agora deu erro em outra tabela, porém ela não existe...

image.thumb.png.2461530a200ff9f5afdc22e3c212f579.png

 

@GabrielSv

Editado por Deltaxx (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

* Query para SQLITE:

CREATE TABLE player_autoloot_persist ( 
    player_guid             INTEGER         NOT NULL,
    cont_id INT             NOT NULL
                                   DEFAULT 0,
    item_id   INT             NOT NULL
                                   DEFAULT 0,
    PRIMARY KEY ( player_guid ) 
);

* Query para MySql:

CREATE TABLE player_autoloot_persist (
    player_guid        INT NOT NULL AUTO_INCREMENT,
    cont_id       INT             NOT NULL
                              DEFAULT 0,
    item_id       INT             NOT NULL
                              DEFAULT 0,
    PRIMARY KEY ( player_guid ) 
);

 

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites
16 horas atrás, Vodkart disse:

* Query para SQLITE:


CREATE TABLE player_autoloot_persist ( 
    player_guid             INTEGER         NOT NULL,
    cont_id INT             NOT NULL
                                   DEFAULT 0,
    item_id   INT             NOT NULL
                                   DEFAULT 0,
    PRIMARY KEY ( player_guid ) 
);

* Query para MySql:


CREATE TABLE player_autoloot_persist (
    player_guid        INT NOT NULL AUTO_INCREMENT,
    cont_id       INT             NOT NULL
                              DEFAULT 0,
    item_id       INT             NOT NULL
                              DEFAULT 0,
    PRIMARY KEY ( player_guid ) 
);

 

 

Os erros da distro sumiram, porém ainda não pega o loot...

Screenshot_2.thumb.png.426b33eb74157edcdb6eff221191a38e.png

 

 

 

data\talkactions\talkactions.xml

<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
	
	<!-- PLAYERS -->
	<talkaction words="!bless" script="bless_func.lua" />
	
	<!-- Gods -->
	<talkaction words="/addskill" separator=" " script="add_skill.lua" />
	<talkaction words="/r" separator=" " script="removething.lua" />
	<talkaction words="/chameleon" separator=" " script="chameleon.lua" />
	<talkaction words="/clean" script="clean.lua" />
	<talkaction words="/closeserver" separator=" " script="closeserver.lua" />
	<talkaction words="/save" separator=" " script="save.lua" />
	<talkaction words="/i" separator=" " script="create_item.lua" />
	<talkaction words="/ghost" script="ghost.lua" />
	<talkaction words="/hide" script="hide.lua" />
	<talkaction words="/teleport" access="1" event="script" value="talkteleport.lua"/>
	<talkaction words="/mccheck" script="mccheck.lua" />
	<talkaction words="/openserver" script="openserver.lua" />
	<talkaction words="/newteleport" access="1" event="script" value="newteleport.lua"/>
	<talkaction words="/reload" separator=" " script="reload.lua" />
	<talkaction words="/raid" separator=" " script="force_raid.lua" />
	<talkaction words="/owner" separator=" " script="owner.lua" />
	<talkaction words="/m" separator=" " script="place_monster.lua" />
	<talkaction words="/s" separator=" " script="place_npc.lua" />
	<talkaction words="/summon" separator=" " script="place_summon.lua" />
	<talkaction words="/addach" separator=" " script="achievements.lua" />
	<talkaction words="/removeach" separator=" " script="achievements.lua" />
	<talkaction words="/set" separator=" " script="setstorage.lua" />
	<talkaction words="/get" separator=" " script="getstorage.lua" />
	<talkaction words="/reportadm" separator=" " script="reportadm.lua"/>
	<talkaction words="/addgm" separator=" " script="add_gm.lua" />
	<talkaction words="/attr" separator=" " script="attributes.lua" />
	<talkaction words="/emptyhouses" script="emptyhouses.lua" />

	<!-- Gamemasters -->
	<talkaction words="/ban" separator=" " script="ban.lua" />
	<talkaction words="/ipban" separator=" " script="ipban.lua" />
	<talkaction words="/unban" separator=" " script="unban.lua" />
	<talkaction words="/up" script="up.lua" />
	<talkaction words="/down" script="down.lua" />
	<talkaction words="/c" separator=" " script="teleport_creature_here.lua" />
	<talkaction words="/goto" separator=" " script="teleport_to_creature.lua" />
	<talkaction words="/gotopos" separator=" " script="teleport_to_pos.lua" />
	<talkaction words="/t" script="teleport_home.lua" />
	<talkaction words="/town" separator=" " script="teleport_to_town.lua" />
	<talkaction words="/a" separator=" " script="teleport_ntiles.lua" />
	<talkaction words="/info" separator=" " script="info.lua" />
	<talkaction words="/kick" separator=" " script="kick.lua" />
	<talkaction words="/B" separator=" " script="broadcast.lua" />
	<talkaction words="/looktype" separator=" " script="looktype.lua" />
	<talkaction words="/mute" script="mute.lua" />
	<talkaction words="/addstutor" separator=" " script="add_stutor.lua" />

	<!-- Senior Tutors -->
	<talkaction words="/addtutor" separator=" " script="add_tutor.lua" />
	<talkaction words="/removetutor" separator=" " script="remove_tutor.lua" />

	<!--Tutors -->
	<talkaction words="/mute" separator=" " script="mute.lua" />

	<!-- player talkactions -->
	<talkaction words="!buyhouse" script="buyhouse.lua" />
	<talkaction words="!leavehouse" script="leavehouse.lua" />
	<talkaction words="!sellhouse" separator=" " script="sellhouse.lua" />
	<talkaction words="!uptime" script="uptime.lua" />
	<talkaction words="!online" script="online.lua" />
	<talkaction words="!serverinfo" script="serverinfo.lua" />
	<talkaction words="!report" separator=" " script="adminreport.lua"/>
	<talkaction words="!teleport" script="fly.lua"/>
	<talkaction words="!aol" event="script" value="aol.lua"/>
	<talkaction words="!autoloot" script="autoloot.lua" />
	<talkaction words="!add" separator=" " script="addautoloot.lua" />

	<!-- Cast System -->
	<talkaction words="!cast" separator=" " script="start_cast.lua" />
	<talkaction words="!stopcast" script="stop_cast.lua" />
	<talkaction words="!spectators" script="spectators.lua" />
</talkactions>

data\talkactions\scripts\addautoloot.lua

function onSay(player, words, param)
	local monsterType = MonsterType(param)
	if not monsterType then
		player:sendCancelMessage("Can't find monster.")
		return false
	end
	
	player:registerEvent('autoloot')
	local title = "Autoloot Helper!"
    local message = "Loots of "..string.gsub(" "..string.lower(param), "%W%l", string.upper):sub(2)..":"
	local lootBlockList = monsterType:getLoot()
	table.sort(lootBlockList, function(a, b) return ItemType(a.itemId):getName() < ItemType(b.itemId):getName() end)
		
		lootBlockListm[getPlayerGUID(player)] = lootBlockList
	lootBlockListn[getPlayerGUID(player)] = param	

	local window = ModalWindow(1001, title, message)
	local check, sum = {}, 1
	for _, loot in pairs(lootBlockList) do
		local status = ''
		if player:getAutoLootItem(lootBlockList[sum].itemId) then
			status = '*'
		end
		if not table.contains(check, ItemType(lootBlockList[sum].itemId):getName()) then
			table.insert(check, ItemType(lootBlockList[sum].itemId):getName())
			local resultId = db.storeQuery('SELECT `cont_id` FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. lootBlockList[sum].itemId .. '')
			if resultId then
			local bp_id = result.getNumber(resultId, 'cont_id')
			end
			
			local backvinculo
			
			if result.getNumber(resultId, 'cont_id') and result.getNumber(resultId, 'cont_id') > 0 then
			backvinculo = '| '..ItemType(result.getNumber(resultId, 'cont_id')):getName()..''
			else
			backvinculo = ''
			end
			window:addChoice(sum, "".. string.gsub(" "..status..""..ItemType(lootBlockList[sum].itemId):getName(), "%W%l", string.upper):sub(2, 21) .." | "..lootBlockList[sum].maxCount.." | "..(lootBlockList[sum].chance/1000).."% "..string.gsub(" "..string.lower(backvinculo), "%W%l", string.upper):sub(2).."")
		end
		sum = sum + 1
	end
	window:addButton(105, "Backpack")
	window:setDefaultEnterButton(103, "Add")
	window:addButton(100, "Confirm")
	if autolootBP == 1 then
	window:addButton(102, "Remove")
	end
	window:addButton(103, "Add")
	
	window:sendToPlayer(player)
	return false
end

data\talkactions\scripts\autoloot.lua

function onSay(player, words, param)	
	local lootlist, sum = player:getAutoLootList(), 1
	if lootlist then
		player:registerEvent('autoloot')
		local title = "Autoloot Helper!"
		local message = "You are currently looting the following items:"
		local window = ModalWindow(1000, title, message)
		table.sort(lootlist, function(a, b) return ItemType(a):getName() < ItemType(b):getName() end)
        for _, item in ipairs(lootlist) do
		local resultId = db.storeQuery('SELECT `cont_id` FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. ItemType(item):getId() .. '')
				if resultId then
					local bp_id = result.getNumber(resultId, 'cont_id')
				end
				local backvinculo
				if result.getNumber(resultId, 'cont_id') and result.getNumber(resultId, 'cont_id') > 0 then
					backvinculo = '| '..ItemType(result.getNumber(resultId, 'cont_id')):getName()..''
					else
					backvinculo = ''
				end
		
			window:addChoice(sum, "".. string.gsub(" "..(ItemType(item)):getName(), "%W%l", string.upper):sub(2, 21) .." "..string.gsub(" "..string.lower(backvinculo), "%W%l", string.upper):sub(2).."")
			sum = sum + 1
        end
		window:addButton(106, "Backpack")
		window:addButton(100, "Confirm")
		window:addButton(102, "Remove")
		if autolootBP == 1 then
		window:setDefaultEnterButton(106, "Backpack")
		end
		window:sendToPlayer(player)
		return true		
    else
        player:sendCancelMessage("The list is empty.")
        return false
    end	
end

data\creaturescripts\creaturescripts.xml

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>

	<!-- BLEESS -->
	<event type="login" name="BlessCheck" event="script" value="CheckBless.lua"/>
	<event type="death" name="BlessedPlayer" event="script" value="blessedplayer.lua"/>

	<!-- AUTO LOOT -->
	<event type="modalwindow" name="autoloot" script="autoloot.lua"/>

	<!--  FLY -->
	<event type="modalwindow" name="fly" script="fly.lua"/>

    <!-- New Summons (Pets) -->	
    <event type="login" name="petlogin" script="pet.lua" />
    <event type="think" name="petthink" script="pet.lua" />
	<event type="death" name="petdeath" script="pet.lua" />
	
	<!-- Coins -->
	<event type="think" name="Coins" event="script" value="coins.lua"/>
	
    <!-- Anti-Entrosa -->
    <event type="login" name="WarPrivateLogin" script="warPrivate_creaturescript.lua"/>
    <event type="logout" name="WarPrivateLogout" script="warPrivate_creaturescript.lua"/>
    <event type="death" name="WarPrivateDeath" script="warPrivate_creaturescript.lua"/>
	<event type="modalwindow" name="ModalWindowHelper" script="modalwindowhelper.lua" />  

    <!-- Oramond Quest -->
    <event type="death" name="tp" script="quests/oramond/revanger.lua"/>
    <event type="death" name="dark" script="quests/oramond/death.lua"/>

	<!-- Dangerous Depths -->
	<event type="kill" name="dwarvesTasks" script="quests/Dangerous Depths/dwarvesTasks.lua"/>
	<event type="login" name="loginDwarvesTasks" script="quests/Dangerous Depths/login.lua"/>
	<event type="healthchange" name="healFireDamage" script="quests/Dangerous Depths/healFireDamage.lua"/>
	<event type="think" name="emberBeasts" script="quests/Dangerous Depths/emberBeasts.lua"/>
	<event type="kill" name="snailSlimeKill" script="quests/Dangerous Depths/emberBeasts.lua"/>
	<event type="kill" name="bossesMissionDepth" script="quests/Dangerous Depths/bosses mission depths.lua"/>
	<event type="think" name="fieryHearts" script="quests/Dangerous Depths/fieryHearts.lua"/>
	<event type="think" name="theBaronFromBelow" script="quests/Dangerous Depths/theBaronFromBelow.lua"/>
	<event type="kill" name="theBaronFromBelowKill" script="quests/Dangerous Depths/theBaronFromBelow.lua"/>

 	<!-- Cults of Tibia Quest -->
	<event type="kill" name="taskComColar" script="quests/cults of tibia/taskColar.lua" />
	<event type="kill" name="jamesfrancisTask" script="quests/cults of tibia/taskCount.lua" />
	<event type="login" name="loginjamesfrancisTask" script="quests/cults of tibia/login.lua" />
	<event type="kill" name="vortexSpawnCarlin" script="quests/cults of tibia/vortexSpawnCarlin.lua" />
	<event type="think" name="Splash" script="quests/cults of tibia/splash.lua" />
	<event type="think" name="Evaporate" script="quests/cults of tibia/evaporate.lua" />
	<event type="healthchange" name="healLeiden" script="quests/cults of tibia/healLeiden.lua" />
	<event type="death" name="spawnBoss" script="quests/cults of tibia/spawnBoss.lua" />
	<event type="kill" name="bossesMissionCults" script="quests/cults of tibia/bosses mission cults.lua" />
	<event type="kill" name="destroyedPillars" script="quests/cults of tibia/destroyedPillars.lua" />
	<event type="healthchange" name="pilaresHealth" script="quests/cults of tibia/pilaresHealth.lua" />
	<event type="death" name="essenceMalice" script="quests/cults of tibia/essenceMalice.lua" />
	<event type="death" name="machineDeath" script="quests/cults of tibia/machine.lua" />
	<event type="healthchange" name="machineHealth" script="quests/cults of tibia/machine.lua" />
	<event type="think" name="sandkingThink" script="quests/cults of tibia/sandking.lua" />
	<event type="death" name="sandkingDeath" script="quests/cults of tibia/sandking.lua" />
	<event type="healthchange" name="sandHealth" script="quests/cults of tibia/sandking.lua" />
	<event type="healthchange" name="yalahariHealth" script="quests/cults of tibia/reflectDamage.lua" />
	<event type="think" name="checkPiso" script="quests/cults of tibia/checkPiso.lua" />

	<!-- first dragon quest -->
	<event type="kill" name="DragonsKill" script="quests/first dragon/dragonsKill.lua" />
	<event type="death" name="FallenDeath" script="quests/first dragon/fallen death.lua" />
	<event type="death" name="Spirit" script="quests/first dragon/spirit of fertility.lua" />
	<event type="death" name="Somewhat" script="quests/first dragon/somewhat.lua" />
	<event type="death" name="DragonEssence" script="quests/first dragon/dragon essence.lua" />
	<event type="death" name="FirstDragon" script="quests/first dragon/first dragon death.lua" />

    <!-- Grimvale Quest -->
	<event type="death" name="feroxaDeath" script="bosses/feroxaTransform.lua"/>
	<event type="think" name="feroxaTrasnform" script="bosses/feroxaTransform.lua"/>

	<!-- forgotten knowledge -->
	<event type="healthchange" name="HealthForgotten" script="quests/forgotten knowledge/healthchange forgotten.lua"/>
	<event type="death" name="PossessedTree" script="quests/forgotten knowledge/possessed tree.lua"/>
	<event type="kill" name="BossesForgotten" script="quests/forgotten knowledge/bossesKill.lua"/>
	<event type="death" name="AstralGlyphDeath" script="quests/forgotten knowledge/astral glyph death.lua"/>
	<event type="death" name="ThornKnightDeath" script="quests/forgotten knowledge/thorn knight death.lua"/>
	<event type="death" name="CorruptedSoul" script="quests/forgotten knowledge/corrupted soul.lua"/>
	<event type="kill" name="ReplicaServants" script="quests/forgotten knowledge/replica servants.lua"/>
	<event type="preparedeath" name="Lloyd" script="quests/forgotten knowledge/lloyd.lua"/>
	<event type="healthchange" name="EnergyPrism" script="quests/forgotten knowledge/energy prism.lua"/>
	<event type="kill" name="EnergyPrismDeath" script="quests/forgotten knowledge/energy prism death.lua"/>
	<event type="preparedeath" name="DragonEgg" script="quests/forgotten knowledge/dragon egg.lua"/>
	<event type="healthchange" name="DragonEgg2" script="quests/forgotten knowledge/dragon egg.lua"/>
	<event type="preparedeath" name="timeGuardianHealth" script="quests/forgotten knowledge/time guardian health.lua"/>
	<event type="kill" name="AstralPower" script="quests/forgotten knowledge/bound astral power.lua"/>
	<event type="think" name="AstralSource" script="quests/forgotten knowledge/astral source.lua"/>
	<event type="think" name="DistortedSource" script="quests/forgotten knowledge/distorted source.lua"/>

	<!-- hero of rathleton -->
	<event type="death" name="TentacleDeep" script="quests/hero of rathleton/tentacle.lua"/>
	<event type="kill" name="BossesHero" script="quests/hero of rathleton/bossesKill.lua"/>
	<event type="death" name="GloothHorror" script="bosses/glooth horror.lua" />

    <!-- Roshamuul-->
    <event type="kill" name="lowerRoshamuul" script="lowerRoshamuul.lua"/>

	<!-- ferumbras ascedant quest-->
	<event type="death" name="boneCapsule" script="quests/ferumbras ascendant/bone capsule.lua" />
	<event type="kill" name="BossesKill" script="quests/ferumbras ascendant/bossesKill.lua" />
	<event type="kill" name="TheShattererKill" script="quests/ferumbras ascendant/theShatterer.lua" />  
	<event type="think" name="zamuloshClone" script="quests/ferumbras ascendant/zamulosh clone.lua"/>
	<event type="death" name="FerumbrasMortalShell" script="quests/ferumbras ascendant/ferumbras mortal shell.lua"/>
	<event type="death" name="FerumbrasSoulSplinter" script="quests/ferumbras ascendant/ferumbras soul splinter.lua"/>
	<event type="death" name="RiftInvader" script="quests/ferumbras ascendant/rift invader.lua"/>
	<event type="death" name="disgustingOoze" script="quests/ferumbras ascendant/disgusting ooze.lua"/>
	<event type="death" name="deathDragon" script="quests/ferumbras ascendant/death dragon.lua"/>

    <!-- Reward Chest 19/01 -->	
 	<event type="death" name="BossDeath" script="rewardChest/boss.lua" />
 	<event type="healthchange" name="BossParticipation" script="rewardChest/boss.lua" />
 	<event type="think" name="BossThink" script="rewardChest/boss.lua" />

	<!-- Heart of Destruction -->
	<event type="death" name="ChargerSpawn" script="quests/heart of destruction/chargerSpawn.lua"/>
	<event type="death" name="OverDeath" script="quests/heart of destruction/overchargeDeath.lua"/>
	<event type="think" name="AnomalyTransform" script="quests/heart of destruction/anomalyTransform.lua"/>
	<event type="death" name="ChargedAnomalyDeath" script="quests/heart of destruction/chargedAnomalyDeath.lua"/>
	<event type="death" name="HeartBossDeath" script="quests/heart of destruction/heartBossDeath.lua"/>
	<event type="think" name="CracklerTransform" script="quests/heart of destruction/cracklerTransform.lua"/>
	<event type="think" name="DepolarizedTransform" script="quests/heart of destruction/depolarizedTransform.lua"/>
	<event type="death" name="DepolarizedDeath" script="quests/heart of destruction/depolarizedDeath.lua"/>
	<event type="think" name="RuptureResonance" script="quests/heart of destruction/ruptureResonance.lua"/>
	<event type="healthchange" name="RuptureHeal" script="quests/heart of destruction/ruptureHeal.lua"/>
	<event type="death" name="SparksDeath" script="quests/heart of destruction/sparksDeath.lua"/>
	
	<event type="death" name="ShocksDeath" script="quests/heart of destruction/shocksDeath.lua"/>
	<event type="think" name="ForeshockTransform" script="quests/heart of destruction/foreshockTransform.lua"/>
	<event type="think" name="AftershockTransform" script="quests/heart of destruction/aftershockTransform.lua"/>
	
	<event type="think" name="EradicatorTransform" script="quests/heart of destruction/eradicatorTransform.lua"/>
	<event type="think" name="OutburstCharge" script="quests/heart of destruction/outburstCharge.lua"/>
	<event type="death" name="ChargingOutDeath" script="quests/heart of destruction/chargingOutDeath.lua"/>
	<event type="death" name="DevourerStorage" script="quests/heart of destruction/devourerPlayerDeath.lua"/>
	<event type="death" name="HeartMinionDeath" script="quests/heart of destruction/heartMinionDeath.lua"/>
	<event type="think" name="DisruptionTransform" script="quests/heart of destruction/disruptionTransform.lua"/>
	<event type="think" name="cDisruptionTransform" script="quests/heart of destruction/cDisruptionTransform.lua"/>
	<event type="death" name="SparkDevourerDeath" script="quests/heart of destruction/sparkDevourerDeath.lua"/>
	
	<!-- Bigfoots burden / warzone -->
	<event type="death" name="WarzoneBossDeath" script="warzone157.lua" /> <!-- this will kick the players in 1 min after the boss is dead AND add the 20 hours delay to go in again -->
	<event type="kill" name="ParasiteWarzone" script="quests/bigfoot burden/parasite.lua" /> <!-- opening walls -->
	<event type="kill" name="BigfootBurdenVersperoth" script="quests/bigfoot burden/VersperothKill.lua" /> <!-- versperoth opening tp -->
	<event type="kill" name="BigfootBurdenWiggler" script="quests/bigfoot burden/WigglerKill.lua" /> <!-- exterminations task -->
	<event type="kill" name="bossesWarzone" script="quests/bigfoot burden/bossesWarzone.lua"/> <!-- this will set the status of warzone (killing 1, 2 and 3 wz bosses in order u can open the chest and get "some golden fruits") and the reward chest storages -->

	<!-- Recompense by level -->
	<event type="advance" name="Recompense" script="others/recompense.lua"/>
	
    <!-- ragingmagetower -->
	<event type="kill" name="Yielothax" script="ragingmagetower/yielothax.lua"/>
	<event type="kill" name="Energized Raging Mage" script="ragingmagetower/energized.lua"/> 
	<event type="kill" name="Raging Mage" script="ragingmagetower/raging.lua"/>

	<!-- Rookgaard Cockroach -->
	<event type="advance" name="AdvanceRookgaard" script="rookgaard/advance.lua" />

	<!-- Elemental Spheres Quest -->
	<event type="kill" name="ElementalSpheresOverlords" script="quests/elemental spheres/OverlordsKill.lua" />
	
	<!-- Svargrond Arena: Killing a boss -->
	<event type="kill" name="SvargrondArenaKill" script="quests/svargrond arena/arena_kill.lua" />

	<!-- The New Frontier Quest -->
	<event type="kill" name="NewFrontierShardOfCorruption" script="quests/the new frontier/ShardOfCorruption.lua" />
	<event type="kill" name="NewFrontierTirecz" script="quests/the new frontier/TireczKill.lua" />

	<!-- In Service Of Yalahar Quest -->
	<event type="kill" name="ServiceOfYalaharAzerus" script="quests/in service of yalahar/AzerusKill.lua" />
	<event type="kill" name="ServiceOfYalaharDiseasedTrio" script="quests/in service of yalahar/DiseasedTrioKill.lua" />
	<event type="kill" name="ServiceOfYalaharQuaraLeaders" script="quests/in service of yalahar/QuaraLeadersKill.lua" />

	<!-- Inquisition Quest -->
	<event type="kill" name="InquisitionBosses" script="quests/inquisition/inquisitionQuestBosses.lua" />
	<event type="kill" name="InquisitionUngreez" script="quests/inquisition/inquisitionQuestUngreez.lua" />

	<!-- Killing In The Name Of Quest -->
	<event type="kill" name="KillingInTheNameOfKills" script="quests/killing in the name of/kills.lua" />
	
	<event type="kill" name="KillingInTheNameOfKillss" script="necro.lua" />
	<event type="kill" name="KillingInTheNameOfKillsss" script="minos.lua" />

	<!-- Spike Tasks Quest -->
	<event type="kill" name="UpperSpikeKill" script="quests/spike tasks/upperspikekill.lua"/>
	<event type="kill" name="MiddleSpikeKill" script="quests/spike tasks/middlespikekill.lua"/>
	<event type="kill" name="LowerSpikeKill" script="quests/spike tasks/lowerspikekill.lua"/>

	<!-- The Masters Voice Quest -->
	<event type="kill" name="MastersVoiceServants" script="quests/their master's voice/ServantsKill.lua" />

	<!-- Thieves Guild Quest -->
	<event type="kill" name="ThievesGuildNomad" script="others/nomad.lua" />

	<!-- Secret Service Quest -->
	<event type="kill" name="SecretServiceBlackKnight" script="others/blackKnight.lua" />

	<!-- Wrath of the Emperor Quest -->
	<event type="kill" name="WotELizardMagistratus" script="quests/wrath of the emperor/lizardmagistratus.lua" />
	<event type="kill" name="WotELizardNoble" script="quests/wrath of the emperor/lizardnoble.lua" /> 
	<event type="kill" name="WotEKeeper" script="quests/wrath of the emperor/keeper.lua" />
	<event type="kill" name="WotEBosses" script="quests/wrath of the emperor/bosses.lua" />
	<event type="kill" name="WotEZalamon" script="quests/wrath of the emperor/zalamon.lua" />

	<!-- Pythius The Rotten (Firewalker Boots Quest) -->
	<event type="kill" name="PythiusTheRotten" script="others/PythiusTheRotten.lua" />

	<!-- Monsters events -->	
	<event type="death" name="WhiteDeerDeath" script="others/whitedeer.lua" />
	<event type="death" name="WhiteDeerScoutsDeath" script="others/whitedeer_scouts.lua" />
	<event type="healthchange" name="sharedLife" script="others/sharedlife.lua" />
	<event type="think" name="GazharagothHeal" script="others/gaz'haragoth_heal.lua" />
	<event type="preparedeath" name="MonsterHeal" script="others/monster_heal.lua" />
	<event type="preparedeath" name="MonsterHeal2" script="others/monster_heal2.lua" />
	<event type="death" name="NorthernPike" script="others/northern pike.lua" />
	<event type="think" name="OmrafirExplode" script="others/omrafir explode.lua" />
	<event type="think" name="ShlorgTp" script="others/shlorg tp.lua" />
	<event type="think" name="ThePaleCountTp" script="others/the pale count tp.lua" />
	<event type="think" name="WelterEgg" script="others/welter egg.lua" />
	<event type="death" name="Wyda" script="others/wyda.lua" />
	<event type="think" name="ZavarashHide" script="others/zavarash hide.lua" />
	<event type="death" name="RagingMage" script="others/raging mage.lua" />
	<event type="death" name="RagingMage2" script="others/raging mage2.lua" />
	<event type="think" name="GreaterMinion" script="others/greater_minion.lua" />
	<event type="think" name="SuperiorMinion" script="others/superior_minion.lua" />
	<event type="think" name="NecromanticMinion" script="others/necromantic_minion.lua" />
	<event type="think" name="ShargonGrowthCheck" script="others/shargon growth check.lua" />
	<event type="think" name="TheRavagerHeal" script="others/the ravager heal.lua" />
	<event type="think" name="CanopicJar" script="others/canopic jar.lua" />

	<!-- Gray Island -->
	<event type="kill" name="deeplingBosses" script="gray_island/deeplingKill.lua"/>

	<!-- Others -->
	<event type="login" name="AdventurerBlessings" script="adventureblessings.lua"/>
	<event type="login" name="PlayerLogin" script="others/login.lua" />
	<event type="login" name="FirstItems" script="others/firstitems.lua" />
	<event type="login" name="RegenerateStamina" script="others/regeneratestamina.lua" />
	<event type="login" name="OfflineTraining" script="others/offlinetraining.lua" />
	<event type="logout" name="PlayerLogout" script="others/logout.lua" />
	<event type="death" name="PlayerDeath" script="others/playerdeath.lua" />
	<event type="death" name="DropLoot" script="others/droploot.lua" />
	<event type="advance" name="AdvanceSave" script="others/advance_save.lua" />
	<event type="healthchange" name="imbueDamage" script="imbuementElementalProtection.lua"/>
</creaturescripts>

data\creaturescripts\scripts\autoloot.lua

function onModalWindow(player, modalWindowId, buttonId, choiceId)
	player:unregisterEvent('autoloot')	
	local limiteAutoloot = 100
	local autolootlist, sum = {}, 1
	if buttonId == 102 and modalWindowId == 1000 then
		local playerlist = player:getAutoLootList()
		if playerlist then
			table.sort(playerlist, function(a, b) return ItemType(a):getName() < ItemType(b):getName() end)
			for _, item in ipairs(playerlist) do
				table.insert(autolootlist, "".. item .."")
			end
			local itemType = ItemType(tonumber(autolootlist[choiceId]))
			player:sendTextMessage(MESSAGE_INFO_DESCR,'Removed '.. string.gsub(" "..ItemType(tonumber(autolootlist[choiceId])):getName(), "%W%l", string.upper):sub(2, 21)..' from autoloot list!')
			db.query('DELETE FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. itemType:getId() .. '')
			player:removeAutoLootItem(itemType:getId())
			call(player, 'remove')
		end
		elseif buttonId == 102 and modalWindowId == 1001 or buttonId == 103 then
		local lootBlockList = lootBlockListm[getPlayerGUID(player)]
		if lootBlockList == nil or lootBlockList == -1 then
			return false
		end
		for _, loot in pairs(lootBlockList) do
			table.insert(autolootlist, lootBlockList[sum].itemId) 
			sum = sum + 1
		end
		local itemType = ItemType(tonumber(autolootlist[choiceId]))
		if buttonId == 102 then	
			player:sendTextMessage(MESSAGE_INFO_DESCR,'Removed '.. string.gsub(" "..ItemType(itemType:getId()):getName(), "%W%l", string.upper):sub(2, 21)..' from autoloot list!')
			db.query('DELETE FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. itemType:getId() .. '')
			player:removeAutoLootItem(itemType:getId())
			elseif buttonId == 103 then	
			if player:getAutoLootList() then
			local playerlist = player:getAutoLootList()
			end
			if playerlist then
				for _, item in ipairs(playerlist) do
					table.insert(autolootlist, "".. item .."")
				end
			end
			if playerlist and #playerlist >= limiteAutoloot then
				player:sendCancelMessage("Reached the limit <"..#playerlist..">for itens, first remove using !autoloot or !add <monster>, selecting option remove.")
				return false
				else
				player:sendTextMessage(MESSAGE_INFO_DESCR,'Add '.. string.gsub(" "..ItemType(lootBlockList[choiceId].itemId):getName(), "%W%l", string.upper):sub(2, 21) ..' to autoloot list!')
				player:addAutoLootItem(itemType:getId())
			end
		end
		call(player, 'add')
		elseif buttonId == 105 then
		local lootBlockList = lootBlockListm[getPlayerGUID(player)]
		if lootBlockList == nil or lootBlockList == -1 then
			return false
		end
		for _, loot in pairs(lootBlockList) do
			table.insert(autolootlist, lootBlockList[sum].itemId)
			sum = sum + 1
		end
		local itemType = ItemType(tonumber(autolootlist[choiceId]))
		lastitem[getPlayerGUID(player)] = lootBlockList[choiceId].itemId
		call(player, 'backpack', modalWindowId, lastitem[getPlayerGUID(player)])
		elseif buttonId == 106 then
		local lootBlockList = player:getAutoLootList()
		table.sort(lootBlockList, function(a, b) return ItemType(a):getName() < ItemType(b):getName() end)
		if lootBlockList == nil or lootBlockList == -1 then
			return false
		end
		for _, loot in pairs(lootBlockList) do
			table.insert(autolootlist, lootBlockList[sum])
			sum = sum + 1
		end
		local itemType = ItemType(tonumber(autolootlist[choiceId]))
		lastitem[getPlayerGUID(player)] = lootBlockList[choiceId]
		call(player, 'backpack', modalWindowId, lastitem[getPlayerGUID(player)])
		elseif buttonId == 100 then
		if modalWindowId == 1005 then
			local container, bp, sequencer = {}, {}, 1
			local bp2 = {}
			for i = 0, getContainerSize(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid) do
				local thing = getContainerItem(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid, i)
				container[i] = getContainerItem(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid, i)				
				if isContainer(container[i].uid) then
					itemtester = Item(container[i].uid)
					bp[sequencer] = itemtester
					bp2[sequencer] = itemtester:getId()
					sequencer = sequencer + 1
				end
			end
			if sequencer > 1 then
				if player:getAutoLootItem(lastitem[getPlayerGUID(player)]) then
					local resultId = db.storeQuery('SELECT `cont_id` FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. lastitem[getPlayerGUID(player)] .. '')
					if resultId then
						local bp_id = result.getNumber(resultId, 'cont_id')
						else
						db.query("INSERT INTO `player_autoloot_persist` (`player_guid`, `cont_id`, `item_id`) VALUES (".. getPlayerGUID(player) ..", ".. bp2[choiceId] ..", ".. lastitem[getPlayerGUID(player)] ..") ON DUPLICATE KEY UPDATE `cont_id` = ".. bp2[choiceId])
					end
					if result.getNumber(resultId, 'cont_id') and result.getNumber(resultId, 'cont_id') ~= bp2[choiceId] then
						db.query('UPDATE `player_autoloot_persist` SET `cont_id` = '..bp2[choiceId]..' WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. lastitem[getPlayerGUID(player)] .. '')
					end
				end
			end
			call(player, 'add')	
		end
		if modalWindowId == 1006 then
			local container, bp, sequencer = {}, {}, 1
			local bp2 = {}
			for i = 0, getContainerSize(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid) do
				local thing = getContainerItem(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid, i)
				container[i] = getContainerItem(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid, i)				
				if isContainer(container[i].uid) then
					itemtester = Item(container[i].uid)
					bp[sequencer] = itemtester
					bp2[sequencer] = itemtester:getId()
					sequencer = sequencer + 1
				end
			end
			if sequencer > 1 then
				local resultId = db.storeQuery('SELECT `cont_id` FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. lastitem[getPlayerGUID(player)] .. '')
				if resultId then
					local bp_id = result.getNumber(resultId, 'cont_id')
					else
					db.query("INSERT INTO `player_autoloot_persist` (`player_guid`, `cont_id`, `item_id`) VALUES (".. getPlayerGUID(player) ..", ".. bp2[choiceId] ..", ".. lastitem[getPlayerGUID(player)] ..") ON DUPLICATE KEY UPDATE `cont_id` = ".. bp2[choiceId])
				end
				if result.getNumber(resultId, 'cont_id') and result.getNumber(resultId, 'cont_id') ~= bp2[choiceId] then
					db.query('UPDATE `player_autoloot_persist` SET `cont_id` = '..bp2[choiceId]..' WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. lastitem[getPlayerGUID(player)] .. '')
				end
			end
			call(player, 'remove')
			
		end
	end
end

function call(player, param, param2, tobpid)
	player:registerEvent('autoloot')	
	local title = "Autoloot Helper!"
	if param == 'add' then
		local lootBlockList = lootBlockListm[getPlayerGUID(player)]
		local message = "Loots of "..string.gsub(" "..string.lower(lootBlockListn[getPlayerGUID(player)]), "%W%l", string.upper):sub(2)..":"
		local window = ModalWindow(1001, title, message)
		local check, sum = {}, 1
		for _, loot in pairs(lootBlockList) do
			local status = ''
			if player:getAutoLootItem(lootBlockList[sum].itemId) then
				status = '*'
			end
			if not table.contains(check, ItemType(lootBlockList[sum].itemId):getName()) then
				table.insert(check, ItemType(lootBlockList[sum].itemId):getName())
				local resultId = db.storeQuery('SELECT `cont_id` FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. lootBlockList[sum].itemId .. '')
				if resultId then
					local bp_id = result.getNumber(resultId, 'cont_id')
				end
				local backvinculo
				if result.getNumber(resultId, 'cont_id') and result.getNumber(resultId, 'cont_id') > 0 then
					backvinculo = '| '..ItemType(result.getNumber(resultId, 'cont_id')):getName()..''
					else
					backvinculo = ''
				end
				window:addChoice(sum, "".. string.gsub(" "..status..""..ItemType(lootBlockList[sum].itemId):getName(), "%W%l", string.upper):sub(2, 21) .." | "..lootBlockList[sum].maxCount.." | "..(lootBlockList[sum].chance/1000).."% "..string.gsub(" "..string.lower(backvinculo), "%W%l", string.upper):sub(2).."")
			end
			sum = sum + 1
		end
		if autolootBP == 1 then
			window:addButton(105, "Backpack")
		end
		callwindow(window, player, 1)
		elseif param == 'remove' then
		local message = "You are currently looting the following items:"
		local window = ModalWindow(1000, title, message)
		local check, sum = player:getAutoLootList(), 1
		if check then
			table.sort(check, function(a, b) return ItemType(a):getName() < ItemType(b):getName() end)
			for _, item in ipairs(check) do
				local resultId = db.storeQuery('SELECT `cont_id` FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. ItemType(check[sum]):getId() .. '')
				if resultId then
					local bp_id = result.getNumber(resultId, 'cont_id')
				end
				local backvinculo
				if result.getNumber(resultId, 'cont_id') and result.getNumber(resultId, 'cont_id') > 0 then
					backvinculo = '| '..ItemType(result.getNumber(resultId, 'cont_id')):getName()..''
					else
					backvinculo = ''
				end
				window:addChoice(sum, "".. string.gsub(" "..(ItemType(item)):getName(), "%W%l", string.upper):sub(2, 21) .." "..string.gsub(" "..string.lower(backvinculo), "%W%l", string.upper):sub(2).."")
				sum = sum + 1
			end
			else
			player:sendCancelMessage("The list is empty.")
			return false
		end
		if autolootBP == 1 then
			window:addButton(106, "Backpack")
		end
		callwindow(window, player, 2)
		elseif param == 'backpack' then
		local lootBlockList = lootBlockListm[getPlayerGUID(player)]
		
		local modalcode
		if param2 and param2 == 1001 then
			modalcode = 1005
			else
			modalcode = 1006
		end
		local message = "Choose a Backpack:"
		local window = ModalWindow(modalcode, title, message)
		local sum = 1
		local container, names = {}, {}
		if getContainerSize(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid) then
			for i = 0, getContainerSize(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid) do
				local thing = getContainerItem(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid, i)
				container[i] = getContainerItem(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid, i)
				if isContainer(container[i].uid) then
					if not table.contains(names, container[i].itemId) then
						table.insert(names, container[i].itemId)
						window:addChoice(sum, ""..string.gsub(" "..string.lower(ItemType(container[i].itemid):getName()), "%W%l", string.upper):sub(2).."")
					end
					sum = sum + 1
				end
			end
			else
			player:sendCancelMessage("Not find main backpack.")
			return false
		end
		if sum == 1 then
			player:sendCancelMessage("Not find sub-backpacks.")
			return false
		end
		callwindow(window, player, 3)
	end
end

function callwindow(window, player, param)
	if param == 3 then
		window:setDefaultEnterButton(100, "Confirm")
		window:addButton(100, "Confirm")		
		else
		window:addButton(100, "Confirm")
		window:addButton(102, "Remove")
		window:setDefaultEnterButton(106, "Backpack")
		if param == 1 then
			window:addButton(103, "Add")
			window:setDefaultEnterButton(103, "Add")
			window:addButton(105, "Backpack")
		end
	end
	window:sendToPlayer(player)		
end

data\actions\actions.xml

<?xml version="1.0" encoding="UTF-8"?>
<actions>

	<!-- Secret Libray -->
	<action uniqueid="35124" script="quests/Libray/lever_Lokathmor.lua" />
	<action uniqueid="35125" script="quests/Libray/lever_Mazzinor.lua" />
	<action uniqueid="35126" script="quests/Libray/lever_Ghulosh.lua" />
	<action uniqueid="35127" script="quests/Libray/lever_Gorzindel.lua" />

	<!-- Tenebres -->
	<action fromuid="32589" touid="32589" script="quests/Tenebres/lanterna.lua" />
	
	<!-- Yalahar -->
	<action fromuid="32587" touid="32587" script="quests/in service of yalahar/lever.lua" />

	<!-- Autoloot mode 2 -->
	<action actionid="500" script="autoloot.lua" />
	
    <!-- Training -->
    <action fromid="32384" toid="32389" script="other/exercise_training.lua" allowfaruse="1"/>
	
	<!-- Store -->
	<action itemid="26378" script="other/goldconverter.lua" />
	<action itemid="26347" script="other/fishtank.lua"/>
	<action fromid="26090" toid="26093" script="other/transform.lua"/>
	<action fromid="26100" toid="26101" script="other/transform.lua"/>
	<action fromid="26107" toid="26108" script="other/transform.lua"/>
	<action fromid="26141" toid="26142" script="other/transform.lua"/>
	<action itemid="26353" script="other/transform.lua"/><!-- dog house-->
	<action itemid="25392" script="other/carpets.lua"/> <!-- rift carpet-->
	<action itemid="25393" script="other/carpets.lua"/> <!-- rift carpet-->
	<action itemid="26192" script="other/carpets.lua"/> <!-- void carpet-->
	<action itemid="26193" script="other/carpets.lua"/> <!-- void carpet-->
	<action itemid="26087" script="other/carpets.lua"/> <!-- yalahar carpet-->
	<action itemid="26109" script="other/carpets.lua"/> <!-- yalahar carpet-->
	<action itemid="26088" script="other/carpets.lua"/> <!-- white fur -->
	<action itemid="26110" script="other/carpets.lua"/> <!-- white fur -->
	<action itemid="26089" script="other/carpets.lua"/> <!-- bamboo mat -->
	<action itemid="26111" script="other/carpets.lua"/> <!-- bamboo mat -->
	<action itemid="26366" script="other/carpets.lua"/> <!-- azure carpet -->
	<action itemid="26372" script="other/carpets.lua"/> <!-- azure carpet -->
	<action itemid="26363" script="other/carpets.lua"/> <!-- crimson carpet -->
	<action itemid="26371" script="other/carpets.lua"/> <!-- crimson carpet -->
	<action itemid="26367" script="other/carpets.lua"/> <!-- emerald carpet -->
	<action itemid="26373" script="other/carpets.lua"/> <!-- emerald carpet -->
	<action itemid="26368" script="other/carpets.lua"/> <!-- light parquet -->
	<action itemid="26374" script="other/carpets.lua"/> <!-- light parquet -->
	<action itemid="26369" script="other/carpets.lua"/> <!-- dark parquet -->
	<action itemid="26375" script="other/carpets.lua"/> <!-- dark parquet -->
	<action itemid="26370" script="other/carpets.lua"/> <!-- marble floor -->
	<action itemid="26376" script="other/carpets.lua"/> <!-- marble floor -->
	<action itemid="27084" script="other/carpets.lua"/> <!-- flowery carpet -->
	<action itemid="27092" script="other/carpets.lua"/> <!-- flowery carpet -->
	<action itemid="27085" script="other/carpets.lua"/> <!-- Colourful Carpet -->
	<action itemid="27093" script="other/carpets.lua"/> <!-- Colourful Carpet -->
	<action itemid="27086" script="other/carpets.lua"/> <!-- striped carpet -->
	<action itemid="27094" script="other/carpets.lua"/> <!-- striped carpet -->
	<action itemid="27087" script="other/carpets.lua"/> <!-- fur carpet -->
	<action itemid="27095" script="other/carpets.lua"/> <!-- fur carpet -->
	<action itemid="27088" script="other/carpets.lua"/> <!-- diamond carpet -->
	<action itemid="27096" script="other/carpets.lua"/> <!-- diamond carpet -->
    <action itemid="27089" script="other/carpets.lua"/> <!-- patterned carpet -->
	<action itemid="27097" script="other/carpets.lua"/> <!-- patterned carpet -->
	<action itemid="27090" script="other/carpets.lua"/> <!-- night sky carpet -->
	<action itemid="27098" script="other/carpets.lua"/> <!-- night sky carpet -->
    <action itemid="27091" script="other/carpets.lua"/> <!-- star carpet -->
	<action itemid="27099" script="other/carpets.lua"/> <!-- star carpet -->
	<action itemid="29349" script="other/carpets.lua"/> <!-- verdant carpet -->
	<action itemid="29350" script="other/carpets.lua"/> <!-- verdant carpet -->
    <action itemid="29351" script="other/carpets.lua"/> <!-- shaggy carpet -->
	<action itemid="29352" script="other/carpets.lua"/> <!-- shaggy carpet -->
	<action itemid="29353" script="other/carpets.lua"/> <!-- mystic carpet -->
	<action itemid="29354" script="other/carpets.lua"/> <!-- mystic carpet -->
    <action itemid="29355" script="other/carpets.lua"/> <!-- stone tile -->
	<action itemid="29356" script="other/carpets.lua"/> <!-- stone tile -->
	<action itemid="29357" script="other/carpets.lua"/> <!-- stone tile -->
	<action itemid="29358" script="other/carpets.lua"/> <!-- stone tile -->
	<action itemid="29386" script="other/carpets.lua"/> <!-- wheat carpet -->
	<action itemid="29387" script="other/carpets.lua"/> <!-- wheat carpet -->
	<action itemid="29388" script="other/carpets.lua"/> <!-- crested carpet -->	
	<action itemid="29389" script="other/carpets.lua"/> <!-- crested carpet -->
	<action itemid="29390" script="other/carpets.lua"/> <!-- decorated carpet -->
	<action itemid="29391" script="other/carpets.lua"/> <!-- decorated carpet -->	


	<!-- Dangerous Depths(novas warzones) -->
	<!-- (Movements)
	57230 -> Portais para entrar nas warzones;
	57231 -> SQM para escoltar os Lost Exiles;
	57232 -> Portal para entrar na sala de máquinas;
	-->
	<action actionid="57233" script="quests/Dangerous Depths/woodenTrash.lua" />
	<action uniqueid="57234" script="quests/Dangerous Depths/gnomishChest.lua" />
	<action fromuid="57235" touid="57236" script="quests/Dangerous Depths/gnomeItens.lua" />
	<action actionid="57234" script="quests/Dangerous Depths/leverBarrel.lua" />
	<action fromaid="57300" toaid="57302" script="quests/Dangerous Depths/crudeLavaPump.lua"/>
	<action actionid="57303" script="quests/Dangerous Depths/crudeLavaPumpAchievements.lua"/>
	<!-- Itens utilizados -->
	<action itemid="30733" script="quests/Dangerous Depths/gnomishPesticide.lua" />
	<action itemid="31930" script="quests/Dangerous Depths/gnomeTrignometre.lua" />
	<action itemid="31931" script="quests/Dangerous Depths/gnomeChart.lua" />
	<action itemid="31993" script="quests/Dangerous Depths/usingCrystals.lua" />
	<action itemid="32014" script="other/surprise jar.lua" />
	<!-- Crystais de Acesso -->
	<action fromaid="57350" toaid="57355" script="quests/Dangerous Depths/WarzoneVI.lua" />
	<action fromaid="57356" toaid="57361" script="quests/Dangerous Depths/WarzoneV.lua" />
	<action fromaid="57362" toaid="57367" script="quests/Dangerous Depths/WarzoneIV.lua" />

	<!-- Threatened Dreams -->
	<action uniqueid="34123" script="quests/threatened dreams/poacherChest.lua" />
	<action itemid="28600" script="quests/threatened dreams/poacherUse.lua"/>
	
	<!-- Cults of Tibia Quest -->
	<action fromaid="5500" toaid="5506" script="quests/cults of tibia/bossesLevers.lua" />
	<action actionid="5510" script="quests/cults of tibia/doors.lua" />
	<action actionid="5520" script="quests/cults of tibia/leverMoTA.lua" />
	<action actionid="5522" script="quests/cults of tibia/document.lua" />
	<action actionid="5523" script="quests/cults of tibia/crate.lua" />
	<action actionid="5524" script="quests/cults of tibia/torch.lua" />
	<action actionid="5535" script="quests/cults of tibia/cultsymbol.lua" />
	<action actionid="5536" script="quests/cults of tibia/lastobject.lua" />
	<action itemid="28667" script="quests/cults of tibia/magnifier.lua" />
	<action itemid="28666" script="quests/cults of tibia/analyser.lua" />
	<action itemid="28665" script="quests/cults of tibia/counteragent.lua" />
	<action itemid="28658" script="quests/cults of tibia/Misguided.lua" />

    <!-- Heart of Destruction Quest -->
	<action itemid="26165" script="other/mysterious_remains.lua" />
    <action itemid="26342" script="other/devourerCore.lua"/>
    <action itemid="26194" script="other/sparkionEggs.lua"/>
    <action fromid="26340" toid="26341" script="other/sparkionEggs.lua"/>
    <action actionid="14320" script="quests/heart of destruction/chargesLever.lua"/>
    <action actionid="14325" script="quests/heart of destruction/anomalyLever.lua"/>
    <action actionid="14326" script="quests/heart of destruction/cracklersLever.lua"/>
    <action actionid="14327" script="quests/heart of destruction/ruptureLever.lua"/>
    <action actionid="14328" script="quests/heart of destruction/sparksLever.lua"/>
    <action actionid="14329" script="quests/heart of destruction/quakeLever.lua"/>
    <action actionid="14330" script="quests/heart of destruction/eradicatorLever.lua"/>
    <action actionid="14331" script="quests/heart of destruction/outburstLever.lua"/>
    <action actionid="14332" script="quests/heart of destruction/finalLever.lua"/>
    <action uniqueid="9600" script="quests/heart of destruction/reward.lua"/>

	<!-- first dragon -->
	<action fromuid="10200" touid="10219" script="quests/first dragon/chests.lua"/>
	<action fromuid="10220" touid="10222" script="quests/first dragon/rewards.lua"/>
	<action fromid="27607" toid="27610" script="quests/first dragon/rep items.lua"/>
	<action fromaid="24886" toaid="24887" script="quests/first dragon/lair entrance.lua"/>
	<action actionid="24888" script="quests/first dragon/lever.lua"/>
	
	<!-- hallsofhope -->
    <action actionid="17391" script="hallsofhope/BAU1.lua"/>	
	<action actionid="17392" script="hallsofhope/BAU2.lua"/>    
	<action actionid="17393" script="hallsofhope/BAU3.lua"/>
	<action actionid="17394" script="hallsofhope/BAU4.lua"/>
	<action actionid="17395" script="hallsofhope/BAU5.lua"/>
	<action actionid="17396" script="hallsofhope/BAU6.lua"/>

	<!-- ferumbras ascendant quest -->
	<action actionid="53821" script="quests/ferumbras ascendant/leverFirst.lua" />
	<action actionid="53822" script="quests/ferumbras ascendant/leverSecond.lua" />
	<action actionid="53823" script="quests/ferumbras ascendant/leverThird.lua" />
	<action actionid="53824" script="quests/ferumbras ascendant/leverFour.lua" />
	<action itemid="10602" script="quests/ferumbras ascendant/sacrifice.lua" />
	<action itemid="2747" script="quests/ferumbras ascendant/sacrifice.lua" />
	<action itemid="24826" script="quests/ferumbras ascendant/sacrifice.lua" />
	<action itemid="24814" script="quests/ferumbras ascendant/sacrifice.lua" />
	<action itemid="24817" script="quests/ferumbras ascendant/statue.lua" />
	<action itemid="25529" script="quests/ferumbras ascendant/grave flower.lua" />
	<action itemid="24910" script="quests/ferumbras ascendant/bone flute.lua" />
	<action actionid="54386" script="quests/ferumbras ascendant/bone flute wall.lua" />
	<action fromaid="54381" toaid="54385" script="quests/ferumbras ascendant/color levers.lua" />
	<action fromaid="54388" toaid="54389" script="quests/ferumbras ascendant/tarbaz notes.lua" />
	<action actionid="34305" script="quests/ferumbras ascendant/habitat_roshamuul.lua" />
	<action actionid="34306" script="quests/ferumbras ascendant/habitat_grass.lua" />
	<action actionid="34307" script="quests/ferumbras ascendant/habitat_mushroom.lua" />
	<action actionid="34308" script="quests/ferumbras ascendant/habitat_desert.lua" />
	<action actionid="34309" script="quests/ferumbras ascendant/habitat_venom.lua" />
	<action actionid="34310" script="quests/ferumbras ascendant/habitat_ice.lua" />
	<action actionid="34311" script="quests/ferumbras ascendant/habitat_corrupted.lua" />
	<action actionid="34312" script="quests/ferumbras ascendant/habitat_dimension.lua" />
	<action actionid="34300" script="quests/ferumbras ascendant/flower puzzle lever.lua" />
	<action actionid="34324" script="quests/ferumbras ascendant/habitat_lever.lua" />
	<action fromid="25423" toid="25424" script="other/ferumbras amulet.lua"/>
	<action fromid="25425" toid="25426" script="other/ferumbras mana keg.lua"/>
	<action fromid="25427" toid="25428" script="other/scroll of ascension.lua"/>
	<action fromid="25429" toid="25430" script="other/boots of homecoming.lua"/>
	<action itemid="25354" script="quests/ferumbras ascendant/purified soul.lua" />
	<action itemid="24838" script="quests/ferumbras ascendant/teleportation rod.lua" />
	<action actionid="24847" script="quests/ferumbras ascendant/ferumbrasLever.lua" />
	<action actionid="24848" script="quests/ferumbras ascendant/plagirathLever.lua" />
	<action actionid="24849" script="quests/ferumbras ascendant/ragiazLever.lua" />
	<action actionid="24850" script="quests/ferumbras ascendant/razzagornLever.lua" />
	<action actionid="24851" script="quests/ferumbras ascendant/mazoranLever.lua" />
	<action actionid="24852" script="quests/ferumbras ascendant/zamuloshLever.lua" />
	<action actionid="24853" script="quests/ferumbras ascendant/tarbazLever.lua" />
	<action actionid="24854" script="quests/ferumbras ascendant/shulgraxLever.lua" />
	<action actionid="24855" script="quests/ferumbras ascendant/theshattererLever.lua" />
	<action actionid="24856" script="quests/ferumbras ascendant/ratLever.lua" /> 
	<action actionid="24857" script="quests/ferumbras ascendant/theshattererLevers.lua" /> 
	<action itemid="25521" script="quests/ferumbras ascendant/mysterious scroll.lua" />
	<action uniqueid="24850" script="quests/ferumbras ascendant/reward.lua" />

	<!-- Grimvale Quest -->
	<action itemid="24714" script="quests/grimvale/silverLiquid.lua" />
	<action itemid="24730" script="quests/grimvale/closedSilveredTrap.lua" />

	<!-- forgotten knowledge -->
	<action itemid="26402" script="quests/forgotten knowledge/lantern.lua"/>
	<action itemid="26406" script="quests/forgotten knowledge/lantern.lua"/>
	<action actionid="24875" script="quests/forgotten knowledge/old desk.lua"/>
	<action itemid="26400" script="quests/forgotten knowledge/girl picture.lua"/>
	<action fromaid="24876" toaid="24877" script="quests/forgotten knowledge/secret wall.lua"/>
	<action fromid="26480" toid="26481" script="quests/forgotten knowledge/birdcage.lua"/>
	<action fromid="27803" toid="27806" script="quests/forgotten knowledge/fount.lua"/>
	<action fromid="26478" toid="26479" script="quests/forgotten knowledge/plant.lua"/>
	<action fromaid="26663" toaid="26664" script="quests/forgotten knowledge/servants mechanism.lua"/>
	<action itemid="27764" script="quests/forgotten knowledge/time machine.lua"/>
	<action itemid="26397" script="quests/forgotten knowledge/lost time.lua"/>
	
	<!-- levers-->
	<action actionid="24878" script="quests/forgotten knowledge/tenebris lever.lua"/>
	<action actionid="24879" script="quests/forgotten knowledge/thorn knight lever.lua"/>
	<action actionid="24880" script="quests/forgotten knowledge/dragonking lever.lua"/>
	<action actionid="24881" script="quests/forgotten knowledge/lloyd lever.lua"/>
	<action actionid="24882" script="quests/forgotten knowledge/horror lever.lua"/>
	<action actionid="24883" script="quests/forgotten knowledge/time guardian lever.lua"/>
	<action actionid="24884" script="quests/forgotten knowledge/last lore lever.lua"/>

	<!-- hero of rathleton -->
	<action actionid="24860" script="quests/hero of rathleton/accessDoor.lua" />
	<action actionid="24861" script="quests/hero of rathleton/machinesDeepTerror.lua" />
	<action actionid="24863" script="quests/hero of rathleton/machinesGloothHorror.lua" />
	<action actionid="24867" script="quests/hero of rathleton/machinesProfessorMaxxen.lua" />
	<action actionid="24865" script="quests/hero of rathleton/machinesLava.lua" />
	<action itemid="24184" script="quests/hero of rathleton/raging corpse.lua" allowfaruse="1"/>
	<action uniqueid="24867" script="quests/hero of rathleton/reward.lua" />

	<!-- Casks and Kegs -->
	<action fromid="7634" toid="7636" script="other/caskkegs.lua"/>	
	
	<!-- Daily Reward System -->
	<action fromid="29021" toid="29024" script="dailyrewardshrine.lua"/>
	<action fromid="29089" toid="29090" script="dailyrewardshrine.lua"/>
	
	<!-- Imbuement System -->
	<action fromid="27728" toid="27729" script="imbuement.lua" />
	<action fromid="27850" toid="27851" script="imbuement.lua" />
	
	<!-- Devil Helmet -->
	<action actionid="20594" script="quests/devil helmet/lever.lua" />
	
	<!-- Rookgaard -->
	<action actionid="30492" script="rookgaard/chest.lua" />
	
	<!-- House Pets -->
	<action fromid="26364" toid="26365" script="houses/pet.lua" />
	<action fromid="26098" toid="26099" script="houses/pet.lua" />
	
	<!-- Spike Tasks Quest -->
	<action itemid="21553" script="quests/spike tasks/spirit shovel.lua"/>
	<action itemid="21554" script="quests/spike tasks/tuning fork.lua"/>
	<action itemid="21555" script="quests/spike tasks/ghost detector.lua"/>
	<action itemid="21556" script="quests/spike tasks/thermometer.lua"/>
	<action itemid="21557" script="quests/spike tasks/lodestone.lua"/>
	<action itemid="21559" script="quests/spike tasks/nests.lua"/>
	<action itemid="21564" script="quests/spike tasks/fertilizer.lua"/>
	<action itemid="21566" script="quests/spike tasks/lodestone.lua"/>
	<action itemid="21568" script="quests/spike tasks/lodestone.lua"/>

	<!-- Others House -->
	<action fromid="26094" toid="26097" script="houses/statue.lua" />
	
	<action itemid="24324" script="sweetheart.lua"/>
	<action itemid="26333" script="Novos/surprisebox.lua"/>
	
	<!-- Lower Roshamuul Quest -->
	<action itemid="22387" script="roshamuul/mixture.lua" />
	<action itemid="22388" script="roshamuul/mixture.lua" />
	<action itemid="22459" script="roshamuul/chalk.lua" />
	<action itemid="22467" script="roshamuul/gravel.lua" />
	<action itemid="22503" script="roshamuul/mortar.lua" />
	<action itemid="22504" script="roshamuul/trough.lua" />
	
	<!-- Lions Rock Quest -->
	<action itemid="23760" script="lionrock.lua" />
	<action itemid="23835" script="lionrock.lua" />
	<action itemid="10551" script="lionrock.lua" /> 
	<action fromaid="41354" toaid="41357" script="lionrock.lua" />
    <action actionid="41345" script="lionrock.lua" />
	
	<action itemid="24181" pos="32240;32179;8" script="arena/arena.lua"/>  
	
	<action itemid="24173" pos="32271;32180;8" script="arena/arena1.lua"/> 
	
	<action itemid="22614" script="beacon1.lua"/>
	<action itemid="22615" script="beacon2.lua"/>
	
	<action itemid="25420" script="feru.lua"/>
	
	<action itemid="24809" script="cavera.lua"/>
	<action itemid="24810" script="cavera1.lua"/>
	
	<action itemid="22535" script="ResonanceChamber.lua"/>
	
	<action actionid="12441" script="espelho.lua"/>
	<action itemid="15358" script="ancora.lua"/>
	
	<action itemid="25524" script="rookslayer.lua"/>
	<action itemid="11101" script="other/donate.lua"/>

	
	<action actionid="37412" script="rew.lua"/>
	<action itemid="22542" script="string of mending.lua"/>
	<action actionid="19075" script="pared.lua"/>
	
	<action itemid="25395" script="ovo.lua"/>
	<action itemid="21382" script="ovo1.lua"/>
	
	<!-- Oramond -->
	<action fromaid="50000" toaid="50001" script="oramond/lever.lua" />
	
	<!-- SpiritHunters Quest -->
	
	<action itemid="12670" script ="quests/spirithunters/magicaldevice.lua"/>
	<action itemid="12671" script ="quests/spirithunters/magicaldevice.lua"/>
	
	<!-- Oramond -->
	<action uniqueid="9511" script="oramond/darkTrail.lua"/>
	<action uniqueid="9512" script="oramond/darkTrail2.lua"/>
	<action actionid="10050" script="oramond/darkTrailDoors.lua"/>
	<action actionid="10051" script="oramond/darkTrailCorpo.lua"/>
	<action fromid="23475" toid="23478" script="oramond/juiceroots.lua" />
	<action itemid="23400" script="oramond/gerador.lua"/>
	<action itemid="23401" script="oramond/gerador.lua"/>
	<action itemid="23402" script="oramond/gerador.lua"/>
	<action itemid="23403" script="oramond/gerador.lua"/>	
	<action itemid="23668" script="oramond/bueiroEscadaOramond.lua"/>
	<action itemid="23669" script="oramond/bueiroOramond.lua"/>

	<action itemid="23422" script="other/oramond_elevador.lua" />
	<action itemid="23429" script="other/oramond_elevador.lua" />
	<action fromaid="22840" toaid="22841" script="other/oramond_elevador.lua"/>


	<action itemid="22944" script="other/teleportwest2.lua"/>
	<action itemid="22949" script="other/teleportnorth2.lua"/>
	 
	<action itemid="22513" script="Novos/batebone.lua"/>
	
	<action actionid="14247" script="rahemos.lua" />
	
	<action actionid="22829" script="portaY.lua" />
	<!--<action actionid="12356" script="portaX.lua" /> 
	<action actionid="12359" script="portaY.lua" />-->
	
	<action actionid="19021" script="ora.lua"/>
	<action actionid="19022" script="ora1.lua"/>
	<action actionid="19024" script="ora2.lua"/>
	<action actionid="19074" script="placa.lua"/>
	<action actionid="19079" script="krailos.lua"/>
	<action actionid="19023" script="skeleton1.lua"/>

	<!-- Beggar Outfits Quest by Viking Tibia -->
	<!--<action actionid="19900" script="quests/beggar outfit quest/StaffDoor.lua"/>-->

	<!-- Chayenne Realm Quest -->
	<action actionid="55021" script="quests/chayenne realm quest/lever.lua" /> 
	<action actionid="55023" script="quests/chayenne realm quest/reward.lua" /> 
		
	
	<!-- Oramond Quest -->
	<action uniqueid="12028" script="nibelor1.lua"/>
	<action uniqueid="12027" script="nibelor.lua"/>
	
	<action uniqueid="12025" script="inukaya.lua"/>
	<action uniqueid="12026" script="inukaya2.lua"/>
	
	<action uniqueid="9519" script="quests/oramond/ora.lua"/>
	
	<action itemid="23468" script="quests/oramond/juiceroots.lua"/>
	<action itemid="23469" script="quests/oramond/juiceroots.lua"/>
	<action itemid="23470" script="quests/oramond/juiceroots.lua"/>
	<action itemid="23471" script="quests/oramond/juiceroots.lua"/>

	<!-- Gray Island -->
	<action fromuid="25610" touid="25612" script="gray island/deeplingRewards.lua" />
	
	<!-- Roshamuul -->
    <action fromid="22604" toid="22606" script="prison/keys.lua"/>
    <action itemid="22607" script="prison/golden.lua"/>

	<action itemid="22598" script="other/unrealized dream.lua"/>		
	<action itemid="22726" script="other/ursagrodon.lua" />
	<action itemid="23574" script="other/glooth_bag.lua"/>
	
	<!-- Tinder Box Quest -->
	<action uniqueid="21137" script="quests/tinder box/tinderBoxQuest.lua" />
	<action itemid="22728" script="quests/tinder box/tinderBox.lua" />
	
	<!-- Rookgaard -->
	<action uniqueid="50081" script="rookgaard/rookgaard tutorial island/snakeHead.lua" />
	<action itemid="8599" script="rookgaard/rookgaard tutorial island/ladderReqCockroachLegs.lua" />
	<action itemid="8593" script="rookgaard/rookgaard tutorial island/cockroachDeadBody.lua" />
<!-- 	<action itemid="8582" script="rookgaard/rookgaard tutorial island/branch.lua" />
	<action itemid="8583" script="rookgaard/rookgaard tutorial island/deadTreeBranch.lua" />-->
	<action uniqueid="50085" script="rookgaard/rookgaard tutorial island/zirellaDoor.lua" />
	<action actionid="50239" script="rookgaard/SewerLever.lua" />
	<action actionid="5637" script="rookgaard/katana_quest_lever.lua" />
	<action actionid="1002" script="rookgaard/katana_quest_door.lua" />
	<action actionid="5638" script="rookgaard/bearroom_quest_lever.lua" />
	<action actionid="5639" script="rookgaard/doublet_quest.lua" />
	<action actionid="5640" script="rookgaard/honeyflower_quest.lua" />
	<action actionid="5641" script="rookgaard/banana_quest.lua" />

	<!-- Adventurer's Guild -->
	<action itemid="18559" script="adventurers guild/adventurers_stone.lua" />
	<action fromid="19598" toid="19599" script="adventurers guild/magicdoor.lua" />

	<!-- Thais Exhibition-->
	<action fromaid="50030" toaid="50056" script="other/thais_exhibition.lua" />

	<!-- Kazordoon -->
	<action fromaid="50136" toaid="50159" script="kazordoon/oreWagons.lua" />
	<action fromaid="50230" toaid="50233" script="kazordoon/oreWagons.lua" />
	<action fromaid="50011" toaid="50012" script="kazordoon/elevatorLever.lua" />
	<action actionid="50237" script="kazordoon/stone.lua" />
	<action actionid="50238" script="kazordoon/trapdoor.lua" />

	<!-- Addons -->
	<action fromid="18517" toid="18522" script="addons/addons.lua" />

	<!-- Afflicted Outfit -->
	<action fromid="13540" toid="13545" script="addons/afflictedoutfit.lua" />
	<action fromid="13925" toid="13926" script="addons/afflictedoutfit.lua" />

	<!-- Ghost Ship (Plate armor quest) -->
	<action actionid="5556" script="other/ghostship.lua" />

	<!-- Farmine -->
	<action fromaid="9118" toaid="9123" script="farmine/elevatorLever.lua" />
	<action fromaid="12141" toaid="12142" script="farmine/templeofequilibrium_vines.lua" />

	<!-- Weapons enchanting (Gems) -->
	<action itemid="2149" script="other/earthfeyristentrada.lua" />
    <action itemid="2146" script="other/icefeyristentrada.lua" />
    <action itemid="2150" script="other/energyfeyristentrada.lua" />
    <action itemid="2147" script="other/firefeyristentrada.lua" />
    <action fromaid="24999" toaid="25002" script="other/feyristsaida.lua" />
	<action fromid="7759" toid="7762" script="other/enchanting.lua" />

	<!-- Ceremonial ankh & Ornamented brooch -->
	<action itemid="12424" script="other/checkbless.lua" />
	<action itemid="6561" script="other/checkbless.lua" />
	<action uniqueid="18081" script="quests/gloothfairylever.lua"/>
	
 	<!-- Taming Items -->
	<action itemid="5907" script="other/taming.lua" />
	<action itemid="13247" script="other/taming.lua" />
	<action fromid="13291" toid="13295" script="other/taming.lua" />
	<action itemid="13298" script="other/taming.lua" />
	<action itemid="13305" script="other/taming.lua" />
	<action itemid="13307" script="other/taming.lua" />
	<action itemid="13498" script="other/taming.lua" />
	<action itemid="13508" script="other/taming.lua" />
	<action itemid="21452" script="other/taming.lua" />
	<action itemid="13537" script="other/taming2.lua" />
	<action fromid="13535" toid="13536" script="other/taming.lua" />
	<action fromid="13538" toid="13539" script="other/taming.lua" />
	<action fromid="13938" toid="13939" script="other/taming.lua" />
	<action itemid="13941" script="other/cup of molten gold.lua" />
	<action fromid="15545" toid="15546" script="other/taming.lua" />
	<action fromid="18447" toid="18449" script="other/taming.lua" />
	<action itemid="18511" script="other/musicbox.lua" />
	<action itemid="18516" script="other/taming.lua" />
	<action itemid="20138" script="other/taming.lua" />
	<action itemid="22608" script="other/taming.lua" />
	<action itemid="23810" script="other/taming.lua" />
	<action itemid="23557" script="other/taming.lua" />
	<action itemid="30840" script="other/taming.lua" />

	<!-- insectoid cell -->
	<action fromaid="61611" toaid="61627" script="insectoid cell/insectoidcell.lua" />



	<!-- Offline Training -->
	<action fromid="18488" toid="18492" script="other/offlinetraining.lua" />
	<action itemid="12397" script="other/trainingbook.lua" />

	<!-- What a foolish Quest -->
	<action itemid="7478" script="quests/what a foolish/flask.lua" />
	<action itemid="7482" script="quests/what a foolish/crate.lua" />
	<action itemid="7485" script="quests/what a foolish/cushion.lua" />
	<action itemid="7486" script="quests/what a foolish/catbasket.lua" />
	<action itemid="7490" script="quests/what a foolish/contract.lua" />
	<action itemid="7500" script="quests/what a foolish/worncloth.lua" />
	<action itemid="7502" script="quests/what a foolish/disguise.lua" />
	<action itemid="8187" script="quests/what a foolish/watch.lua" />

	<!-- Hunter Outfits Quest -->
	<action fromid="6087" toid="6090" script="quests/hunter outfit/MusicSheet.lua" />
	<action actionid="33216" script="quests/hunter outfit/allHymnPianoTeleport.lua" />

	<!-- Draconia Quest -->
	<action fromaid="4249" toaid="4250" script="quests/draconia/walls.lua" />

	<!-- Sea of Light Quest -->
	<action itemid="10614" script="quests/sea of light/rareCrystal.lua" />
	<action itemid="10615" script="quests/sea of light/collectorCorpse.lua" />

	<!-- Father's Burden Quest -->
	<action fromid="12545" toid="12546" script="quests/fathers burden/corpse.lua" />

	<!-- Hot Cuisine Quest -->
	<action itemid="10006" script="quests/hotcuisine/cookbook.lua" />
	<action itemid="12497" script="quests/hotcuisine/cookbook1.lua" />

	<!-- The Queen of the Banshees Quest -->
	<action fromuid="49998" touid="50002" script="quests/the queen of the banshees/theFirstSeal.lua" />
	<action fromuid="50005" touid="50010" script="quests/the queen of the banshees/theSixthSeal.lua" />
	<action fromuid="50015" touid="50019" script="quests/the queen of the banshees/theThirdSeal.lua" />
	<action actionid="50021" script="quests/the queen of the banshees/lastDoor.lua" />

	<!-- Children of the Revolution -->
	<action uniqueid="3164" script="quests/children of the revolution/Mission3ZeeKillingFieldzzChest.lua" />
	<action itemid="10760" 	script="quests/children of the revolution/Mission3ZeeKillingFieldzzPoisonWater.lua" />
	<action itemid="11106" script="quests/children of the revolution/Mission4ZzeWayofZztonezzLevers.lua" />
	<action uniqueid="3170" script="quests/children of the revolution/ZalamonDoor.lua" />

	<!-- Wrath of the Emperor -->
	<action itemid="12284" script="quests/wrath of the emperor/Mission01Crate.lua" />
	<action fromuid="3171" touid="3174" script="quests/wrath of the emperor/Mission01Lights.lua" />
	<action itemid="12285" script="quests/wrath of the emperor/Mission02FirstContactRepairTeleport.lua" />
	<action fromid="12289" toid="12290" script="quests/wrath of the emperor/Mission02FirstContactRepairTeleport.lua" />
	<action itemid="12297" script="quests/wrath of the emperor/Mission02FirstContactRepairTeleport.lua" />
	<action itemid="12300" script="quests/wrath of the emperor/Mission02FirstContactRepairTeleport.lua" />
	<action itemid="12303" script="quests/wrath of the emperor/Mission02FirstContactRepairTeleport.lua" />
	<action itemid="12316" script="quests/wrath of the emperor/Mission03TheKeeper.lua" />
	<action itemid="12320" script="quests/wrath of the emperor/Mission03TheKeeper.lua" />
	<action uniqueid="12354" script="quests/wrath of the emperor/Mission04SacramentoftheSnakeSceptre.lua" />
	<action fromuid="3184" touid="3185" script="quests/wrath of the emperor/Mission08UninvitedGuestsLever.lua" />
	<action itemid="12328" script="quests/wrath of the emperor/Mission09TheSleepingDragonMixture.lua" />
	<action itemid="12318" script="quests/wrath of the emperor/Mission10AMessageofFreedomSceptre.lua" />
	<action uniqueid="3198" script="quests/wrath of the emperor/Mission11PaybackTimeLever.lua" />
	<action uniqueid="3200" script="quests/wrath of the emperor/Mission12JustRewards.lua" />

	<!-- Unnatural Selection -->
	<action uniqueid="12335" script="quests/unnatural selection/Mission5RayofLight.lua" />

	<!-- The New Frontier Quest -->
	<action uniqueid="3157" script="quests/the new frontier/arena.lua" />
	<action actionid="45440" script="outfit.lua" />
	<action itemid="11100" script="quests/the new frontier/beaver.lua" />
	<action fromaid="8005" toaid="8006" script="quests/the new frontier/lever.lua" />
	<action fromuid="3153" touid="3154" script="quests/the new frontier/vine.lua" />
	<action uniqueid="3156" script="quests/the new frontier/retreat.lua" />

	<!-- The Outlaw Camp Quest -->
	<action uniqueid="3400" script="quests/the outlaw camp/oven.lua" />
	<action uniqueid="3401" script="quests/the outlaw camp/powerswitch.lua" />
	<action uniqueid="3402" script="quests/the outlaw camp/powerburn.lua" />

	<!--- The Ape City Quest -->
	<action actionid="12129" script="quests/theapecity/Mission9TheDeepestCatacombsLever.lua" />
	<action uniqueid="12131" script="quests/theapecity/Mission9TheDeepestCatacombsLever.lua" />
	<action itemid="4846" 	 script="quests/theapecity/Mission9TheDeepestCatacombsSnakedestroyer.lua" />

	<!--- The Ancient Tombs Quest -->
	<action actionid="12107" script="quests/theancienttombs/OasisTombLeverDoor.lua" />
	<action actionid="12105" script="quests/theancienttombs/AncientRuinsTombInstruments.lua" />
	<action fromaid="50242" toaid="50244" script="quests/theancienttombs/activeTeleportSwitches.lua" />

	<!-- VAGAO HOUSE -->
	<action actionid="50245" script="vagaohouse1.lua" />
	<action actionid="50246" script="vagaohouse2.lua" />
	
	<action actionid="50247" script="vagaohouse3.lua" />
	<action actionid="50249" script="vagaohouse4.lua" />
	<action actionid="50250" script="vagaohouse5.lua" />
	<action actionid="50251" script="vagaohouse6.lua" />
	<action actionid="50252" script="vagaohouse7.lua" />
	<action actionid="50253" script="vagaohouse8.lua" />
	<action actionid="50254" script="vagaohouse9.lua" />
	<action actionid="50248" script="vagaohouse10.lua" />
	<action actionid="50258" script="bkquest.lua" />
	
	<!-- Gravedigger -->
	<action actionid="4630" script="quests/gravedigger/amforas.lua" />
	<action actionid="4631" script="quests/gravedigger/brain.lua" />
	<action itemid="21407" script="quests/gravedigger/bones.lua" />
	<action itemid="21245" script="quests/gravedigger/tincture.lua" />
	<action actionid="4636" script="quests/gravedigger/statue.lua" />
	<action itemid="21247" script="quests/gravedigger/chalk.lua" />
	<action itemid="21482" script="quests/gravedigger/key.lua" />
	<action itemid="21448" script="quests/gravedigger/candles.lua" />
	<action itemid="21248" script="quests/gravedigger/monks.lua" />
	<action itemid="21417" script="quests/gravedigger/blood.lua" />
	<action itemid="21449" script="quests/gravedigger/pyramids.lua" />
	<action itemid="21249" script="quests/gravedigger/pyramids2.lua" />
	<action actionid="4650" script="quests/gravedigger/palanca.lua" />
	<action itemid="21489" script="quests/gravedigger/key2.lua" />
	<action itemid="21464" script="quests/gravedigger/cape.lua" />
	<action actionid="4662" script="quests/gravedigger/scroll.lua" />	
	<action actionid="4669" script="quests/gravedigger/estante.lua" />
	<action uniqueid="4663" script="quests/gravedigger/caixa.lua" />
	<action itemid="21251" script="quests/gravedigger/sacrifici.lua" />
	<action fromaid="4651" toaid="4653" script="quests/gravedigger/inscriptions.lua" />
	<action itemid="21446" script="quests/gravedigger/ashes.lua" />
	<action itemid="21406" script="quests/gravedigger/hallowed.lua" />
	<action itemid="21401" script="quests/gravedigger/tears.lua" />
	<action itemid="21402" script="quests/gravedigger/flask.lua" />

	<!-- Elemental Spheres -->
	<action uniqueid="9024" script="quests/elemental spheres/lever.lua" />
	<action fromid="7911" toid="7912" script="quests/elemental spheres/machine.lua" />
	<action fromid="7913" toid="7914" script="quests/elemental spheres/machine2.lua" />
	<action fromid="7915" toid="7916" script="quests/elemental spheres/machine.lua" />
	<action fromid="7917" toid="7918" script="quests/elemental spheres/machine2.lua" />
	<action fromid="8298" toid="8299" script="quests/elemental spheres/soils.lua" />
	<action fromid="8302" toid="8303" script="quests/elemental spheres/soils.lua" />
	<action fromuid="9025" touid="9028" script="quests/elemental spheres/OAELever.lua" />
	<action fromid="8304" toid="8306" script="quests/elemental spheres/soils2.lua" />
	<action itemid="8300" script="quests/elemental spheres/soils2.lua" />

	<!-- Demon Oak -->
	<action itemid="8293" script="quests/demon oak/demonOak.lua" />
	<action fromuid="9008" touid="9011" script="quests/demon oak/demonOakChest.lua" />
	<action uniqueid="9007" script="quests/demon oak/demonOakGravestone.lua" />

	<!-- Arena Quest-->
	<action actionid="13100" script="quests/svargrond arena/arena_door.lua" />
	<action actionid="26100" script="quests/svargrond arena/arena_door.lua" />
	<action actionid="27100" script="quests/svargrond arena/arena_door.lua" />
	<action actionid="28100" script="quests/svargrond arena/arena_door.lua" />

	<!-- Annihilator Quest -->
	<action actionid="2214" script="quests/annihilator/door.lua" />
	<action uniqueid="2208" script="quests/annihilator/lever.lua" />

	<!-- Barbarian Test Quest -->
	<action fromid="7174" toid="7176" script="quests/barbarian test/horn.lua" />
	<action fromid="7140" toid="7141" script="quests/barbarian test/horn.lua" />
	<action uniqueid="3110" script="quests/barbarian test/mead.lua" />

	<!-- Behemoth Quest -->
	<action uniqueid="2007" script="quests/behemoth/lever.lua" />

	<!-- Bigfoot Burden Quest -->
	<action uniqueid="3143" script="quests/bigfoot burden/crystalWarzone1.lua"/>
	<action itemid="18305" script="quests/bigfoot burden/beer.lua" />
	<action fromuid="3124" touid="3127" script="quests/bigfoot burden/music.lua" />
	<action fromuid="3147" touid="3150" script="quests/bigfoot burden/rewards.lua" />
	<action itemid="18213" script="quests/bigfoot burden/extractor.lua" />
	<action itemid="18219" script="quests/bigfoot burden/crystal.lua" />
	<action itemid="18220" script="quests/bigfoot burden/mushroom.lua" />
	<action itemid="18225" script="quests/bigfoot burden/shooting.lua" />
	<action itemid="18312" script="quests/bigfoot burden/matchmaker.lua" />
	<action itemid="18313" script="quests/bigfoot burden/package.lua" />
	<action fromid="18328" toid="18331" script="quests/bigfoot burden/spores.lua" />
	<action itemid="18336" script="quests/bigfoot burden/stone.lua" />
	<action itemid="18339" script="quests/bigfoot burden/pig.lua" />
	<action itemid="18343" script="quests/bigfoot burden/repair.lua" />

	<!-- Demon Helmet Quest -->
	<action uniqueid="2005" script="quests/demon helmet/lever.lua" />

	<!-- Dreamer Challenge Quest -->
	<action uniqueid="3041" script="quests/dreamer challenge/documentsLever.lua" /> <!-- done -->
	<action uniqueid="3042" script="quests/dreamer challenge/documentsLever1.lua" /> <!-- done -->
	<action uniqueid="3043" script="quests/dreamer challenge/documentsLever2.lua" /> <!-- done -->
	
	<action uniqueid="3045" script="quests/dreamer challenge/documentsLever3.lua" /> <!-- done -->
	<action uniqueid="3046" script="quests/dreamer challenge/documentsLever4.lua" /> <!-- done -->
	<action uniqueid="3047" script="quests/dreamer challenge/documentsLever5.lua" /> <!-- done -->
	
	<action fromid="7844" toid="7846" script="quests/dreamer challenge/documents.lua" />
	<action uniqueid="2004" script="quests/dreamer challenge/stoneTeleport.lua" />
	<action uniqueid="2272" script="quests/dreamer challenge/ticTac.lua" />
	<action actionid="8033" script="quests/dreamer challenge/ticTacTeleport.lua" />
	<action fromuid="2246" touid="2249" script="quests/dreamer challenge/walls.lua" />

	<!-- Druid Outfit Quest -->
	<action itemid="5938" script="quests/druid outfit/waterskin.lua" />

	<!-- Explorer Society Quest -->
	<action itemid="4869" script="quests/explorer society/botanist.lua" />
	<action itemid="4865" script="quests/explorer society/butterfly.lua" />
	<action uniqueid="3017" script="quests/explorer society/dragon.lua" />
	<action itemid="4856" script="quests/explorer society/icicle.lua" />
	<action itemid="7242" script="quests/explorer society/resonance.lua" />
	<action itemid="4851" script="quests/explorer society/stone.lua" />
	<action itemid="4853" script="quests/explorer society/tracingpaper.lua" />
	<action actionid="1098" script="quests/explorer society/dwacatradoor.lua" />
	<action actionid="1097" script="quests/explorer society/chorurndoor.lua" />
	<action actionid="1092" script="quests/explorer society/bonelordsdoor.lua" />
	<action actionid="1096" script="quests/explorer society/orcpowderdoor.lua" />
	<action actionid="1094" script="quests/explorer society/edrondoor.lua" />
	<action actionid="1095" script="quests/explorer society/hellgatedoor.lua" />
	<action actionid="1091" script="quests/explorer society/bansheedoor.lua" />
	<action actionid="1093" script="quests/explorer society/calassadoor.lua" />
	<action uniqueid="9898" script="quests/system.lua" /><!-- Family Brooch -->
	<action actionid="32700" script="quests/explorer society/carvingTPdoor.lua" />
	
	<!-- Green Djinn Quest -->
	<action actionid="5390" script="quests/green djinn/tear.lua" />

	<!-- Ice Islands Quest -->
	<action fromid="7243" toid="7244" script="quests/ice islands/anthill.lua" />
	<action itemid="7289" script="quests/ice islands/charm.lua" />
	<action itemid="7286" script="quests/ice islands/cure.lua" />
	<action itemid="7253" script="quests/ice islands/paint.lua" />
	<action itemid="2361" script="quests/ice islands/yakchal.lua" />

	<!-- In Service Of Yalahar Quest -->
	<action itemid="9737" script="quests/in service of yalahar/charm.lua" />
	<action itemid="9733" script="quests/in service of yalahar/formula.lua" />
	<action itemid="9741" script="quests/in service of yalahar/ghost.lua" />
	<action uniqueid="3086" script="quests/in service of yalahar/lastFight.lua" />
	<action fromid="9743" toid="9744" script="quests/in service of yalahar/matrix.lua" />
	<action fromuid="3091" touid="3102" script="quests/in service of yalahar/mechanism.lua" />
	<action fromuid="9235" touid="9236" script="quests/in service of yalahar/mechanism.lua" />
	<action fromuid="3081" touid="3082" script="quests/in service of yalahar/mrWestDoor.lua" />
	<action fromuid="3088" touid="3090" script="quests/in service of yalahar/reward.lua" />
	<action uniqueid="9031" script="quests/in service of yalahar/morikSummon.lua" />
	<action fromaid="23700" toaid="23701" script="quests/in service of yalahar/YalaharMachineWargolems.lua" />

	<!-- Inquisition Quest -->
	<action itemid="8753" script="quests/inquisition/mw.lua" />
	<action fromuid="1300" touid="1308" script="quests/inquisition/rewards.lua" />
	<action actionid="1004" script="quests/inquisition/ungreez.lua" />
	<action actionid="2002" script="quests/inquisition/vampireHunt.lua" />
	<action fromuid="9017" touid="9020" script="quests/inquisition/brotherLever.lua" />
	<action uniqueid="9021" script="quests/inquisition/rewardDoor.lua" />

	<!-- Koshei Amulet Quest -->
	<action itemid="8266" script="quests/koshei amulet/boss.lua" />
	<action uniqueid="3070" script="quests/koshei amulet/switch.lua" />
	<action actionid="40532" script="quests/koshei amulet/bag.lua" />

	<!-- Pits Of Inferno Quest -->
	<action actionid="8815" script="quests/pits of inferno/fountain.lua" />
	<action actionid="2022" script="quests/pits of inferno/goshnar.lua" />
	<action fromuid="2050" touid="2065" script="quests/pits of inferno/levers.lua" />
	<action uniqueid="1021" script="quests/pits of inferno/oil.lua" />
	<action uniqueid="3300" script="quests/pits of inferno/stoneLever.lua" />
	<action fromuid="2025" touid="2028" script="quests/pits of inferno/walls.lua" />
	<action fromuid="3301" touid="3302" script="quests/pits of inferno/ladderLevers.lua" />
	<action uniqueid="3304" script="quests/pits of inferno/trapLever.lua" />
	<action fromaid="39511" toaid="39512" script="quests/pits of inferno/bazirMirror.lua" />
	<action fromuid="50095" touid="50104" script="quests/pits of inferno/bazirWrongLevers.lua" />
	<action uniqueid="50105" script="quests/pits of inferno/bazirMazeLever.lua" />
	<action uniqueid="50106" script="quests/pits of inferno/fireThroneLever.lua" />
	<action actionid="50160" script="quests/pits of inferno/mazeStone.lua" />

	<!-- Postman Quest -->
	<action itemid="2330" script="quests/postman/package.lua" />
	<action itemid="2331" script="quests/postman/present.lua" />
	<action uniqueid="3118" script="quests/postman/waldosPostHorn.lua" />

	<!-- The Hidden City of Beregar -->
	<action actionid="50128" script="quests/the hidden city of beregar/deeperMineWagon.lua" />
	<action fromaid="50098" toaid="50108" script="quests/the hidden city of beregar/oreWagon.lua" />
	<action actionid="50112" script="quests/the hidden city of beregar/gapWagon.lua" />
	<action actionid="50115" script="quests/the hidden city of beregar/tunnelWagon.lua" />
	<action actionid="50117" script="quests/the hidden city of beregar/coalWagon.lua" /> 
	<action fromuid="50108" touid="50111" script="quests/the hidden city of beregar/coalLevers.lua" />
	<action fromaid="50122" toaid="50125" script="quests/the hidden city of beregar/coalExitWagons.lua" />
	<action fromuid="50113" touid="50123" script="quests/the hidden city of beregar/wagonMazeLevers.lua" />
	<action uniqueid="50124" script="quests/the hidden city of beregar/wagonMazeExit.lua" />

	<action actionid="50109" script="vagao.lua" />
	<action actionid="42150" script="vagao1.lua" />
	<action actionid="42139" script="escada.lua" />

	<!-- Thieves Guild Quest -->
	<action itemid="8693" script="quests/the thieves guild/dwarfDisguiseKit.lua" />
	<action itemid="8701" script="quests/the thieves guild/note.lua" />
	<action fromaid="12501" toaid="12502" script="quests/the thieves guild/climbingVine.lua" />
	<action itemid="8762" script="quests/the thieves guild/fishnappingKey.lua" />
	<action actionid="12505" script="quests/the thieves guild/fishnappingDoor.lua" />

	<!-- The Travelling Trader Quest -->
	<action actionid="1108" script="quests/the travelling trader/outlawcampdoor.lua" />
	
	<!-- Secret Service Quest -->
	<action itemid="7700" script="quests/secret service/amazonDisguiseKit.lua" />
	<action itemid="7697" script="quests/secret service/ring.lua" />
	<action fromid="7960" toid="7962" script="quests/secret service/tools.lua" />
	<action itemid="7698" script="quests/secret service/rustBugs.lua" />
	<action actionid="12574" script="quests/secret service/lever.lua" />

	<!-- Sams Old Backpack Quest -->
	<action actionid="42535" script="quests/sam old backpack/door.lua" />

	<!-- Tibia Tales Quest -->
	<action itemid="7496" script="quests/tibia tales/UltimateBoozebeerBottle.lua" />
	<action itemid="8205" script="quests/tibia tales/exterminatorFlask.lua" />

	<!-- Their Masters Voice Quest --> 
	<action itemid="13601" script="quests/theirmaster/slimeGobbler.lua" />

	<!-- Rottin Wood and the Married Men Quest -->
	<action itemid="13176" script="rottin wood quest/corpse.lua"/>
	<action actionid="42501" script="rottin wood quest/broken wall.lua" />
	<action actionid="42502" script="rottin wood quest/broken wall.lua" />
	<action actionid="42503" script="rottin wood quest/broken wall.lua" />
	<action actionid="42504" script="rottin wood quest/broken wall.lua" />
	<action actionid="42505" script="rottin wood quest/broken wall.lua" />

	<!-- Quests -->
	<action fromuid="9172" touid="9174" script="quests/warzone_rewards.lua" />
	<action uniqueid="9177" script="quests/iron_helmet.lua" />
	<action uniqueid="9192" script="quests/orcedron.lua" />
	<action uniqueid="1912" script="quests/desertdungeonquest.lua" />
	<action uniqueid="50023" script="quests/triangletowerlever.lua" />
	<action fromaid="50023" toaid="50024" script="quests/thaislighthouselever.lua" />
	<action actionid="50027" script="quests/hellgatelever.lua" />
	<action actionid="50129" script="quests/liferinglever.lua" />
	<action actionid="2000" script="quests/system.lua" />
	<action actionid="2016" script="quests/system.lua" />
	<action actionid="2215" script="quests/system.lua" />
	<action actionid="10544" script="quests/system.lua" />
	<action actionid="12374" script="quests/system.lua" />
	<action actionid="12513" script="quests/system.lua" />
	<action actionid="26300" script="quests/system.lua" />
	<action actionid="27300" script="quests/system.lua" />
	<action actionid="28300" script="quests/system.lua" />
	<action itemid="10523" script="other/deeperBanutaShortcut.lua" />
	<action actionid="50161" script="quests/calassaCombDoor.lua" />
	<action actionid="2001" script="quests/system2.lua" />
	
	<action itemid="4863" script="quests/ectoplasmContainer.lua" />
	<action itemid="7494" script="quests/holyWater.lua" />
	<action actionid="5632" script="quests/serpentineTowerTorch.lua" />
	<action actionid="5633" script="quests/serpentineTowerLever.lua" />
	<action actionid="4210" script="quests/senjaCastleLever.lua" />
	<action actionid="19910" script="quests/stealfromthieves.lua" />

	<!-- Tools -->
	<action itemid="13158" script="tools/present.lua" />
	<action itemid="13173" script="rottin wood quest/trap.lua"/>
	<action itemid="8717" script="tools/lockPick.lua" />
	<action itemid="8613" script="tools/bricklayerKit.lua" />
	<action itemid="2557" script="tools/hammer.lua" />
	<action itemid="2558" script="tools/saw.lua" />
	<action itemid="5865" script="tools/juice squeezer.lua" />
	<action itemid="2416" script="tools/crowbar.lua" />
	<action itemid="2420" script="tools/machete.lua" />
	<action itemid="2565" script="tools/spoon.lua" />
	<action itemid="2566" script="tools/kitchenknife.lua" />
	<action itemid="2549" script="tools/rake.lua" />
	<action itemid="2550" script="tools/scythe.lua" />
	<action itemid="2580" script="tools/fishing.lua" allowfaruse="1" />
	
	<action itemid="10223" script="tools/fish2.lua" allowfaruse="1" />
	
	<action itemid="5710" script="tools/shovel.lua" />
	<action itemid="2554" script="tools/shovel.lua" />
	<action itemid="2120" script="tools/rope.lua" />
	<action itemid="7731" script="tools/rope.lua" />
	<action itemid="2553" script="tools/pick.lua" />
	<action itemid="5908" script="tools/skinning.lua" />
	<action itemid="5942" script="tools/skinning.lua" />
	<action itemid="9930" script="tools/rustremover.lua" />
	<action itemid="10511" script="tools/toolgear.lua" />
	<action itemid="10513" script="tools/toolgear.lua" />
	<action itemid="10515" script="tools/toolgear.lua" />
	<action itemid="10309" script="tools/noxiousclaw.lua" />
	
	<action itemid="2405" script="tools/sickle.lua" />

	<!-- Increase/Decrease ItemId -->
	<action itemid="1479" toid="1480" script="other/decayto.lua" />
	<action itemid="1480" toid="1479" script="other/decayto.lua" />
	<action itemid="1634" toid="1635" script="other/decayto.lua" />
	<action itemid="1635" toid="1634" script="other/decayto.lua" />
	<action itemid="1636" toid="1637" script="other/decayto.lua" />
	<action itemid="1637" toid="1636" script="other/decayto.lua" />
	<action itemid="1638" toid="1639" script="other/decayto.lua" />
	<action itemid="1639" toid="1638" script="other/decayto.lua" />
	<action itemid="1640" toid="1641" script="other/decayto.lua" />
	<action itemid="1641" toid="1640" script="other/decayto.lua" />
	<action itemid="1786" toid="1787" script="other/decayto.lua" />
	<action itemid="1787" toid="1786" script="other/decayto.lua" />
	<action itemid="1788" toid="1789" script="other/decayto.lua" />
	<action itemid="1789" toid="1788" script="other/decayto.lua" />
	<action itemid="1790" toid="1791" script="other/decayto.lua" />
	<action itemid="1791" toid="1790" script="other/decayto.lua" />
	<action itemid="1792" toid="1793" script="other/decayto.lua" />
	<action itemid="1793" toid="1792" script="other/decayto.lua" />
	<action itemid="1873" toid="1874" script="other/decayto.lua" />
	<action itemid="1874" toid="1873" script="other/decayto.lua" />
	<action itemid="1875" toid="1876" script="other/decayto.lua" />
	<action itemid="1876" toid="1875" script="other/decayto.lua" />
	<action itemid="1945" toid="1946" script="other/decayto.lua" />
	<action itemid="1946" toid="1945" script="other/decayto.lua" />
	<action itemid="2037" toid="2038" script="other/decayto.lua" />
	<action itemid="2038" toid="2037" script="other/decayto.lua" />
	<action itemid="2039" toid="2040" script="other/decayto.lua" />
	<action itemid="2040" toid="2039" script="other/decayto.lua" />
	<action itemid="2058" toid="2059" script="other/decayto.lua" />
	<action itemid="2059" toid="2058" script="other/decayto.lua" />
	<action itemid="2060" toid="2061" script="other/decayto.lua" />
	<action itemid="2061" toid="2060" script="other/decayto.lua" />
	<action itemid="2064" toid="2065" script="other/decayto.lua" />
	<action itemid="2065" toid="2064" script="other/decayto.lua" />
	<action itemid="2066" toid="2067" script="other/decayto.lua" />
	<action itemid="2067" toid="2066" script="other/decayto.lua" />
	<action itemid="2068" toid="2069" script="other/decayto.lua" />
	<action itemid="2069" toid="2068" script="other/decayto.lua" />
	<action itemid="2578" toid="2579" script="other/decayto.lua" />
	<action itemid="2096" toid="2097" script="other/decayto.lua" />
	<action itemid="2097" toid="2096" script="other/decayto.lua" />
	<action itemid="2162" toid="2163" script="other/decayto.lua" />
	<action itemid="2163" toid="2162" script="other/decayto.lua" />
	<action itemid="3697" toid="3698" script="other/decayto.lua" />
	<action itemid="3698" toid="3697" script="other/decayto.lua" />
	<action itemid="3743" toid="3744" script="other/decayto.lua" />
	<action itemid="3744" toid="3743" script="other/decayto.lua" />
	<action itemid="3947" toid="3948" script="other/decayto.lua" />
	<action itemid="3948" toid="3948" script="other/decayto.lua" />
	<action itemid="5812" toid="5813" script="other/decayto.lua" />
	<action itemid="5813" toid="5812" script="other/decayto.lua" />
	<action itemid="6489" toid="6490" script="other/decayto.lua" />
	<action itemid="6490" toid="6489" script="other/decayto.lua" />
	<action itemid="7058" toid="7059" script="other/decayto.lua" />
	<action itemid="7059" toid="7059" script="other/decayto.lua" />
	<action itemid="8684" toid="8685" script="other/decayto.lua" />
	<action itemid="8685" toid="8684" script="other/decayto.lua" />
	<action itemid="8686" toid="8687" script="other/decayto.lua" />
	<action itemid="8687" toid="8686" script="other/decayto.lua" />
	<action itemid="8688" toid="8689" script="other/decayto.lua" />
	<action itemid="8689" toid="8688" script="other/decayto.lua" />
	<action itemid="8690" toid="8691" script="other/decayto.lua" />
	<action itemid="8691" toid="8690" script="other/decayto.lua" />
	<action itemid="9575" toid="9576" script="other/decayto.lua" />
	<action itemid="9576" toid="9575" script="other/decayto.lua" />
	<action itemid="9577" toid="9578" script="other/decayto.lua" />
	<action itemid="9578" toid="9577" script="other/decayto.lua" />
	<action itemid="9579" toid="9580" script="other/decayto.lua" />
	<action itemid="9580" toid="9579" script="other/decayto.lua" />
	<action itemid="9581" toid="9582" script="other/decayto.lua" />
	<action itemid="9582" toid="9581" script="other/decayto.lua" />
	<action itemid="9747" toid="9748" script="other/decayto.lua" />
	<action itemid="9748" toid="9747" script="other/decayto.lua" />
	<action itemid="9749" toid="9750" script="other/decayto.lua" />
	<action itemid="9750" toid="9749" script="other/decayto.lua" />
	<action itemid="19691" toid="19692" script="other/decayto.lua" />
	<action itemid="19692" toid="19691" script="other/decayto.lua" />
	<action itemid="22868" toid="22869" script="other/decayto.lua" />
	<action itemid="22869" toid="22868" script="other/decayto.lua" />
	<action itemid="22870" toid="22871" script="other/decayto.lua" />
	<action itemid="22871" toid="22870" script="other/decayto.lua" />
	<action itemid="22872" toid="22873" script="other/decayto.lua" />
	<action itemid="22873" toid="22872" script="other/decayto.lua" />
	<action itemid="22874" toid="22875" script="other/decayto.lua" />
	<action itemid="22875" toid="22870" script="other/decayto.lua" />
	<action itemid="32023" toid="32070" script="other/decayto.lua" /> <!-- Light of Change Empty to Red -->
	<action itemid="32070" toid="33174" script="other/decayto.lua" /> <!-- Light of Change Red to Green -->
	<action itemid="33174" toid="32026" script="other/decayto.lua" /> <!-- Light of Change Green to Blue -->
	<action itemid="32026" toid="32023" script="other/decayto.lua" /> <!-- Light of Change Blue to Empty -->
	<action fromid="32036" toid="32037" script="other/decayto.lua" /> <!-- Pile of alchemistic books -->
	<action fromid="32258" toid="32259" script="other/decayto.lua" /> <!-- Anglerfish Lamp -->
	<action fromid="32759" toid="32762" script="other/decayto.lua" /> <!-- Bonelord Statue -->
	<action fromid="32769" toid="32772" script="other/decayto.lua" /> <!-- Scholar Bust -->
	<action fromid="32773" toid="32776" script="other/decayto.lua" /> <!-- Scholar Bust -->
	<action fromid="33491" toid="33492" script="other/decayto.lua" /> <!-- Fluorescent Fungi -->
	<action fromid="33493" toid="33494" script="other/decayto.lua" /> <!-- Luminescent Fungi -->
	<action fromid="33495" toid="33496" script="other/decayto.lua" /> <!-- Glowing Sulphur Fungi -->
	<action fromid="33497" toid="33498" script="other/decayto.lua" /> <!-- Gloomy Poisonous Fungi -->

	<!-- FOOD JEAN PERRI -->
	<action itemid="9992" script="other/food2.lua" />
	<action itemid="9993" script="other/food3.lua" />
	
	<!-- Food -->
	<action itemid="6509" script="other/presents.lua" />
	<action itemid="6508" script="other/presents.lua" />
	<action itemid="6507" script="other/presents.lua" />
	<action itemid="26191" script="other/food.lua" /> <!-- energy bar -->
	<action itemid="26201" script="other/food.lua" /> <!-- energy drink -->
	<action itemid="16014" script="other/food.lua" />
	<action itemid="22644" script="other/food.lua" />
	<action itemid="24843" script="other/food.lua" />
	<action itemid="2328" script="other/food.lua" />
	<action itemid="2362" script="other/food.lua" />
	<action itemid="23514" script="other/food.lua" />
	<action itemid="23517" script="other/food.lua" />
	<action fromid="2666" toid="2691" script="other/food.lua" />
	<action itemid="2696" script="other/food.lua" />
	<action fromid="2787" toid="2796" script="other/food.lua" />
	<action itemid="5097" script="other/food.lua" />
	<action itemid="6125" script="other/food.lua" />
	<action fromid="6278" toid="6279" script="other/food.lua" />
	<action fromid="6393" toid="6394" script="other/food.lua" />
	<action itemid="7966" script="other/food.lua" />
	<action itemid="6501" script="other/food.lua" />
	<action fromid="6541" toid="6545" script="other/food.lua" />
	<action itemid="6569" script="other/food.lua" />
	<action itemid="6574" script="other/food.lua" />
	<action fromid="7158" toid="7159" script="other/food.lua" />
	<action fromid="7372" toid="7377" script="other/food.lua" />
	<action fromid="7909" toid="7910" script="other/food.lua" />
	<action itemid="7963" script="other/food.lua" />
	<action itemid="8112" script="other/food.lua" />
	<action fromid="8838" toid="8845" script="other/food.lua" />
	<action itemid="8847" script="other/food.lua" />
	<action itemid="9005" script="other/food.lua" />
	<action itemid="9114" script="other/food.lua" />
	<action itemid="9996" script="other/food.lua" />
	<action itemid="10454" script="other/food.lua" />
	<action itemid="11246" script="other/food.lua" />
	<action itemid="11370" script="other/food.lua" />
	<action itemid="11429" script="other/food.lua" />
	<action fromid="12415" toid="12418" script="other/food.lua" />
	<action fromid="12637" toid="12639" script="other/food.lua" />
	<action itemid="13297" script="other/food.lua" />
	<action itemid="15405" script="other/food.lua" />
	<action fromid="15487" toid="15488" script="other/food.lua" />
	<action itemid="18306" script="other/food.lua" />
	<action itemid="18397" script="other/food.lua" />
	<action itemid="19737" script="other/food.lua" />
	<action fromid="20100" toid="20101" script="other/food.lua" />
	<action itemid="23516" script="other/food.lua" />
	<action itemid="23515" script="other/food.lua" />
	<action itemid="24841" script="other/food.lua" />
	<action itemid="9999" script="other/blessedsteak.lua" />

	<!-- Construction Kits / Beds -->
	<action fromid="3901" toid="3938" script="other/constructionkits.lua" />
	<action fromid="5086" toid="5088" script="other/constructionkits.lua" />
	<action itemid="6114" script="other/constructionkits.lua" />
	<action itemid="6115" script="other/constructionkits.lua" />
	<!--<action itemid="6372" script="other/constructionkits.lua" />-->
	<action itemid="6373" script="other/constructionkits.lua" />
	<action itemid="8692" script="other/constructionkits.lua" />
	<action itemid="9974" script="other/constructionkits.lua" />
	<action itemid="11124" script="other/constructionkits.lua" />
	<action itemid="11126" script="other/constructionkits.lua" />
	<action itemid="11133" script="other/constructionkits.lua" />
	<action itemid="11205" script="other/constructionkits.lua" />
	<action itemid="14328" script="other/constructionkits.lua" />
	<action itemid="14329" script="other/constructionkits.lua" />
	<action itemid="16075" script="other/constructionkits.lua" />
	<action itemid="16099" script="other/constructionkits.lua" />
	<action itemid="20254" script="other/constructionkits.lua" />
	<action itemid="20255" script="other/constructionkits.lua" />
	<action itemid="20257" script="other/constructionkits.lua" />
	<action fromid="7904" toid="7907" script="other/bed_modification_kits.lua" />
	<action itemid="20252" script="other/bed_modification_kits.lua" />
	<action itemid="26054" script="other/store constructionkits.lua" />  <!-- otc store -->

	<!-- Gold -->
	<action itemid="2148" script="other/changegold.lua" />
	<action itemid="2152" script="other/changegold.lua" />
	<action itemid="2160" script="other/changegold.lua" />

	<!-- Potions / Fluids -->
	<action fromid="2005" toid="2009" script="other/fluids.lua" />
	<action fromid="2011" toid="2015" script="other/fluids.lua" />
	<action itemid="2023" script="other/fluids.lua" />
	<action itemid="1775" script="other/fluids.lua" />
	<action fromid="2031" toid="2034" script="other/fluids.lua" />
	<action itemid="2562" script="other/fluids.lua" />
	<action fromid="2574" toid="2577" script="other/fluids.lua" />
	<action itemid="26031" script="other/potions.lua" />
	<action itemid="8474" script="other/potions.lua" />
	<action itemid="26030" script="other/potions.lua" />
	<action itemid="26029" script="other/potions.lua" />
	<action itemid="7588" script="other/potions.lua" />
	<action itemid="7589" script="other/potions.lua" />
	<action itemid="7590" script="other/potions.lua" />
	<action itemid="7591" script="other/potions.lua" />
	<action itemid="7618" script="other/potions.lua" />
	<action itemid="7620" script="other/potions.lua" />
	<action itemid="8472" script="other/potions.lua" />
	<action itemid="8473" script="other/potions.lua" />
	<action itemid="8704" script="other/potions.lua" />
	<action itemid="7439" script="other/strengthening_potions.lua" />
	<action itemid="7440" script="other/strengthening_potions.lua" />
	<action itemid="7443" script="other/strengthening_potions.lua" />

	<!-- Doors -->
	<action fromid="1209" toid="1214" script="other/doors.lua" />
	<action fromid="1219" toid="1262" script="other/doors.lua" />
	<action fromid="1539" toid="1542" script="other/doors.lua" />
	<action fromid="2086" toid="2092" script="other/doors.lua" />
	<action fromid="3535" toid="3552" script="other/doors.lua" />
	<action fromid="4913" toid="4918" script="other/doors.lua" />
	<action fromid="5082" toid="5085" script="other/doors.lua" />
	<action fromid="5098" toid="5145" script="other/doors.lua" />
	<action fromid="5278" toid="5295" script="other/doors.lua" />
	<action fromid="5515" toid="5518" script="other/doors.lua" />
	<action fromid="5732" toid="5737" script="other/doors.lua" />
	<action fromid="5745" toid="5749" script="other/doors.lua" />
	<action fromid="6192" toid="6209" script="other/doors.lua" />
	<action fromid="6249" toid="6266" script="other/doors.lua" />
	<action fromid="6795" toid="6802" script="other/doors.lua" />
	<action fromid="6891" toid="6908" script="other/doors.lua" />
	<action fromid="7033" toid="7050" script="other/doors.lua" />
	<action fromid="7054" toid="7057" script="other/doors.lua" />
	<action fromid="8541" toid="8558" script="other/doors.lua" />
	<action fromid="9165" toid="9184" script="other/doors.lua" />
	<action fromid="9267" toid="9284" script="other/doors.lua" />
	<action itemid="10032" script="other/doors.lua" />
	<action fromid="10268" toid="10285" script="other/doors.lua" />
	<action fromid="10468" toid="10486" script="other/doors.lua" />
	<action fromid="10775" toid="10777" script="other/doors.lua" />
	<action fromid="10780" toid="10786" script="other/doors.lua" />
	<action fromid="10789" toid="10792" script="other/doors.lua" />
	<action fromid="12092" toid="12105" script="other/doors.lua" />
	<action fromid="12188" toid="12190" script="other/doors.lua" />
	<action fromid="12193" toid="12199" script="other/doors.lua" />
	<action fromid="12202" toid="12205" script="other/doors.lua" />
	<action fromid="19840" toid="19857" script="other/doors.lua" />
	<action fromid="19980" toid="19997" script="other/doors.lua" />
	<action fromid="20273" toid="20290" script="other/doors.lua" />
	<action fromid="17235" toid="17238" script="other/doors.lua" />
	<action fromid="18208" toid="18209" script="other/doors.lua" />
	<action fromid="13020" toid="13023" script="other/doors.lua" />
	<action fromid="22814" toid="22831" script="other/doors.lua" />
	<action fromid="25158" toid="25165" script="other/doors.lua" />
	<action fromid="26541" toid="26546" script="other/doors.lua" />
	<action fromid="14755" toid="14760" script="other/hive_doors1.lua" />
	<action fromid="14767" toid="14771" script="other/hive_doors2.lua" />

	<!-- Other -->
	<action itemid="11339" script="other/claylump.lua" />
	<action itemid="3955" script="other/voodoo_doll.lua" />
	<action itemid="5468" script="other/firebug.lua" />
	<action itemid="5928" script="other/catchFish.lua" />
	<action itemid="6578" script="other/partyhat.lua" />
	<action itemid="2114" script="other/piggybank.lua" />
	<action itemid="5957" script="other/lotteryticket.lua" />
	<action fromid="6570" toid="6571" script="other/surprisebag.lua" />
	<action itemid="6576" script="other/fireworksrocket.lua" />
	<action itemid="2036" script="other/watch.lua" />
	<action fromid="1728" toid="1731" script="other/watch.lua" />
	<action itemid="6572" script="other/partytrumpet.lua" />
	<action itemid="2785" script="other/blueberrybush.lua" />
	<action itemid="2579" script="other/trap.lua" />
	<action itemid="3957" script="other/corco.lua"/>
	<action fromid="2070" toid="2085" script="other/music.lua" />
	<action itemid="2332" script="other/music.lua" />
	<action itemid="2364" script="other/music.lua" />
	<action fromid="2367" toid="2374" script="other/music.lua" />
	<action fromid="3951" toid="3953" script="other/music.lua" />
	<action itemid="5786" script="other/music.lua" />
	<action itemid="13759" script="other/music.lua" />
	<action fromid="2041" toid="2042" script="other/decayto.lua" />
	<action fromid="2044" toid="2045" script="other/decayto.lua" />
	<action fromid="2047" toid="2048" script="other/decayto.lua" />
	<action fromid="2050" toid="2055" script="other/decayto.lua" />
	<action itemid="430" script="other/teleport.lua" />
	<action itemid="8580" script="other/teleport.lua" />
	<action itemid="1369" script="other/teleportdrawwell.lua" />
	<action itemid="1386" script="other/teleport.lua" />
	<action itemid="3678" script="other/teleport.lua" />
	<action itemid="5543" script="other/teleport.lua" />
	<action itemid="22845" script="other/teleport.lua" />
	<action itemid="22846" script="other/teleport.lua" />
	<action fromid="2376" toid="2404" script="other/destroy.lua" />
	<action itemid="2406" script="other/destroy.lua" />
	<action fromid="2408" toid="2415" script="other/destroy.lua" />
	<action fromid="2417" toid="2419" script="other/destroy.lua" />
	<action fromid="2421" toid="2453" script="other/destroy.lua" />
	<action fromid="5792" toid="5797" script="other/dice.lua" />
	<action itemid="6558" script="other/concentrated_demonic_blood.lua" />
	<action itemid="6277" script="other/baking.lua" />
	<action itemid="8846" script="other/baking.lua" /> 
	<action fromid="2692" toid="2694" script="other/baking.lua" />
	<action fromid="6436" toid="6447" script="other/windows.lua" />
	<action fromid="6450" toid="6473" script="other/windows.lua" />
	<action fromid="6788" toid="6791" script="other/windows.lua" />
	<action fromid="7025" toid="7032" script="other/windows.lua" />
	<action fromid="10264" toid="10267" script="other/windows.lua" />
	<action fromid="10488" toid="10491" script="other/windows.lua" />
	<action fromid="11258" toid="11262" script="other/blessingCharms.lua" />
	<action fromid="28036" toid="28037" script="other/blessingCharms.lua" />
	<action itemid="7737" script="other/costumebags.lua" />
	<action itemid="7739" script="other/costumebags.lua" />
	<action itemid="9076" script="other/costumebags.lua" />
	<action itemid="20220" script="other/rafzanElevator.lua" />
	<action itemid="20224" script="other/rafzanElevator.lua" />
	<action itemid="18395" script="other/muckremover.lua" />
	<action fromaid="50006" toaid="50010" script="other/horestisjars.lua" />
	<action itemid="5467" script="other/sugaroat.lua" />

	<!-- Market -->
	<action itemid="14405" function="market" />

	<!-- Dolls -->
	<action itemid="5080" script="other/dolls.lua" />
	<action itemid="5669" script="other/dolls.lua" />
	<action itemid="6388" script="other/dolls.lua" />
	<action itemid="6512" script="other/dolls.lua" />
	<action itemid="6566" script="other/dolls.lua" />
	<action itemid="8974" script="other/dolls.lua" />
	<action itemid="8977" script="other/dolls.lua" />
	<action itemid="8981" script="other/dolls.lua" />
	<action itemid="8982" script="other/dolls.lua" />

	<!-- Valuables -->
	<action itemid="13670" script="valuables/randomitems.lua" />
	<action itemid="15572" script="valuables/randomitems.lua" />
	<action itemid="18215" script="valuables/randomitems.lua" />

	<!-- magic trees -->
	<action fromid="29423" toid="29430" script="other/magic_tree.lua"/>
</actions>

data\actions\scripts\autoloot.lua

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
	local issue = {}
	local bodycontainer, slot, msg = {}, 0, ''
	local monster = Tile(toPosition):getTopVisibleThing()
	local corpse = getTileItemById(toPosition, monster:getId()).uid
	local slots = getContainerSize(corpse)
	
	if not corpse or not slots then
		return false
	end
	
	local logic, contlogic, bplogica = 1, {}, {}
	if getContainerSize(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid) then
	for i = 0, getContainerSize(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid) do
		contlogic[logic] = getContainerItem(getPlayerSlotItem(player, CONST_SLOT_BACKPACK).uid, i)
				
		if isContainer(contlogic[logic].uid) then
		bplogica[logic] = contlogic[logic]
		logic = logic + 1
		end
	
	end
	end
	
	for times = 1, slots do
		bodycontainer[times] = getContainerItem(corpse, slot)
		if player:getAutoLootItem(bodycontainer[times].itemid) then
		
		local slotcorpse = bodycontainer[times].uid
		local itemcorpse = Item(slotcorpse)
		local slotgg
		local localizou
		local resultId = db.storeQuery('SELECT `cont_id` FROM `player_autoloot_persist` WHERE `player_guid` = ' .. getPlayerGUID(player) .. ' AND `item_id` = ' .. itemcorpse:getId() .. '')
			if resultId then
			local bp_id = result.getNumber(resultId, 'cont_id')
			end
		for i = 1, #bplogica do
		local tempitem = Item(bplogica[i].uid)
			if tempitem:getId() == result.getNumber(resultId, 'cont_id') and localizou ~= 1 then
				local bp = bplogica[i].uid
				local freeSlotsInBp = math.max(0, getContainerCap(bp) - getContainerSize(bp))
				if freeSlotsInBp and freeSlotsInBp > 0 then
				slotgg = bplogica[i].uid
				localizou = 1
				end
			end
		end
		
		local destination = Item(slotgg)
		
			if destination and destination:getTopParent() == player then
				itemcorpse:moveTo(destination)
					if bodycontainer[times].type > 1 then
					msg = ''..msg.. ', '..bodycontainer[times].type..' '..tostring(ItemType(bodycontainer[times].itemid):getPluralName())..''
					else
					msg = ''..msg.. ', '..tostring(ItemType(bodycontainer[times].itemid):getName())..''
					end
			else
				if not table.contains(issue, bodycontainer[times].itemid) then
				table.insert(issue, bodycontainer[times].itemid)
				end
				itemcorpse:moveToSlot(player, 0)
			end	
			
		else
			slot = slot + 1
		end		
	end
	
	if msg ~= '' then
	player:sendTextMessage(MESSAGE_INFO_DESCR,'Looted:'.. string.gsub(" "..msg, "%W%l", string.lower):sub(3) ..' opening corpse')
	end
	
	if issue then
	if #issue >= 1 then
	for i = 1, #issue do
	player:sendTextMessage(MESSAGE_INFO_DESCR,'All main '..string.gsub(" "..string.lower(ItemType(issue[i]):getName()), "%W%l", string.upper):sub(2)..' full, buy a new or move itens to sub backpacks.')
	end
	end
	end
	
end

 

Se precisar de mais algum arquivo me avise que eu posto...

Agradeeço desde de já

 

Prints Adicionais

Screenshot_4.thumb.png.6d9ad684263bf354f5a4fc1172bedc76.png

Screenshot_3.thumb.png.10b2ad9974819cbc7f78953b98ff2423.png

 

@Vodkart

Editado por Deltaxx
Mensionar um membro... (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

@twix87 

<?xml version="1.0" encoding="UTF-8"?>
<globalevents>

	<!-- AUTO LOOT -->
	<globalevent name="autoloot" type="startup" script="autoloot.lua"/>

		<!-- boss falcon -->
	<globalevent name="Canon Dominus" interval="900000" script="bosses/Grand Canon Dominus.lua" />
	<globalevent name="Chaplaingaunder" interval="900000" script="bosses/Grand Chaplain Gaunder.lua" />
    <globalevent name="Preceptor Lazare" interval="900000" script="bosses/Preceptor Lazare.lua" />
	<globalevent name="Grand Commander" interval="900000" script="bosses/Grand Commander Soeren.lua" />
    <globalevent name="Thawing Dragon Lord" interval="900000" script="bosses/Thawing Dragon Lord.lua" /> 
	
	
	<!--Gray Island Bosses -->
    <globalevent name="grayIslandBosses" type="startup" script="gray island/grayIslandBosses.lua"/>
	
    <!----- Mawhawk a cada 4 horas  Funcionando	-->
    <globalevent name="Mawhawk" interval="14399999" script="bosses/Mawhawk.lua"/>
	    

    <!----- Boss poi a cada 13 um randon boss horas  Funcionando	-->
    <globalevent name="bosspoi" interval="46800000" script="bosses/bosspoi.lua"/>
	 
 	 
	 
    <!----- Mad mage a cada 4 horas  Funcionando	-->
    <globalevent name="Mad" interval="14400000" script="bosses/Mad.lua"/>	
  
	
	
	
	
    <globalevent name="npcs" type="startup" script="others/npcspawn.lua"/>

	<!-- grimvale raid -->
	<globalevent name="Grimvale" interval="60000" script="others/grimvale.lua" />
	<globalevent name="Respawn" type="startup" script="others/grimvaleRespawn.lua" />

	<!-- Ferumbras Ascendant Quest -->
    <globalevent name="Effect" interval="3000" script="FerumbrasAscedantQuest/effect.lua"/>
    <globalevent name="Effcts" interval="4000" script="FerumbrasAscedantQuest/effects.lua"/>

	<!-- Blooming Griffinclaw -->
	<globalevent name="GriffinclawFlower" type="startup" script="others/griffinclawFlower.lua" />

	<!-- Demon Oak Quest -->
	<globalevent name="DemonOakVoices" interval="15000" script="demon oak quest/voices.lua" />

	<!-- Rent Horses -->
	<globalevent name="RentedMounts" interval="15000" script="others/checkMount.lua" />

	<!-- World Changes -->
	<globalevent name="FuryGates" type="startup" script="worldchanges/furygates.lua" />
	<globalevent name="TheirMastersVoice" type="startup" script="worldchanges/theirmastersvoice.lua" />

	<!-- Raids --> 
	<globalevent name="SpawnRaid" interval="60000" script="spawn/raids.lua"/>

	<!-- Others --> 
	<globalevent name="respawndano" interval="9000" script="respawndano.lua" />
	<globalevent type="startup" name="ServerStartup" script="startup.lua" />
	<globalevent type="record" name="PlayerRecord" script="record.lua" />
	<globalevent name="ServerSave" time="05:55:00" script="serversave.lua" />	
	<globalevent type="startup" name="rashid" script="rashid.lua"/>
	<globalevent type="startup" name="yasir" script="worldchanges/yasir.lua"/>
    <globalevent name="text" interval="4550" script="textotp.lua"/>
	<globalevent type="startup" name="doCheckHouses" script="others/doCheckHouses.lua" />
	<globalevent name="checkInbox" interval="30000" script="others/checkInbox.lua"/>
	<globalevent interval="100000" name="GuildWar" script="guildwar.lua"/>
	<globalevent interval="180000000" name="AutoSave" script="autosave.lua"/>
	<globalevent name="autoBroadcast" interval="900000" script="autobroadcast.lua"/>
</globalevents>

 

scripts/autoloot.lua

 

function onStartup()
	lootBlockListm = {}
	lootBlockListn = {}
	lastitem = {}
	autolootBP = 1 -- 0 = disable, 1 = enable (only works with autolootmode = 2 in config.lua)
    return true
end

Já veio no servidor que peguei, cheio de bugs kk

 

Editado por Deltaxx (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • 2 weeks later...
Em 19/12/2019 em 19:51, heitor1 disse:

Boa noite, conseguiu a solução? também estou tendo problema para adicionar o autoloot na bin...

 

 

Ainda nada, se conseguir alguma solução posta aqui tbm...

Link para o post
Compartilhar em outros sites
Em 19/12/2019 em 19:51, heitor1 disse:

Boa noite, conseguiu a solução? também estou tendo problema para adicionar o autoloot na bin...

 

 

Meu querido consegui arrumar, vou te mandar a solução que encontrei, postei aqui um tópico explicando + ou - como se faz.

@heitor1

Editado por Deltaxx
Citar. (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por cloudrun2023
      CloudRun - Sua Melhor Escolha para Hospedagem de OTServer!
      Você está procurando a solução definitiva para hospedar seu OTServer com desempenho imbatível e segurança inigualável? Não procure mais! Apresentamos a CloudRun, sua parceira confiável em serviços de hospedagem na nuvem.
       
      Recursos Exclusivos - Proteção DDoS Avançada:
      Mantenha seu OTServer online e seguro com nossa robusta proteção DDoS, garantindo uma experiência de jogo ininterrupta para seus jogadores.
       
      Servidores Ryzen 7 Poderosos: Desfrute do poder de processamento superior dos servidores Ryzen 7 para garantir um desempenho excepcional do seu OTServer. Velocidade e estabilidade garantidas!
       
      Armazenamento NVMe de Alta Velocidade:
      Reduza o tempo de carregamento do jogo com nosso armazenamento NVMe ultrarrápido. Seus jogadores vão adorar a rapidez com que podem explorar o mundo do seu OTServer.
       
      Uplink de até 1GB:
      Oferecemos uma conexão de alta velocidade com até 1GB de largura de banda, garantindo uma experiência de jogo suave e livre de lag para todos os seus jogadores, mesmo nos momentos de pico.
       
      Suporte 24 Horas:
      Estamos sempre aqui para você! Nossa equipe de suporte está disponível 24 horas por dia, 7 dias por semana, para resolver qualquer problema ou responder a qualquer pergunta que você possa ter. Sua satisfação é a nossa prioridade.
       
      Fácil e Rápido de Começar:
      Configurar seu OTServer na CloudRun é simples e rápido. Concentre-se no desenvolvimento do seu jogo enquanto cuidamos da hospedagem.
       
      Entre em Contato Agora!
      Website: https://central.cloudrun.com.br/index.php?rp=/store/cloud-ryzen-brasil
      Email: [email protected]
      Telefone: (47) 99902-5147

      Não comprometa a qualidade da hospedagem do seu OTServer. Escolha a CloudRun e ofereça aos seus jogadores a melhor experiência de jogo possível. Visite nosso site hoje mesmo para conhecer nossos planos e começar!
       
      https://central.cloudrun.com.br/index.php?rp=/store/cloud-ryzen-brasil
       
      CloudRun - Onde a Velocidade Encontra a Confiabilidade!
       

    • Por FeeTads
      SALVE rapaziada do TK, esses dias vim pensando em novos scripts pro meu OT, e em um deles eu precisava que determinada area não contasse frag pro player que matasse outros, PORÉM eu precisava que os players que morressem nessa area ainda assim tivessem as penalidades da sua morte, procurei por ai, achei alguns scripts que apenas tiravam o SKULL e não realmente o FRAG do player.

      **script atualizado 22/10/2023** - melhorado e otimizado, levei o script pra puxar as infos por .lua / creatureScripts

      vou disponibilizar o code aqui, e o que fazer pra determinada area não contar frag.

      SOURCE OTX 2 / TFS 0.x, Funciona em TFS 1.x mudando as tags e ajeitando as sintaxes.

      vá em creatureevent.cpp

      procure por:
      else if(type == "preparedeath") _type = CREATURE_EVENT_PREPAREDEATH;
      Adiciona abaixo:
      else if(type == "nocountfrag") _type = CREATURE_EVENT_NOCOUNTFRAG;

      procure por:
      case CREATURE_EVENT_PREPAREDEATH: return "onPrepareDeath";  
      Adicione abaixo: 
      case CREATURE_EVENT_NOCOUNTFRAG: return "noCountFragArea";

      procure por:
      case CREATURE_EVENT_PREPAREDEATH: return "cid, deathList";
      Adicione abaixo:
      case CREATURE_EVENT_NOCOUNTFRAG: return "cid, target";

      agora no mesmo arquivo, vá até o final do arquivo e adicione essa função:
      uint32_t CreatureEvent::executeNoCountFragArea(Creature* creature, Creature* target) { //noCountFragArea(cid, target) if(m_interface->reserveEnv()) { ScriptEnviroment* env = m_interface->getEnv(); if(m_scripted == EVENT_SCRIPT_BUFFER) { env->setRealPos(creature->getPosition()); std::ostringstream scriptstream; scriptstream << "local cid = " << env->addThing(creature) << std::endl; scriptstream << "local target = " << env->addThing(target) << std::endl; if(m_scriptData) scriptstream << *m_scriptData; bool result = true; if(m_interface->loadBuffer(scriptstream.str())) { lua_State* L = m_interface->getState(); result = m_interface->getGlobalBool(L, "_result", true); } m_interface->releaseEnv(); return result; } else { #ifdef __DEBUG_LUASCRIPTS__ std::ostringstream desc; desc << creature->getName(); env->setEvent(desc.str()); #endif env->setScriptId(m_scriptId, m_interface); env->setRealPos(creature->getPosition()); lua_State* L = m_interface->getState(); m_interface->pushFunction(m_scriptId); lua_pushnumber(L, env->addThing(creature)); lua_pushnumber(L, env->addThing(target)); bool result = m_interface->callFunction(2); m_interface->releaseEnv(); return result; } } else { std::clog << "[Error - CreatureEvent::noCountFragArea] Call stack overflow." << std::endl; return 0; } }

      agora vá em creatureevent.h

      procure por:
      CREATURE_EVENT_PREPAREDEATH
      adicione abaixo:
      CREATURE_EVENT_NOCOUNTFRAG

      procure por:
      uint32_t executePrepareDeath(Creature* creature, DeathList deathList);
      Adicione abaixo:
      uint32_t executeNoCountFragArea(Creature* creature, Creature* target);

      agora vá em player.cpp

      procure por:
      bool Player::onKilledCreature(Creature* target, DeathEntry& entry)
      abaixo de:
      War_t enemy; if(targetPlayer->getEnemy(this, enemy)) { if(entry.isLast()) IOGuild::getInstance()->updateWar(enemy); entry.setWar(enemy); }
      Adicione o seguinte código:
      if (targetPlayer){ CreatureEventList killEvents = getCreatureEvents(CREATURE_EVENT_NOCOUNTFRAG); for (const auto &event : killEvents) { if (!event->executeNoCountFragArea(this, target)) { return true; } } }

      //

      Feito isso, tudo completo na sua source, agora é necessário adicionar o creaturescript dentro do servidor

      vá até creaturescripts/scripts
      crie um arquivo chamado, "noCountFragInArea.lua"
      e dentro dele cole o código:
       
      --[[ script feito por feetads / TibiaKing ]]-- --[[ discord: feetads / FeeTads#0246 ]]-- -- Add positions here for which you do not want to count frags local areas = { [1] = {from = {x = 91, y = 122, z = 7}, to = {x = 98, y = 127, z = 7}}, -- from = area superior esquerda / to = area inferior direita (formando um quadrado) } local onlyKillerInArea = false -- only killer need to be in area? function noCountFragArea(cid, target) if not isCreature(cid) or not isCreature(target) then return true end local posKiller = getPlayerPosition(cid) local posTarget = getPlayerPosition(target) for i = 1, #areas do local area = areas[i] if isInArea(posKiller, area.from, area.to) then if onlyKillerInArea then return false elseif isInArea(posTarget, area.from, area.to) then return false end end end return true end
      agora em creaturescripts.xml
      <event type="nocountfrag" name="fragarea" event="script" value="noCountFragInArea.lua"/>
      agora em creaturescripts/scripts/login.lua
       procure por OU semelhante a esse:
      registerCreatureEvent(cid, "AdvanceSave")
      e abaixo adicione:
      registerCreatureEvent(cid, "fragarea")

      //


      Agora tudo certo, quando quiser adiciona uma area que não pega frag, vá até o script e apenas coloque a area, igual o demonstrado no script

      Exemplo:
      local areas = { [1] = {from = {x = 91, y = 122, z = 7}, to = {x = 98, y = 127, z = 7}}, [2] = {from = {x = 1000, y = 1000, z = 7}, to = {x = 1100, y = 1100, z = 7}}, }
      assim somente colocando a area no script e abrindo o server ou dando /reload, já funcionará a area como não pegar frag.
      Esse sistema pode ser bom pra areas de pvp ativo, onde você ainda quer que o player que morrer perca os atributos, como se fosse uma morte normal, porém não conta frag pra quem matar.
      Bom pra sistemas tipo castle 48h (guild war), onde há diversas mortes e risco de pegar red, atrapalhando a war.

      Façam bom proveito dos scripts, e deixem os créditos no script rsrs

      **Eu fiz as alterações e o simples código por isso vim disponibilizar, créditos meus**
    • Por Muvuka
      Abri canal a força creaturescript acho que funcione no creaturescript cria script creaturescript
       
      <channel id="9" name="HELP" logged="yes"/>
      <channel id="12" name="Report Bugs" logged="yes"/>
      <channel id="13" name="Loot" logged="yes"/>
      <channel id="14" name="Report Character Rules Tibia Rules" logged="yes"/>
      <channel id="15" name="Death Channel"/>
      <channel id="6548" name="DexSoft" level="1"/>
      <channel id="7" name="Reports" logged="yes"/>
       
      antes de 
              if(lastLogin > 0) then adicione isso:
                      doPlayerOpenChannel(cid, CHANNEL_HELP) doPlayerOpenChannel(cid, 1,  2, 3) = 1,2 ,3 Channels, entendeu? NÃO FUNCIONA EU QUERO UM MEIO DE ABRI SEM USA A SOURCE
       
      EU NÃO CONSEGUI ABRI EU NÃO TENHO SOURCE
       
       
    • Por bolachapancao
      Rapaziada seguinte preciso de um script que ao utilizar uma alavanca para até 4 jogadores.
      Os jogadores serão teleportados para hunt durante uma hora e depois de uma hora os jogadores serão teleportados de volta para o templo.
       
      Observação: caso o jogador morra ou saia da hunt o evento hunt é cancelado.

      Estou a base canary
      GitHub - opentibiabr/canary: Canary Server 13.x for OpenTibia community.
       
    • Por RAJADAO
      .Qual servidor ou website você utiliza como base? 
      Sabrehaven 8.0
      Qual o motivo deste tópico? 
      Ajuda com novos efeitos
       
      Olá amigos, gostaria de ajuda para introduzir os seguintes efeitos no meu servidor (usando o Sabrehaven 8.0 como base), adicionei algumas runas novas (avalanche, icicle, míssil sagrado, stoneshower & Thunderstorm) e alguns novos feitiços (exevo mas san, exori san, exori tera, exori frigo, exevo gran mas frigo, exevo gran mas tera, exevo tera hur, exevo frigo hur) mas nenhum dos efeitos dessas magias parece existir no servidor, alguém tem um link para um tutorial ou algo assim para que eu possa fazer isso funcionar?
      Desculpe pelo mau inglês, sou brasileiro.

      Obrigado!


      AVALANCHE RUNE id:3161 \/
      (COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)

      STONESHOWER RUNE id:3175 \/
      (COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_STONES)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH)

      THUNDERSTORM RUNE id:3202 \/
      (COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_E NERGYHIT)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)

      ICICLE RUNE id:3158 \/
      COMBAT_ICEDAMAGE
      CONST_ME_ICEAREA
      CONST_ANI_ICE

      SANTO MÍSSIL RUNA id:3182 \/
      (COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_HOLY)

      CONST_ME_PLANTATTACK (exevo gran mas tera)
      CONST_ME_ICETORNADO (exevo gran mas frigo)
      CONST_ME_SMALLPLANTS (exevo tera hur)
      CONST_ME_ICEAREA (exevo frigo hur)
      CONST_ME_ICEATTACK (exori frigo)
      CONST_ME_CARNIPHILA (exori tera)

      EXORI SAN \/
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
      CONST_ME_HOLYDAM IDADE

      EXEVO MAS SAN \/
      CONST_ME_HOLYAREA
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo