|
Re: Вопросы по модостроению
2Vam: спасибо. но у меня нет никаких изменений. заменил файлы, а все как было, так и есть. в чем может быть дело?
Добавление от 08/23/06, в 21:56:14 сейчас опишу подробно. прописываю npc, он в игре не появляется. этот скрипт, как положено, в папке npc: instance NONE_7777_Gunther(C_Npc) { name = "Gunther"; || guild = GIL_NONE; || npctype = NPCTYPE_AMBIENT; || level = 17; ||voice = 8;|| id = 7777; || attribute[ATR_STRENGTH] = 100; || attribute[ATR_DEXTERITY] = 100; || attribute[ATR_MANA_MAX] = 0; || attribute[ATR_MANA] = 0; || attribute[ATR_HITPOINTS_MAX] = 200; || attribute[ATR_HITPOINTS] = 200; || Mdl_SetVisual(self,"humans.mds"); || Mdl_ApplyOverlayMds(self,"humans_militia"); || Mdl_SetVisualBody(self,"hum_body_naked0", 0, 1, "hum_head_fighter", 51, 2, GRD_ARMOR_M); || B_Scale(self); ||Mdl_SetModelFatness(self,0); || Npc_SetTalentSkill(self,NPC_TALENT_1H,2); || EquipItem(self,ItMw_1H_Mace_War_03); || CreateInvItems(self,ITFO_Potion_Health_01,10); || senses = SENSE_SEE | SENSE_SMELL; || senses_range = 2000; || fight_tactic = FAI_HUMAN_STRONG; || daily_routine = Rtn_Start_7777; }; в файле TA.D пишу: func void TA_GuntherWait (var int start_h, var int start_m, var int stop_h, var int stop_m, var string waypoint) {TA_Min (self, start_h, start_m, stop_h, stop_m,ZS_GuntherWait, waypoint);}; еще 2 скрипта в папке ZS: 1) func void Rtn_Start_7777() { TA_GuntherWait(0,00,13,00,"WP_01"); TA_GuntherWait(13,00,0,00,"WP_02"); };
2)func void ZS_GuntherWait () {PrintDebugNpc (PD_TA_FRAME, "ZS_GuntherWait"); || Npc_PercEnable(self, PERC_ASSESSPLAYER, B_AssessSC); || Npc_PercEnable(self, PERC_ASSESSTALK, B_AssessTalk); || AI_StandUp (self); || AI_SetWalkmode (self, NPC_WALK); || AI_GotoWP (self, self.wp); || AI_AlignToWP (self); }; func void ZS_GuntherWait_Loop () { PrintDebugNpc (PD_TA_LOOP, "ZS_GuntherWait_Loop"); || AI_GotoWP (self, self.wp); || AI_Wait (self, 100); || AI_GotoWP (self, Npc_GetNearestWP (Self)); || AI_PlayAni(self, "T_PEE"); || AI_Wait (self, 100); }; func void ZS_GuntherWait_End () { PrintDebugNpc (PD_TA_FRAME,"ZS_GuntherWait_End"); }; и пишу в Startup.d: Wld_InsertNpc (None_7777_Gunther,"WP_01");
???
|