EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Trade window (https://www.eq2interface.com/forums/showthread.php?t=15044)

Draven_Caine 10-23-2010 10:08 PM

Trade window
 
Ok i am trying to get the trade window to fire from a button. show_window Inventory.Trade doesn't work, it brings up the trade window but the window isn't refreshed. I cant add or accept, ect. Do anything with the window.

So I must be grabbing at the wrong file or something. If anyone could point me to the correct place / file it would be great.

Thanks,
Draven

gm9 10-24-2010 03:38 AM

/start_trade or something like that

Draven_Caine 10-24-2010 11:07 AM

Quote:

Originally Posted by gm9 (Post 94183)
/start_trade or something like that

Ok the command is /start_trade, but it also asks for target_id. I need to to use your target. Where would I get the target_id?

Thanks for the help gm9.
Draven

TalTal 10-24-2010 11:46 AM

Are you trying to make a button to trade with your current target? That would be /start_trade %t or the last person to send you a tell would be /start_trade %rt. I think those would work anyway.

Silat

Draven_Caine 10-24-2010 11:57 AM

I am making a quick trade button for my wife, it would be a button coded into the UI so it would be /start_trade %t but that doesn't seem to work.

It says [DEVL] Usage: start_trade < target_id >

TalTal 10-24-2010 12:20 PM

Quote:

Originally Posted by Draven_Caine (Post 94194)
I am making a quick trade button for my wife, it would be a button coded into the UI so it would be /start_trade %t but that doesn't seem to work.

It says [DEVL] Usage: start_trade < target_id >

I confirmed they don't work. I also tried 0,1,2 as id's but it did not open a trade window with my target. Might need the actual player id and I have no idea how to get that.

Silat

gm9 10-24-2010 12:44 PM

You mean this characterID?

http://everquest2.com/character/467592204/

;)

(disclaimer: I do not know whether that will be a valid target_id, might also be a dynamic value)

Draven_Caine 10-24-2010 12:58 PM

Quote:

Originally Posted by gm9 (Post 94200)
You mean this characterID?

http://everquest2.com/character/467592204/

;)

(disclaimer: I do not know whether that will be a valid target_id, might also be a dynamic value)

I am at a lose with this one, if anyone has any ideas please let me know. I think its a dynamic value I cant reach or havent found yet. :confused:

Thanks,
Draven

EQAditu 10-24-2010 01:41 PM

I'm guessing that it's the same ID that apply_verb uses. There is no easy way to get this ID as it is dynamic for every zone instance. The only way to get this ID is to get the player in question to say something, which will create a player link in chat, which contains the player ID.

For example:
(1287622322)[Wed Oct 20 20:52:02 2010] \aPC 94918 Zanshen:Zanshen\/a says to the group, "Wall of Force!"
(1287627117)[Wed Oct 20 22:11:57 2010] \aPC 787438 Zanshen:Zanshen\/a says to the group, "?"
(1287628309)[Wed Oct 20 22:31:49 2010] \aPC 1141321 Zanshen:Zanshen\/a shouts, "InCoMiNg! **Mandoril** in 5 seconds!"

Draven_Caine 10-24-2010 01:46 PM

Thanks for the input,
I figured there was a reason I didnt see this in other mods. You guys are great help.

P.S. is there and way to change the chat colors just for one word? (Like "Charming A Lizard"?) Even bold or something so be noticed as the mobs name?

Thanks,
Draven

EQAditu 10-24-2010 07:30 PM

Chat? Like you send to other people? There's only one way that I know of to color text in chat windows, and the server will strip the formatting tags after people abused it back in T5 days.

Draven_Caine 10-24-2010 09:40 PM

Yeah this is what i read other places, blah.
I am a eq2 vet just had a year break from it due to life and I remeber the bright pink INC!!! macro's lol

Thanks,
Draven

EQAditu 10-25-2010 12:10 AM

Well, you can always wrap the text in a link. Typically the link color is different than the chat and echo colors... so I expect this would work for setting a specific string apart. It doesn't have to be a valid link that the game will be able to use, just one that looks usable until you click on it.

For example:
Charming \aNPC -1 whatever:A Lizard/\a
Charming A Lizard

Jamesc146 10-25-2010 05:31 AM

dunno if it's exactly what you are looking for but it SHOULD work to provide your quick trade button and can be done in game.

create in-game the following macro:

/Target_Nearest_PC (can be subbed for a name e.g. /Target Bob)

/Start_Trade %T

That should open a trade window with the nearest person to you or in the case of the e.g. should open a trade window with that toon.

Edit: Just tried it in game myself and /start_trade still requires a <target_id> so this does not work unfortunately... will tinker with it see if I can figure something out.

Drumstix42 10-25-2010 01:12 PM

Maybe just make a request somewhere for them to modify the command to default to the current target if no ID is provided.


All times are GMT -5. The time now is 04:56 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI