NpcTemplate case switch problem [SOLVED]

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

NpcTemplate case switch problem [SOLVED]

Postby Loki » Tue Nov 08, 2016 12:26 pm

Code: Select all
switch (Realm) { case eRealm.Albion: Model = 20; template.AddNPCEquipment(eInventorySlot.TorsoArmor, 662); template.AddNPCEquipment(eInventorySlot.ArmsArmor, 664); template.AddNPCEquipment(eInventorySlot.LegsArmor, 663); template.AddNPCEquipment(eInventorySlot.HandsArmor, 665); template.AddNPCEquipment(eInventorySlot.FeetArmor, 666); template.AddNPCEquipment(eInventorySlot.Cloak, 676); break; case eRealm.Midgard: Model = 153; template.AddNPCEquipment(eInventorySlot.TorsoArmor, 668); template.AddNPCEquipment(eInventorySlot.ArmsArmor, 2944); template.AddNPCEquipment(eInventorySlot.LegsArmor, 2943); template.AddNPCEquipment(eInventorySlot.HandsArmor, 2945); template.AddNPCEquipment(eInventorySlot.FeetArmor, 2946); template.AddNPCEquipment(eInventorySlot.Cloak, 677); break; case eRealm.Hibernia: Model = 302; template.AddNPCEquipment(eInventorySlot.TorsoArmor, 667); template.AddNPCEquipment(eInventorySlot.ArmsArmor, 430); template.AddNPCEquipment(eInventorySlot.LegsArmor, 409); template.AddNPCEquipment(eInventorySlot.HandsArmor, 431); template.AddNPCEquipment(eInventorySlot.FeetArmor, 432); template.AddNPCEquipment(eInventorySlot.Cloak, 678); break; }
Given the above code, is there any reason any mob I create and set to realm 1 in a pk will not dress accordingly?

thanks
Last edited by Loki on Sun Dec 11, 2016 7:43 pm, edited 1 time in total.
“ If debugging is the process of removing software bugs, then programming must be the process of putting them in. ”

Join https://discord.gg/r3T2U7S Official DOL Discord Chat
User avatar
Loki
Developer
 
Posts: 468
Joined: Fri Jun 23, 2006 2:14 am
Location: uk

Re: NpcTemplate case switch problem

Postby Loki » Tue Nov 08, 2016 12:42 pm

Even when I assign a template in the db and just leave the model in the script the npc fails to be dressed only in Albion PK?
“ If debugging is the process of removing software bugs, then programming must be the process of putting them in. ”

Join https://discord.gg/r3T2U7S Official DOL Discord Chat
User avatar
Loki
Developer
 
Posts: 468
Joined: Fri Jun 23, 2006 2:14 am
Location: uk

Re: NpcTemplate case switch problem

Postby HunabKu » Tue Nov 08, 2016 3:13 pm

Hi jaystar.
RvR guards are clothed by GameServer/keeps/managers/clothingmanager.cs
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: NpcTemplate case switch problem

Postby Loki » Tue Nov 08, 2016 7:22 pm

Thank you but these are just standard mobs I'm dressing.

Also any idea why I keep getting bad username/password in serverupdate? I ve changed it twice through server management but no avail.


Thanks
“ If debugging is the process of removing software bugs, then programming must be the process of putting them in. ”

Join https://discord.gg/r3T2U7S Official DOL Discord Chat
User avatar
Loki
Developer
 
Posts: 468
Joined: Fri Jun 23, 2006 2:14 am
Location: uk

Re: NpcTemplate case switch problem

Postby HunabKu » Wed Nov 09, 2016 7:48 am

Hi jaystar,
Thank you but these are just standard mobs I'm dressing.
You can verify it in game by /mob info and /mob equiptemplate, in database in npcequipment table.

Also any idea why I keep getting bad username/password in serverupdate? I ve changed it twice through server management but no avail.
I can see in your entry : The last update we received from this server was Never.
Have you checked it?
You need to check your firewall(s) and router(s) have 10300 TCP and 10400 UDP ports opened too.

Thanks
No problem!
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: NpcTemplate case switch problem

Postby Loki » Wed Nov 09, 2016 10:52 am

It is a firewall problem, Ill resolve it later today..

Many Thanks
“ If debugging is the process of removing software bugs, then programming must be the process of putting them in. ”

Join https://discord.gg/r3T2U7S Official DOL Discord Chat
User avatar
Loki
Developer
 
Posts: 468
Joined: Fri Jun 23, 2006 2:14 am
Location: uk

Re: NpcTemplate case switch problem

Postby HunabKu » Thu Nov 10, 2016 5:31 am

No Problem jaystar.
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest