Set mob gender script

Share files with other Dawn of Light users

Moderator: Support Team

Set mob gender script

Postby Wolfe » Fri Nov 17, 2017 8:44 am

Hi all,

attached file contains updates for table mob and npctemplate to update the mob's gender depending on the model.
I tried my best to find out male and female models from the DOL model list.

Best regards
Wolfe
Attachments
mob_SetGender.zip
(1.9 KiB) Downloaded 121 times
Wolfe
DOL Visitor
 
Posts: 11
Joined: Fri Nov 23, 2012 4:21 pm

Re: Set mob gender script

Postby ontheDOL » Fri Nov 17, 2017 3:10 pm

thanks wolfe
It would be nice to figure out a system for npctemplates that have both male and female models in their selection
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: Set mob gender script

Postby Graveen » Sat Nov 18, 2017 2:15 am

TY ! If you decompress the client, there are, in the CSV describing client models, a gender flag iirc. This is the one i used for the vamp/biped models http://www.dolserver.net/models/list.php?type=Mob
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Set mob gender script

Postby PlanarChaosRvrtwo » Mon Nov 05, 2018 7:02 pm

thanks wolfe
It would be nice to figure out a system for npctemplates that have both male and female models in their selection
Wouldnt it be a way to just have the npctemplate x2 for such mobs becouse on mob spawn / server reboot it pick one randomly on things where db allow x2 the same key
DOL dint only gaved me the data to start my server,
it also gaved me 16 amazing years with nice peeps,
and now its on me to return the favor.
User avatar
PlanarChaosRvrtwo
Database Team
 
Posts: 517
Joined: Thu Jul 07, 2016 6:21 am

Re: Set mob gender script

Postby ontheDOL » Tue Nov 06, 2018 7:01 pm

aye that would be a way to do it, but would be quite alot of work (duplicating the template and separating male/female models) unless you write a batch script for it. I ended up making a 'npcgender' manager script that gets called when mob spawns to set its gender based on its current model. Seems to work good and now you get the correct 'examine' message
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad


Return to “%s” User Files

Who is online

Users browsing this forum: No registered users and 1 guest