PDA

View Full Version : Is it possible to code?


moydock
01-13-2008, 04:07 PM
Would it be possible to code in some sort of visual change in a character when an event occurs? Maybe have the server dye all his armor green for a duration? Or just make him completely green? If so, any pointers on how to make it happen would be much appreciated. I've got basic c++ knowledge and a programmer that doesn't know EQ :). Thanks.

AndMetal
01-14-2008, 10:04 PM
After looking through some of the source code (utils/perlxs/npc.h & utilz/perlxs/mob.h), there are a few commands that might accomplish what you're looking for using a quest script, but I'm not really sure because the syntax of the commands aren't very clear:

SetAppearance(EmuAppearance app, bool iIgnoreSelf = true);
EmuAppearance GetAppearance();

If that doesn't provide the functionality, it sounds doable, but code would have to be created to manipulate the Spawn_Struct for the NPC, I believe.

moydock
01-18-2008, 11:22 AM
I'm sorry i was a little unclear, i'm trying to apply this to PC's, not NPC's.

AndMetal
01-21-2008, 05:15 PM
I found this looking through some more source code in utils\perlxs\client.h:
SetTint(sint16 slot_id, uint32 color);

It seems to be invoked by Client::SetTint(), but it doesn't look like you can execute it from a regular quest script.

AndMetal
01-21-2008, 05:53 PM
Of course it helps to check your syntax...

$client->SetTint() seems to process, but it'll take some messing around with since the color is a 32 bit integer. It might be Color_Struct, which is int8 blue, int8 green, int8 red, & uint8 use_tint (see item_tint under profile (http://www.eqemulator.net/wiki/wikka.php?wakka=EQEmuDBSchemacharacterprofile)).

I haven't seen any results, but it looks like this is what will need to be used.

moydock
01-24-2008, 10:11 PM
Would it be possible to invoke this in the eqemu source? I need it to work within some c++ code.

ChaosSlayer
01-25-2008, 06:09 AM
while we on the subject of item tint...
I seem to have a problem with item colors amd "dye"
It seems that any touching of a "dye" results in some tint patterns to become permanently stored there, and that tint number to be added automaticly to any a tint of an item I am currently wearing, resulting in most weird olor combinations... reseting the "dye" don't seem to have an effect.
This don't happen ll the time, but only with specific item colors specialy with "brownish" colored items

moydock
01-26-2008, 09:42 AM
omg get your own thread thief... okay i kid. Any magical dev have a way to do this though? I'd cry myself to sleep tonight in happiness if I could figure this out.