Ok bardzo dziękuje za pomoc poradziłem sobie
Sorry jeszcze mam mały problem z waypointami chciałbym umieścic nowego npc u sagitty i żeby on robił na odwrut rutyne sagitty ale jak włanczam mod startera to wyskakuje mi błąd daily_routine = Rtn_Start_9999;
FUNC VOID Rtn_Start_9999 ()
instance KDW_9999_TEST (Npc_Default)
{
//-------- primary data --------
name = "TEST";
npctype = npctype_main;
guild = GIL_KDW;
level = 80;
voice = 9;
id = 9999;
flags = NPC_FLAG_IMMORTAL;
// ------ aivars ------
aivar[AIV_MagicUser] = MAGIC_ALWAYS;
//-------- abilities --------
attribute[ATR_STRENGTH] = 100;
attribute[ATR_DEXTERITY] = 100;
attribute[ATR_MANA_MAX] = 1000;
attribute[ATR_MANA] = 1000;
attribute[ATR_HITPOINTS_MAX]= 1200;
attribute[ATR_HITPOINTS] = 1200;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self, "Humans_Mage.mds");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0", 0, 1,"HUM_HEAD_Bald", 10, 1, ITAR_Xardas);
Mdl_SetModelFatness(self,0);
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG;
//-------- Talente --------
Npc_SetTalentSkill (self, NPC_TALENT_2H,2);
Npc_SetTalentSkill (self, NPC_TALENT_MAGE, 6);
//-------- inventory --------
CreateInvItem(self,ItPo_Health_Addon_04);
CreateInvItem(self,ItPo_Mana_Addon_04);
B_CreateAmbientInv (self);
// ------ TA anmelden ------
daily_routine = Rtn_Start_9999;
};
FUNC VOID Rtn_Start_9999 ()
{
TA_Potion_Alchemy (08,00,23,00,"NW_SAGITTA_CAVE_IN_02");
TA_Sit_Throne (23,00,08,00,"NW_SAGITTA_CAVE_IN_03");
};
A tu Startup
//------------------------------------------------------------
// Addon World ENTRANCE
//------------------------------------------------------------
func void STARTUP_ADDON_PART_ENTRANCE_01 ()
{
Wld_InsertNpc (KDW_9999_TEST ,"NW_SAGITTA_CAVE_IN_02");
Wld_InsertNpc (KDW_9999_TEST ,"NW_SAGITTA_CAVE_IN_03");
Wld_InsertNpc (KDW_14000_Addon_Saturas_ADW ,"ADW_ENTRANCE");
Wld_InsertNpc (KDW_14010_Addon_Cronos_ADW ,"ADW_ENTRANCE");
Wld_InsertNpc (KDW_14020_Addon_Nefarius_ADW ,"ADW_ENTRANCE");
Wld_InsertNpc (KDW_14030_Addon_Myxir_ADW ,"ADW_ENTRANCE");
Wld_InsertNpc (KDW_14040_Addon_Riordian_ADW ,"ADW_ENTRANCE");
Wld_InsertNpc (KDW_14050_Addon_Merdarion_ADW ,"ADW_ENTRANCE");