• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

need some help with armory

Tok124

Respected Member
Hello,

I'm trying to make my own WoW Armory on my new wowsite that i'm working on.
Right now i'm stuck. I don't know how to fix the rest...
How do i make it so correct character model will be displayed and also how do i make it so the model has armor equiped?
You know if you go on retail and remove all gear and logout then armory will show a naked character. But if you equip items in every slot you will see that the character have items equiped on the model in the armory. How can i make that?

I guess that's all i need to know for now...

This is what my armory looks like atm
http://prntscr.com/68pnsf
 
Last edited:

Vitrex

Moderator
well it looks like u need strong Javascript knowledge to make your armory, not only html/css/php u need put some sql querys from database to gather info, then give the model info to variables and if modelid from db == modelid from variable then display that on character or just maybe icon or smth.
since u stuck at that stage (it's only beginning the closer u to finish armory the harder and more complaining it's become.) i would suggest do that.
U open armory and just like now the image in background displays your character race and only items(them info stats and etc) will be displayed without 3D models.
 

Tok124

Respected Member
well it looks like u need strong Javascript knowledge to make your armory, not only html/css/php u need put some sql querys from database to gather info, then give the model info to variables and if modelid from db == modelid from variable then display that on character or just maybe icon or smth.
since u stuck at that stage (it's only beginning the closer u to finish armory the harder and more complaining it's become.) i would suggest do that.
U open armory and just like now the image in background displays your character race and only items(them info stats and etc) will be displayed without 3D models.
Yeah, It seems to be very hard to fix that function. I'm a beginner in php and i don't know anything at all about javascript. But i have learned php fast and i know html and css good. So this seems to be way too advanced for me. I noticed that most people add a table in the center instead of a model and in that table it displays Total Stats for character. Maybe that would be an option for me but i really like 3D Models. So it would be so nice if i could find any easy way to fix it. I've been looking around but everything is like rocket science...

- - - Updated - - -

I'm pretty sure WoWhead has a library for such features. Though, not sure how it acts.
The only thing i've found from WoWHead is their tooltip. But it's only for Blizzlike Items :/
 

Vitrex

Moderator
About tooltip i worked with custom tooltip library once and i can tell you don't do that unless u really know what u are doing with AJAX [php/js]
Anywayz how i told to make any 3D action in web page php not enough u need implement in your code Javascript STRONG Javascript.
i suggest u make an alternative with simple querys and output in "cool" css/html styles.
But if u wanna try something with that i can suggest u learn javascript in all ways, really useful language for web developers not only for advanced level web scripts but u can update your style and make look it more professional.
 

Tok124

Respected Member
About tooltip i worked with custom tooltip library once and i can tell you don't do that unless u really know what u are doing with AJAX [php/js]
Anywayz how i told to make any 3D action in web page php not enough u need implement in your code Javascript STRONG Javascript.
i suggest u make an alternative with simple querys and output in "cool" css/html styles.
But if u wanna try something with that i can suggest u learn javascript in all ways, really useful language for web developers not only for advanced level web scripts but u can update your style and make look it more professional.
Well. I added tooltip with CSS and html. It's not the best way but well... I just added a div for paperdoll icon background thing and then i added a hyperlink with image inside the paper doll icon and then i added another div for tooltip and used css like this

Code:
.tooltip {
display:none;
}

.headicon:hover > .tooltip {
display:block;
position:absolute;
blablabla....
}

So when i hover over the item icon the tooltip appear. It works to do it that way. But it's not correct. And later i just make it select stats from database and use php switch to convert the value to text for inventorytype and other columns :)

But yeah. I know that i should use JS for it. But since i don't know the JS Language i make it like this. I'm still a beginner in php so when i know more about php then i will try to learn more about JS but right now i just copy/paste JS. I dont wanna learn both JS and php at same time. Then i know that i will just stop learn both languages :p

- - - Updated - - -

So well. When i hover over the icon it looks like this
ty28Ryi.png
 
Top