Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 22.06.2006, 22:03   #51
Cranberry
Архивный участник
 
Join Date: Jun 2006
Posts: 7
Default

Quest for Strider is working, but Quest for Hatchling is break, cause Sage Cronos shows "Conditions are not right" page.

Is anyone know what is wrong?
Cranberry is offline  
Old 22.06.2006, 22:07   #52
Cranberry
Архивный участник
 
Join Date: Jun 2006
Posts: 7
Default

I use this AI


Code:
class sage_cronos : citizen { 

  handler: 

  EventHandler TALK_SELECTED(_choiceN, _code, _from_choice, talker) { 
    if (_from_choice == 0) { 
      if ((HaveMemo(talker, @trial_of_scholar) == 1)  &&  (OwnItemCount(talker, @miriens_sigil3) == 1)  &&  (OwnItemCount(talker, @cronos_sigil) == 0)  &&  (OwnItemCount(talker, @symbol_of_cronos) == 0)) { 
        _choiceN = (_choiceN+1); 
        _code = 0; 
        AddChoice(0, "Trial of the Scholar"); 
      } 
      if ((HaveMemo(talker, @trial_of_scholar) == 1)  &&  (OwnItemCount(talker, @miriens_sigil3) >= 1)  &&  (OwnItemCount(talker, @cronos_sigil) >= 1)) { 
        _choiceN = (_choiceN+1); 
        _code = 1; 
        AddChoice(1, "Trial of the Scholar"); 
      } 
      if ((HaveMemo(talker, @trial_of_scholar) == 1)  &&  (OwnItemCount(talker, @miriens_sigil3) == 1)  &&  (OwnItemCount(talker, @symbol_of_cronos) == 1)  &&  (OwnItemCount(talker, @cronos_sigil) == 0)) { 
        _choiceN = (_choiceN+1); 
        _code = 2; 
        AddChoice(2, "Trial of the Scholar"); 
      } 
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 1)) { 
        _choiceN = (_choiceN+1); 
        _code = 3; 
        AddChoice(3, "Little Wing"); 
      } 
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 2)  ||  (GetMemoState(talker, @little_wings) == 11)  &&  (OwnItemCount(talker, @q_fairy_stone) == 0)  &&  (OwnItemCount(talker, @q_fairy_stone_delux) == 0)) { 
        _choiceN = (_choiceN+1); 
        _code = 4; 
        AddChoice(4, "Little Wing"); 
      } 
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 2)  &&  (OwnItemCount(talker, @q_fairy_stone) == 1)  ||  (OwnItemCount(talker, @q_fairy_stone_delux) == 1)) { 
        _choiceN = (_choiceN+1); 
        _code = 5; 
        AddChoice(5, "Little Wing"); 
      } 
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 11)  &&  (OwnItemCount(talker, @q_fairy_stone) == 1)  ||  (OwnItemCount(talker, @q_fairy_stone_delux) == 1)) { 
        _choiceN = (_choiceN+1); 
        _code = 6; 
        AddChoice(6, "Little Wing"); 
      } 
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 3)) { 
        _choiceN = (_choiceN+1); 
        _code = 7; 
        AddChoice(7, "Little Wing"); 
      } 
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 10)) { 
        _choiceN = (_choiceN+1); 
        _code = 8; 
        AddChoice(8, "Little Wing"); 
      } 
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 4)  &&  (OwnItemCount(talker, @q_fairy_stone) == 1)  ||  (OwnItemCount(talker, @q_fairy_stone_delux) == 1)) { 
        _choiceN = (_choiceN+1); 
        _code = 9; 
        AddChoice(9, "Little Wing"); 
      } 
      if ((HaveMemo(talker, 421) == 0)  &&  (HaveMemo(talker, @little_wings) != 1)  &&  (HaveMemo(talker, @trial_of_scholar) != 1)  &&  (OwnItemCount(talker, @dragonflute_of_wind) == 1)  ||  (OwnItemCount(talker, @dragonflute_of_star) == 1)  ||  (OwnItemCount(talker, @dragonflute_of_twilight) == 1)) { 
        _choiceN = (_choiceN+1); 
        _code = 10; 
        AddChoice(10, "LittleWingAdventures"); 
      } 
      if (HaveMemo(talker, 421) == 1) { 
        _choiceN = (_choiceN+1); 
        _code = 11; 
        AddChoice(11, "LittleWingAdventures"); 
      } 
      if (_choiceN > 1) { 
        ShowChoicePage(talker, 1); 
        return; 
      } 
    } 
    if ((_from_choice  ||  (_choiceN == 1))) { 
      if (_code == 0) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @trial_of_scholar) == 1)  &&  (OwnItemCount(talker, @miriens_sigil3) == 1)  &&  (OwnItemCount(talker, @cronos_sigil) == 0)  &&  (OwnItemCount(talker, @symbol_of_cronos) == 0)) { 
          ShowPage(talker, "sage_cronos_q0214_01.htm"); 
        } 
      } 
      else if (_code == 1) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @trial_of_scholar) == 1)  &&  (OwnItemCount(talker, @miriens_sigil3) >= 1)  &&  (OwnItemCount(talker, @cronos_sigil) >= 1)) { 
          if ((OwnItemCount(talker, @scripture_chapter_1) >= 1)  &&  (OwnItemCount(talker, @scripture_chapter_2) >= 1)  &&  (OwnItemCount(talker, @scripture_chapter_3) >= 1)  &&  (OwnItemCount(talker, @scripture_chapter_4) >= 1)) { 
            ShowPage(talker, "sage_cronos_q0214_12.htm"); 
          } 
          else { 
            ShowPage(talker, "sage_cronos_q0214_11.htm"); 
          } 
        } 
      } 
      else if (_code == 2) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @trial_of_scholar) == 1)  &&  (OwnItemCount(talker, @miriens_sigil3) == 1)  &&  (OwnItemCount(talker, @symbol_of_cronos) == 1)  &&  (OwnItemCount(talker, @cronos_sigil) == 0)) { 
          ShowPage(talker, "sage_cronos_q0214_15.htm"); 
        } 
      } 
      else if (_code == 3) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 1)) { 
          ShowPage(talker, "sage_cronos_q0420_01.htm"); 
        } 
      } 
      else if (_code == 4) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 2)  ||  (GetMemoState(talker, @little_wings) == 11)  &&  (OwnItemCount(talker, @q_fairy_stone) == 0)  &&  (OwnItemCount(talker, @q_fairy_stone_delux) == 0)) { 
          ShowPage(talker, "sage_cronos_q0420_07.htm"); 
        } 
      } 
      else if (_code == 5) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 2)  &&  (OwnItemCount(talker, @q_fairy_stone) == 1)  ||  (OwnItemCount(talker, @q_fairy_stone_delux) == 1)) { 
          ShowPage(talker, "sage_cronos_q0420_08.htm"); 
          SetMemoState(talker, @little_wings, 3); 
        } 
      } 
      else if (_code == 6) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 11)  &&  (OwnItemCount(talker, @q_fairy_stone) == 1)  ||  (OwnItemCount(talker, @q_fairy_stone_delux) == 1)) { 
          ShowPage(talker, "sage_cronos_q0420_14.htm"); 
        } 
      } 
      else if (_code == 7) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 3)) { 
          ShowPage(talker, "sage_cronos_q0420_09.htm"); 
        } 
      } 
      else if (_code == 8) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 10)) { 
          ShowPage(talker, "sage_cronos_q0420_10.htm"); 
        } 
      } 
      else if (_code == 9) { 
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 4)  &&  (OwnItemCount(talker, @q_fairy_stone) == 1)  ||  (OwnItemCount(talker, @q_fairy_stone_delux) == 1)) { 
          ShowPage(talker, "sage_cronos_q0420_11.htm"); 
        } 
      } 
      else if (_code == 10) { 
        if (_from_choice == 0) { 
          ShowPage(talker, "sage_cronos_q0421_01.htm"); 
        } 
      } 
      else if (_code == 11) { 
        if (_from_choice == 0) { 
          ShowPage(talker, "sage_cronos_q0421_03.htm"); 
        } 
      } 
      return; 
    } 
    super; 
  } 
  // 107 functions called (27+80) 


  EventHandler MENU_SELECTED(ask, c0, reply, talker) { 
    if (ask == 214) { 
      if (reply == 1) { 
        ShowPage(talker, "sage_cronos_q0214_02.htm"); 
      } 
      if (reply == 2) { 
        ShowPage(talker, "sage_cronos_q0214_03.htm"); 
      } 
      if (reply == 3) { 
        ShowPage(talker, "sage_cronos_q0214_04.htm"); 
      } 
      if (reply == 4) { 
        ShowPage(talker, "sage_cronos_q0214_05.htm"); 
      } 
      if (reply == 5) { 
        ShowPage(talker, "sage_cronos_q0214_06.htm"); 
      } 
      if (reply == 6) { 
        ShowPage(talker, "sage_cronos_q0214_07.htm"); 
      } 
      if (reply == 7) { 
        ShowPage(talker, "sage_cronos_q0214_08.htm"); 
      } 
      if (reply == 8) { 
        ShowPage(talker, "sage_cronos_q0214_09.htm"); 
      } 
      if (reply == 9) { 
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) { 
          talker.quest_last_reward_time = GetCurrentTick(); 
          ShowPage(talker, "sage_cronos_q0214_10.htm"); 
          GiveItem1(talker, @cronos_sigil, 1); 
          GiveItem1(talker, @cronos_letter, 1); 
        } 
      } 
      if (reply == 10) { 
        ShowPage(talker, "sage_cronos_q0214_13.htm"); 
      } 
      if (reply == 11) { 
        if (OwnItemCount(talker, @dieters_diary) >= 1) { 
          ShowPage(talker, "sage_cronos_q0214_14.htm"); 
          DeleteItem1(talker, @scripture_chapter_1, OwnItemCount(talker, @scripture_chapter_1)); 
          DeleteItem1(talker, @scripture_chapter_2, OwnItemCount(talker, @scripture_chapter_2)); 
          DeleteItem1(talker, @scripture_chapter_3, OwnItemCount(talker, @scripture_chapter_3)); 
          DeleteItem1(talker, @scripture_chapter_4, OwnItemCount(talker, @scripture_chapter_4)); 
          DeleteItem1(talker, @cronos_sigil, OwnItemCount(talker, @cronos_sigil)); 
          DeleteItem1(talker, @treafs_ring, OwnItemCount(talker, @treafs_ring)); 
          DeleteItem1(talker, @dieters_diary, 1); 
          GiveItem1(talker, @symbol_of_cronos, 1); 
        } 
      } 
    } 
    if (ask == 420) { 
      if (reply == 1) { 
        ShowPage(talker, "sage_cronos_q0420_02.htm"); 
      } 
      if (reply == 2) { 
        ShowPage(talker, "sage_cronos_q0420_03.htm"); 
      } 
      if (reply == 3) { 
        ShowPage(talker, "sage_cronos_q0420_04.htm"); 
      } 
      if (reply == 4) { 
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) { 
          talker.quest_last_reward_time = GetCurrentTick(); 
          GiveItem1(talker, @q_list_of_stuff_for_fs, 1); 
          ShowPage(talker, "sage_cronos_q0420_05.htm"); 
          SetMemoState(talker, @little_wings, 2); 
        } 
      } 
      if (reply == 5) { 
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) { 
          talker.quest_last_reward_time = GetCurrentTick(); 
          GiveItem1(talker, @q_list_of_stuff_for_fsd, 1); 
          ShowPage(talker, "sage_cronos_q0420_06.htm"); 
          SetMemoState(talker, @little_wings, 2); 
        } 
      } 
      if (reply == 6) { 
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) { 
          talker.quest_last_reward_time = GetCurrentTick(); 
          GiveItem1(talker, @q_list_of_stuff_for_fs, 1); 
          SetMemoState(talker, @little_wings, 11); 
          ShowPage(talker, "sage_cronos_q0420_12.htm"); 
          SetMemoState(talker, @little_wings, 2); 
        } 
      } 
      if (reply == 7) { 
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) { 
          talker.quest_last_reward_time = GetCurrentTick(); 
          GiveItem1(talker, @q_list_of_stuff_for_fsd, 1); 
          SetMemoState(talker, @little_wings, 11); 
          ShowPage(talker, "sage_cronos_q0420_13.htm"); 
          SetMemoState(talker, @little_wings, 2); 
        } 
      } 
    } 
    if (ask == 421) { 
      if (reply == 1) { 
        if (talker.level < 45) { 
          ShowPage(talker, "sage_cronos_q0421_02.htm"); 
        } 
        else { 
          if ((talker.level >= 45)  &&  (talker.flag != 0)) { 
            c0 = GetCreatureFromIndex(talker.flag); 
            if ((DistFromMe(c0) < 100)  &&  (DistFromMe(c0) > 5)  &&  (c0.npc_class_id == 1012311)  ||  (c0.npc_class_id == 1012312)  ||  (c0.npc_class_id == 1012313)) { 
              if (c0.level >= 55) { 
                SetMemo(talker, 421); 
                SetMemoState(talker, 421, 1); 
                SoundEffect(talker, "ItemSound.quest_accept"); 
                ShowPage(talker, "sage_cronos_q0421_06.htm"); 
              } 
              else { 
                ShowPage(talker, "sage_cronos_q0421_04.htm"); 
              } 
            } 
            else { 
              ShowPage(talker, "sage_cronos_q0421_05.htm"); 
            } 
          } 
          else { 
            if (talker.flag == 0) { 
              ShowPage(talker, "sage_cronos_q0421_05.htm"); 
            } 
          } 
        } 
      } 
    } 
    super; 
  } 
  // 68 functions called (46+22) 

}
Cranberry is offline  
Old 23.06.2006, 06:45   #53
_xor_
Архивный участник
 
Join Date: Jun 2006
Posts: 22
Default Re: trouble

Quote:
Originally Posted by _xor_
Same thing.
ai, npcdata, npcpos, quest_pch, quest_pch2, itemdata injected.
Any ideas?
i found mistake - in html file for mymyu.
There was link to old version of html.
I write new html (fairy_mymyu_q0421_001.htm) in link, and now client dont crush )
But still don't working, when i push "Да" (<a action="bypass -h menu_select?ask=421&reply=1">Да.</a>).
_xor_ is offline  
Old 10.07.2006, 22:51   #54
BeTePok
Архивный участник
 
Join Date: Feb 2006
Posts: 204
Default

I get quest, all trees good work, he del all need item)
And i go to Mymyu say with him, push "Yes" and he not say
ask 421 replay 1
BeTePok is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:03.