Błędy przy sprawdzaniu skryptu . 2262 3

O temacie

Autor OhYeah

Zaczęty 9.04.2010 roku

Wyświetleń 2262

Odpowiedzi 3

OhYeah

OhYeah

Użytkownicy
posty1
  • Użytkownicy
[codebox]//#############################################
//##
//##   Neue Welt
//##
//############################################

instance SLD_9999_Mad (Npc_Default)
{
   // ------ NSC ------
   name       = "Mad";
   guild       = GIL_SLD;
   id          = 9999;
   voice       = 8;
   flags       = 0;                     //NPC_FLAG_IMMORTAL oder 0
   npctype      = NPCTYPE_MAIN;
   
   // ------ Attribute ------
   B_SetAttributesToChapter (self, 4);                                                   //setzt Attribute und LEVEL entsprechend dem angegebenen Kapitel (1-6)
   
   // ------ Kampf-Taktik ------
   fight_tactic      = FAI_HUMAN_STRONG;   // MASTER / STRONG / COWARD
   
   // ------ Equippte Waffen ------                                                   //Munition wird automatisch generiert, darf aber angegeben werden
   EquipItem         (self, ItMw_1h_Sld_Axe);
   EquipItem         (self, ItRw_Sld_Bow);


   // ------ Inventory ------
   B_CreateAmbientInv    (self);

      
   // ------ visuals ------                                                         //Muss NACH Attributen kommen, weil in B_SetNpcVisual die Breite abh. v. STR skaliert wird
   B_SetNpcVisual       (self, MALE, "Hum_Head_FatBald", Face_N_Wolf, BodyTex_N, ITAR_SLD_M);      
   Mdl_SetModelFatness   (self, 0);
   Mdl_ApplyOverlayMds   (self, "Humans_Relaxed.mds"); // Tired / Militia / Mage / Arrogance / Relaxed
   
   // ------ NSC-relevante Talente vergeben ------
   B_GiveNpcTalents (self);
   
   // ------ Kampf-Talente ------                                                      //Der enthaltene B_AddFightSkill setzt Talent-Ani abhängig von TrefferChance% - alle Kampftalente werden gleichhoch gesetzt
   B_SetFightSkills (self, 50); //Grenzen für Talent-Level liegen bei 30 und 60
   
   // ------ TA anmelden ------
   daily_routine       = Rtn_Start_9999;
};

FUNC VOID Rtn_Start_9999 ()
{
   TA_Sit_Bench            (08,00,22,00,"NW_BIGFARM_PATH_03");
    TA_Stand_Eating       (22,00,08,00,"NW_BIGFARM_KITCHEN_03");   
};

FUNC VOID Rtn_BengarsFarm_9999 ()
{
   TA_Stand_Guarding         (08,00,22,00,"NW_FARM3_PATH_01");
    TA_Stand_Guarding          (22,00,08,00,"NW_FARM3_PATH_01");   
};

FUNC VOID Rtn_BengarDead_9999 ()
{   
   TA_Stand_Guarding      (08,00,22,00,"NW_FARM3_BENGAR");
    TA_Stand_Guarding      (22,00,08,00,"NW_FARM3_BENGAR");
};

FUNC VOID Rtn_WaitForShip_9999 ()
{   
   TA_Sit_Bench      (08,00,19,00,"NW_WAITFOR_SHIP_01");
   TA_Sit_Bench      (19,00,08,00,"NW_WAITFOR_SHIP_01");   
};

FUNC VOID Rtn_Ship_9999 () //Joly:analog schiffswache 227
{
   TA_Stand_Guarding   (06,00,07,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (07,00,07,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (07,10,07,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (07,20,07,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (07,30,07,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (07,40,07,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (07,50,08,00,"SHIP_DECK_29");
   
   TA_Stand_Guarding   (08,00,08,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (08,10,08,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (08,20,08,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (08,30,08,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (08,40,08,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (08,50,09,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (09,00,09,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (09,10,09,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (09,20,09,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (09,30,09,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (09,40,09,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (09,50,10,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (10,00,10,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (10,10,10,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (10,20,10,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (10,30,10,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (10,40,10,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (10,50,11,00,"SHIP_DECK_29");    
         
   TA_Stand_Guarding   (11,00,11,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (11,10,11,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (11,20,11,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (11,30,11,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (11,40,11,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (11,50,12,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (12,00,12,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (12,10,12,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (12,20,12,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (12,30,12,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (12,40,12,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (12,50,13,00,"SHIP_DECK_29");
         
   TA_Stand_Guarding   (13,00,13,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (13,10,13,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (13,20,13,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (13,30,13,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (13,40,13,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (13,50,14,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (14,00,14,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (14,10,14,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (14,20,14,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (14,30,14,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (14,40,14,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (14,50,15,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (15,00,15,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (15,10,15,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (15,20,15,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (15,30,15,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (15,40,15,50,"SHIP_DECK_20");
    TA_Stand_Guarding   (15,50,16,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (16,00,16,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (16,10,16,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (16,20,16,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (16,30,16,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (16,40,16,50,"SHIP_DECK_29");
   TA_Stand_Guarding   (16,50,17,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (17,00,17,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (17,10,17,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (17,20,17,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (17,30,17,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (17,40,17,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (17,50,18,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (18,00,18,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (18,10,18,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (18,20,18,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (18,30,18,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (18,40,18,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (18,50,19,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (19,00,19,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (19,10,19,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (19,20,19,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (19,30,19,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (19,40,19,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (19,50,20,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (20,00,20,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (20,10,20,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (20,20,20,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (20,30,20,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (20,40,20,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (20,50,21,00,"SHIP_DECK_29");
   
   TA_Stand_Guarding   (21,00,21,10,"SHIP_DECK_25");
   TA_Stand_Guarding   (21,10,21,20,"SHIP_DECK_29");
   TA_Stand_Guarding   (21,20,21,30,"SHIP_DECK_25");
   TA_Stand_Guarding   (21,30,21,40,"SHIP_DECK_29");
   TA_Stand_Guarding   (21,40,21,50,"SHIP_DECK_20");
   TA_Stand_Guarding   (21,50,22,00,"SHIP_DECK_29");

   TA_Stand_Guarding   (22,00,23,00,"SHIP_DECK_25");
   TA_Stand_Guarding   (23,00,00,00,"SHIP_DECK_29");
   TA_Stand_Guarding   (00,00,01,00,"SHIP_DECK_25");
   TA_Stand_Guarding   (01,00,02,00,"SHIP_DECK_20");
   TA_Stand_Guarding   (02,00,03,00,"SHIP_DECK_29");
   TA_Stand_Guarding   (03,00,04,00,"SHIP_DECK_20");
   TA_Stand_Guarding   (04,00,05,00,"SHIP_DECK_29");
   TA_Stand_Guarding   (05,00,06,00,"SHIP_DECK_25");
};
[/codebox]

Mógłby mi ktoś wyjaśnić co jest źle? cały czas ZSpy czepia się o rutyny.
 

aDragon

aDragon

Użytkownicy
posty55
Propsy1
ProfesjaGrafik 3D
  • Użytkownicy
Moim zdaniem, błąd polega w tym, że              napisałeś tam:

// ------ TA anmelden ------   
daily_routine       = Rtn_Start_9999;
};

a potem:

FUNC VOID Rtn_Start_9999 ()
FUNC VOID Rtn_BengarsFarm_9999 ()
FUNC VOID Rtn_BengarDead_9999 ()...           (nie chce mi sie dalej wymieniać.


Ale chodzi mi o to, że raz napisałeś - daily_routine       = Rtn_Start_9999;  i to odpowiada FUNC VOID Rtn_Start_9999 ()

A reszta czemu odpowiada?
powinieneś też chyba podopisywać:
daily_routine       = Rtn_BengarFarm_9999;
daily_routine       = Rtn_BengarDead_9999;                itd...

Nie daje gwarancje, że będzie działać ale może...
 
Wpadłeś na pomysł? Uważaj żebyś się nie potknął!



-Ile koń ma nóg?

-Osiem! Dwie lewe, dwie prawe, dwie przednie i dwie tylne!

Mr Prezesinho

Mr Prezesinho

Użytkownicy
posty162
Propsy1
  • Użytkownicy
Co ty pieprzysz? TO nie ma nic do rzeczy patrz przypadkowy skrypt (chyba bandyty):
daily_routine = RTN_Start_1013;
};

FUNC VOID RTN_Start_1013()
{
TA_Stand_ArmsCrossed (00,00,12,00,"NW_XARDAS_STAIRS_01");  
TA_Stand_ArmsCrossed (12,00,00,00,"NW_XARDAS_STAIRS_01");
};

FUNC VOID RTN_Ambush_1013()
{
TA_Guide_Player (00,00,12,00,"NW_XARDAS_BANDITS_RIGHT");  
TA_Guide_Player (12,00,00,00,"NW_XARDAS_BANDITS_RIGHT"); //_05
};

FUNC VOID RTN_AWAY_1013()
{
TA_Sit_Campfire (00,00,12,00,"NW_XARDAS_GOBBO_02");  
TA_Sit_Campfire (12,00,00,00,"NW_XARDAS_GOBBO_02");
};

func VOID RTN_AWAY2_1013()
{
TA_FleeToWP (00,00,12,00,"NW_XARDAS_MONSTER_INSERT_01");
TA_FleeToWP (12,00,00,00,"NW_XARDAS_MONSTER_INSERT_01");
};
A autora poproszę o dokładną treść błędu.
A poza tym twoim sposobem znowu wywali mu  błąd reindentifier (czy coś)
 
89% graczy uważa, że najważniejsza jest grafika, jeśli uważasz, że te sygnatury nie mają sensu wklej to do podpisu.


fraypp

fraypp

Użytkownicy
posty7
Propsy2
  • Użytkownicy
Sprawdziłem u siebie, wystarczyło nieco zmienić rutynę.

 Ten kod :

       // ------ TA anmelden ------
        daily_routine           = Rtn_Start_9999;
};

FUNC VOID Rtn_Start_9999 ()
{
        TA_Sit_Bench                            (08,00,22,00,"NW_BIGFARM_PATH_03");
    TA_Stand_Eating             (22,00,08,00,"NW_BIGFARM_KITCHEN_03");  
};

Powinien wyglądać następująco

       // ------ TA anmelden ------
        daily_routine           = Rtn_PreStart_9999;
};

FUNC VOID Rtn_PreStart_9999 ()
{
        TA_Sit_Bench                            (08,00,22,00,"NW_BIGFARM_PATH_03");
    TA_Stand_Eating             (22,00,08,00,"NW_BIGFARM_KITCHEN_03");  
};
 


0 użytkowników i 1 Gość przegląda ten wątek.
0 użytkowników
Do góry