"Leave" Add-on Easily Take You Out Of Event Zones

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » General » "Leave" add-on easily take you out of event zones
"Leave" add-on easily take you out of event zones
Offline
Posts: 1109
By DaneBlood 2023-03-19 23:35:34
Link | Quote | Reply
 
so i got tired of using my glowing lamp rather than dropping to drop things when i needed to use so i started this little add-on called Leave
Leave will make you drop or use whatever items or Key items is needed to get out of the event zone

It works like Myhome:
leave - takes you out
leave all - takes all your characters out

It assume you have treasury loaded to handle the drop of items (I trust their code better than mine)(drop handling is now handled natively due to treasury's racing bug)
It will also pass on everything in the pool so you don't leave people waiting for the animation and warp time before they can get their loot.
Currently trying to get it to drop cells from salvage one so you don't have to do that cleanup manually

https://gist.github.com/DaneBlood/b1c1c48d4f07fc9cab54404871b0a596
[+]
 
Offline
Posts:
By 2023-03-20 09:13:11
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
[+]
Offline
Posts: 1109
By DaneBlood 2023-03-20 17:29:43
Link | Quote | Reply
 
KujahFoxfire said: »
Looks interesting!

One bit of feedback I would say is to avoid using the ingame treasury commands as a multiboxer always ends up messing up my settings.xml file. I wrote my own code a long time ago to drop ein lamp:
Code
function drop_lamp()
	local inventory = windower.ffxi.get_items(0)
	for i=1,inventory.max do
		if inventory[i].id == 5414 then
			windower.add_to_chat(007,'Lamp Found')
			windower.ffxi.drop_item(i,1)
			return
		end
	end
	windower.add_to_chat(007,'No Lamp')
end


You are spot on.
I for a moment forgot about the racing issue in treasury and it settings.xml.

I'll fix it in next release.
Really wish treasure saved settings in a file per character rather than a common one would fixed everything
VIP
Offline
Posts: 675
By Lili 2023-03-21 16:57:03
Link | Quote | Reply
 
I did a buncha things.
necroskull Necro Bump Detected! [30 days between previous and next post]
Offline
Posts: 1109
By DaneBlood 2023-04-20 15:19:47
Link | Quote | Reply
 
I have update Leave.
Handles dropping of lamp natively so it no longer requires treasury (TY to KujahFoxfire)

It has experimental drop of cells from original salvage, when leaving. However it only drops 1 of each not the entire stack.
 Bismarck.Drakelth
Offline
Server: Bismarck
Game: FFXI
user: drakelth
Posts: 698
By Bismarck.Drakelth 2023-04-20 20:03:01
Link | Quote | Reply
 
DaneBlood said: »
It will also pass on everything in the pool so you don't leave people waiting for the animation and warp time before they can get their loot.
https://github.com/SvenBent/Leave/blob/main/Leave.lua

This is the best part imo, so many people don't realize just zoning slows it down for the other people waiting.
Offline
Posts: 1109
By DaneBlood 2023-05-15 12:14:33
Link | Quote | Reply
 
I fixed a bug where i had a space in the item name.
its an a new github account (im still trying to figure out github)
necroskull Necro Bump Detected! [296 days between previous and next post]
 Asura.Anybody
Offline
Server: Asura
Game: FFXI
user: Sisqo
Posts: 25
By Asura.Anybody 2024-03-06 14:40:30
Link | Quote | Reply
 
DaneBlood said: »
I fixed a bug where i had a space in the item name.
its an a new github account (im still trying to figure out github)

I love this Addon.

I just want to add a missing delve zone in line 158


Code
elseif var_thiszone == 271 or var_thiszone == 264 then -- Incursion & Delve
		greeting()
		windower.send_command('Input /item "Ontic Extremity" <me>')
Log in to post.