Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2008, 04:07 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default Is it possible to code?

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.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #2  
Old 01-14-2008, 10:04 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

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:

Code:
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.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #3  
Old 01-18-2008, 11:22 AM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

I'm sorry i was a little unclear, i'm trying to apply this to PC's, not NPC's.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #4  
Old 01-21-2008, 05:15 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

I found this looking through some more source code in utils\perlxs\client.h:
Code:
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.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #5  
Old 01-21-2008, 05:53 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

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).

I haven't seen any results, but it looks like this is what will need to be used.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #6  
Old 01-24-2008, 10:11 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

Would it be possible to invoke this in the eqemu source? I need it to work within some c++ code.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #7  
Old 01-25-2008, 06:09 AM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

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
Reply With Quote
  #8  
Old 01-26-2008, 09:42 AM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

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.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:56 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3