Need a boot in the right direction
Posted: Fri Mar 22, 2013 8:30 am
Hi all,
I wonder if someone can give me a nudge in the right direction. There are two things that I am looking through here and cant quite grasp.
The first is mob skin changes. I can see looking through the PW script what is being called to change the mobs skin, I can also see the table in the sql database that it is trying to work with.
What I cant currently follow is how it knows from that table what skin to use. For example in mob_change_skin skinid 30 has skinname Diablos, a blank skin model and a animation of 0.
My question is, when changeSkin(30) or whatever its called, is executed, how does it know from that database entry what skin to use? Is it based on the name Diablos? Meaning that in another table there is an entry under Diablos with a skin to use? I have tried to track back through the code and cant see how this would be linked up.
My other question was regarding mob_spell_lists. How would I go about creating a new one? I have tried copying in lines from other existing lists and giving it a unique id, but when i set that spell_list against a mob, the mob just never casts (where as if the same spell is in an existing list and I set that to the mob it will cast it).
Hope that made sense! Also sorry if this isnt quite the right place
I wonder if someone can give me a nudge in the right direction. There are two things that I am looking through here and cant quite grasp.
The first is mob skin changes. I can see looking through the PW script what is being called to change the mobs skin, I can also see the table in the sql database that it is trying to work with.
What I cant currently follow is how it knows from that table what skin to use. For example in mob_change_skin skinid 30 has skinname Diablos, a blank skin model and a animation of 0.
My question is, when changeSkin(30) or whatever its called, is executed, how does it know from that database entry what skin to use? Is it based on the name Diablos? Meaning that in another table there is an entry under Diablos with a skin to use? I have tried to track back through the code and cant see how this would be linked up.
My other question was regarding mob_spell_lists. How would I go about creating a new one? I have tried copying in lines from other existing lists and giving it a unique id, but when i set that spell_list against a mob, the mob just never casts (where as if the same spell is in an existing list and I set that to the mob it will cast it).
Hope that made sense! Also sorry if this isnt quite the right place