Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 07.05.2006, 18:58   #26
serafim
Архивный участник
 
Join Date: May 2006
Posts: 42
Default

Oh sorry remove from tree npcpos - Privates = [guardian_of_treearty_private:1:5sec;guardian_of_ treearty_private:1:5sec;guardian_of_treearty_p rivate:1:5sec;guardian_of_treearty_private:1:5se c;guardian_of_treearty_private:1:5sec;guardian_o f_treearty_private:1:5sec]
serafim is offline  
Old 09.05.2006, 16:20   #27
sando
Архивный участник
 
Join Date: Feb 2005
Posts: 7
Default

Hatchling hit the trees... but nothing happens...TT
sando is offline  
Old 09.05.2006, 17:51   #28
serafim
Архивный участник
 
Join Date: May 2006
Posts: 42
Default

Quote:
Originally Posted by sando
Hatchling hit the trees... but nothing happens...TT
Quote:
Originally Posted by serafim
Has forgotten to specify one thing, for passage of a quest it is necessary to find trees in strict sequence in which specifies Fairy MyuoMyuo
Quote:
Originally Posted by serafim
The order is those-
1)Fairy Trees of Wind
2)Fairy Trees of Star
3)Fairy Trees of Twilight
4)Fairy Trees of Abyss

Trees should attack only hatchling, you should not touch them.
What to win a tree yours hatchling should put approximately 100 impacts and thus the main thing to not kill a tree
serafim is offline  
Old 10.05.2006, 13:26   #29
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default

big respect .
srh is offline  
Old 10.05.2006, 16:35   #30
Amanda
Архивный участник
 
Join Date: May 2006
Posts: 13
Default

nice job (+^_^+) thk
Amanda is offline  
Old 13.05.2006, 14:09   #31
vex
Архивный участник
 
Join Date: Dec 2005
Posts: 83
Default

Code:
quest_begin	id=421	level=1	name=[Little Wing's Big Adventure]	desc=[Wiseman Cronos suggests you consult Fairy Mymyu concerning the raising of a strider.]	step=[In Search of Mymyu]	quest_item={}	quest_item_amt={}	quest_mask1=[00000000000000000000000000000000]	quest_mask2=[00000000000000000000000000000000]	quest_mask3=[00000000000000000000000000000000]	level_limit1=45	level_limit2=0	other_attr=2	target=[]	readable=1	quest_end
quest_begin	id=421	level=2	name=[Little Wing's Big Adventure]	desc=[Fairy Mymyu examines your hatchling and tells you the story of the four fairy trees and their guardians. She tells you to feed the sap of these trees to your hatchling. Go to each of the four fairy trees of wind, star, twilight and abyss and let your hatchling drink their sap. You must guard your hatchling as it drinks. When it has finished drinking, attach a fairy leaf to the fairy tree.]	step=[The Sap of Fairy Trees]	quest_item={4325}	quest_item_amt={4}	quest_mask1=[00000000000000000000000000000000]	quest_mask2=[00000000000000000000000000000000]	quest_mask3=[00000000000000000000000000000000]	level_limit1=45	level_limit2=0	other_attr=2	target=[]	readable=1	quest_end
quest_begin	id=421	level=3	name=[Little Wing's Big Adventure]	desc=[Your hatchling has drunk the sap of all four fairy trees-- the wind, star, twilight and abyss. The preparations for its growth have been completed. Return to Fairy Mymyu.]	step=[Return to Fairy Mymyu]	quest_item={}	quest_item_amt={}	quest_mask1=[00000000000000000000000000000000]	quest_mask2=[00000000000000000000000000000000]	quest_mask3=[00000000000000000000000000000000]	level_limit1=45	level_limit2=0	other_attr=2	target=[]	readable=1	quest_end
vex is offline  
Old 13.05.2006, 21:20   #32
s00r
Архивный участник
 
Join Date: Jul 2005
Posts: 47
Default

help me please with npcdata for sage_cronos

what correct end ?

Code:
npc_ai={[sage_cronos];{[fnHi] = ...
s00r is offline  
Old 13.05.2006, 21:27   #33
KTPSMF
Архивный участник
 
Join Date: Oct 2005
Posts: 367
Default

prof quest for sws to cronos not working
KTPSMF is offline  
Old 14.05.2006, 10:51   #34
Morte
Архивный участник
 
Join Date: Mar 2006
Posts: 41
Default

Quote:
Originally Posted by KTPSMF
prof quest for sws to cronos not working
check replies/ask. probably different then your server %))
Morte is offline  
Old 14.05.2006, 14:36   #35
kadi
Архивный участник
 
Join Date: May 2006
Posts: 15
Default quest

so we have the same problem like other here the first tree the wind count until +- 100 then the leave disappear
but the other tree (star) dont count (all dont count after wind)
did some one know why ??
kadi is offline  
Old 14.05.2006, 16:48   #36
amin
Архивный участник
 
Join Date: Nov 2005
Posts: 22
Default Re: quest

Quote:
Originally Posted by kadi
so we have the same problem like other here the first tree the wind count until +- 100 then the leave disappear
but the other tree (star) dont count (all dont count after wind)
did some one know why ??
I have same problem here.
amin is offline  
Old 14.05.2006, 18:46   #37
2Rain
Архивный участник
 
Join Date: Aug 2005
Posts: 194
Default

What about start HTMLs for Cronos an butterfly?
2Rain is offline  
Old 16.05.2006, 13:31   #38
kadi
Архивный участник
 
Join Date: May 2006
Posts: 15
Default trees are not counting

hi so i find the fault by my self
make shure u have switcht the quest_pch and quest_pch2 too then it works
but
1). at beginn from hatchling quest u get first styder quest talk too cronos 2 times then u get the right quest

2). only the tree of wind cou7nt the other not but if ur hatchling bit long enough the trees says u win (it means they count not loud)

but now it works
BIG THX FOR POSTING
and if someone can tell me how too fix the rest probs it would be nice
kadi is offline  
Old 16.05.2006, 15:33   #39
amin
Архивный участник
 
Join Date: Nov 2005
Posts: 22
Default

1st Tree's AI:
Code:
EventHandler ATTACKED
...
      SayInt(myself.i_quest1);
      if (myself.i_quest0 == 0) {
...
Others' AIs:
Code:
EventHandler ATTACKED
...
//do not have this line, but it works anyway.
      if (myself.i_quest0 == 0) {
...
btw, in 3rd Tree's, you have to remove this line:
Code:
      DeleteItem1(attacker.master, @q0421_fairy_leaf, 1);
Dont ask me for AIdec or nasc, since all others are the property of their respective owners.

Thanks for the share.
amin is offline  
Old 22.05.2006, 08:46   #40
2Rain
Архивный участник
 
Join Date: Aug 2005
Posts: 194
Default

Well. I am not "respective owner" and I don't wish f*cks with NUSC. Anybody translate it in "human" AI code?

P.S.: If I share any my works and made mistakes, I reshare corrected version in same topic later. What attitude for people here? :-\
2Rain is offline  
Old 23.05.2006, 05:06   #41
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Attached is the converted source

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)

}
Code:
class fairy_mymyu : citizen {

  handler:

  EventHandler TALK_SELECTED(_choiceN, _code, _from_choice, i0, myself, talker) {
    if (_from_choice == 0) {
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (OwnItemCount(talker, @q_fairy_stone) == 1)) {
        _choiceN = (_choiceN+1);
        _code = 0;
        AddChoice(0, "Little Wing");
      }
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (OwnItemCount(talker, @q_fairy_stone_delux) == 1)) {
        _choiceN = (_choiceN+1);
        _code = 1;
        AddChoice(1, "Little Wing");
      }
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 5)) {
        _choiceN = (_choiceN+1);
        _code = 2;
        AddChoice(2, "Little Wing");
      }
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 6)  &&  (OwnItemCount(talker, @q_juice_of_monkshood) == 1)) {
        _choiceN = (_choiceN+1);
        _code = 3;
        AddChoice(3, "Little Wing");
      }
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 7)) {
        _choiceN = (_choiceN+1);
        _code = 4;
        AddChoice(4, "Little Wing");
      }
      if ((HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 8)) {
        _choiceN = (_choiceN+1);
        _code = 5;
        AddChoice(5, "Little Wing");
      }
      if (HaveMemo(talker, 421) == 0) {
        if ((HaveMemo(talker, @little_wings) == 0)  ||  (GetMemoState(talker, @little_wings) < 4)  ||  (GetMemoState(talker, @little_wings) > 8)  &&  (OwnItemCount(talker, @q_fairy_stone) == 0)  &&  (OwnItemCount(talker, @q_fairy_stone_delux) == 0)) {
          _choiceN = (_choiceN+1);
          _code = 6;
          AddChoice(6, "Little Wing");
        }
      }
      if ((HaveMemo(talker, 421) == 1)  &&  (GetMemoState(talker, 421) == 1)) {
        _choiceN = (_choiceN+1);
        _code = 7;
        AddChoice(7, "Little Wing Adventures");
      }
      if ((HaveMemo(talker, 421) == 1)  &&  (GetMemoState(talker, 421) == 2)) {
        _choiceN = (_choiceN+1);
        _code = 8;
        AddChoice(8, "Little Wing Adventures");
      }
      if ((HaveMemo(talker, 421) == 1)  &&  (GetMemoState(talker, 421) == 3)  &&  (OwnItemCount(talker, @q0421_fairy_leaf) == 0)) {
        _choiceN = (_choiceN+1);
        _code = 9;
        AddChoice(9, "Little Wing Adventures");
      }
      if (_choiceN > 1) {
        ShowChoicePage(talker, 1);
        return;
      }
    }
    if ((_from_choice  ||  (_choiceN == 1))) {
      if (_code == 0) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (OwnItemCount(talker, @q_fairy_stone) == 1)) {
          ShowPage(talker, "fairy_mymyu_q0420_02.htm");
        }
      }
      else if (_code == 1) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (OwnItemCount(talker, @q_fairy_stone_delux) == 1)) {
          ShowPage(talker, "fairy_mymyu_q0420_04.htm");
        }
      }
      else if (_code == 2) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 5)) {
          ShowPage(talker, "fairy_mymyu_q0420_07.htm");
        }
      }
      else if (_code == 3) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 6)  &&  (OwnItemCount(talker, @q_juice_of_monkshood) == 1)) {
          ShowPage(talker, "fairy_mymyu_q0420_09.htm");
        }
      }
      else if (_code == 4) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 7)) {
          if ((OwnItemCount(talker, @q_egg_of_drake_exarion) < 20)  &&  (OwnItemCount(talker, @q_egg_of_drake_zwov) < 20)  &&  (OwnItemCount(talker, @q_egg_of_drake_kalibran) < 20)  &&  (OwnItemCount(talker, @q_egg_of_wyrm_suzet) < 20)  &&  (OwnItemCount(talker, @q_egg_of_wyrm_shamhai) < 20)) {
            ShowPage(talker, "fairy_mymyu_q0420_10.htm");
          }
          else {
            ShowPage(talker, "fairy_mymyu_q0420_11.htm");
          }
        }
      }
      else if (_code == 5) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 1)  &&  (GetMemoState(talker, @little_wings) == 8)) {
          ShowPage(talker, "fairy_mymyu_q0420_12.htm");
        }
      }
      else if (_code == 6) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, @little_wings) == 0)  ||  (GetMemoState(talker, @little_wings) < 4)  ||  (GetMemoState(talker, @little_wings) > 8)  &&  (OwnItemCount(talker, @q_fairy_stone) == 0)  &&  (OwnItemCount(talker, @q_fairy_stone_delux) == 0)) {
          myself.i_quest0 = (myself.i_quest0+1);
          i0 = (myself.i_quest0%3);
          if (i0 == 0) {
            InstantTeleport(myself.sm, 109816, 40854, -4640);
          }
          else {
            if (i0 == 1) {
              InstantTeleport(myself.sm, 108940, 41615, -4643);
            }
            else {
              InstantTeleport(myself.sm, 110395, 41625, -4642);
            }
          }
        }
      }
      else if (_code == 7) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, 421) == 1)  &&  (GetMemoState(talker, 421) == 1)) {
          ShowPage(talker, "fairy_mymyu_q0421_001.htm");
        }
      }
      else if (_code == 8) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, 421) == 1)  &&  (GetMemoState(talker, 421) == 2)) {
          ShowPage(talker, "fairy_mymyu_q0421_003.htm");
        }
      }
      else if (_code == 9) {
        if ((_from_choice == 0)  ||  (HaveMemo(talker, 421) == 1)  &&  (GetMemoState(talker, 421) == 3)  &&  (OwnItemCount(talker, @q0421_fairy_leaf) == 0)) {
          ShowPage(talker, "fairy_mymyu_q0421_004.htm");
        }
      }
      return;
    }
    super;
  }
  // 80 functions called (24+56)


  EventHandler MENU_SELECTED(ask, c0, i0, reply, talker) {
    if (ask == 420) {
      if (reply == 1) {
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) {
          talker.quest_last_reward_time = GetCurrentTick();
          DeleteItem1(talker, @q_fairy_stone, OwnItemCount(talker, @q_fairy_stone));
          SetMemoState(talker, @little_wings, 5);
          ShowPage(talker, "fairy_mymyu_q0421_003.htm");
        }
      }
      if ((reply == 3)  &&  OwnItemCount(talker, @q_fairy_stone_delux)) {
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) {
          talker.quest_last_reward_time = GetCurrentTick();
          GiveItem1(talker, @q_fairy_dust, 1);
          DeleteItem1(talker, @q_fairy_stone_delux, OwnItemCount(talker, @q_fairy_stone_delux));
          SetMemoState(talker, @little_wings, 5);
          ShowPage(talker, "fairy_mymyu_q0420_05.htm");
        }
      }
      if (reply == 2) {
        ShowPage(talker, "fairy_mymyu_q0420_06.htm");
      }
      if (reply == 4) {
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) {
          talker.quest_last_reward_time = GetCurrentTick();
          GiveItem1(talker, @q_juice_of_monkshood, 1);
          SetMemoState(talker, @little_wings, 6);
          ShowPage(talker, "fairy_mymyu_q0420_08.htm");
          SetJournal(talker, 420, 5);
        }
      }
      if (reply == 5) {
        if (OwnItemCount(talker, @q_fairy_dust) == 1) {
          ShowPage(talker, "fairy_mymyu_q0420_13.htm");
        }
        else {
          if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) {
            talker.quest_last_reward_time = GetCurrentTick();
            i0 = Rand(100);
            if (OwnItemCount(talker, @q_egg_of_drake_exarion) >= 1) {
              if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                if (i0 < 45) {
                  CreatePet(talker, 3500, 1012311);
                }
                else {
                  if (i0 < 75) {
                    CreatePet(talker, 3501, 1012312);
                  }
                  else {
                    CreatePet(talker, 3502, 1012313);
                  }
                }
              }
              else {
                if (i0 < 50) {
                  CreatePet(talker, 3500, 1012311);
                }
                else {
                  if (i0 < 85) {
                    CreatePet(talker, 3501, 1012312);
                  }
                  else {
                    CreatePet(talker, 3502, 1012313);
                  }
                }
              }
              DeleteItem1(talker, @q_egg_of_drake_exarion, OwnItemCount(talker, @q_egg_of_drake_exarion));
            }
            else {
              if (OwnItemCount(talker, @q_egg_of_wyrm_suzet) >= 1) {
                if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                  if (i0 < 55) {
                    CreatePet(talker, 3500, 1012311);
                  }
                  else {
                    if (i0 < 85) {
                      CreatePet(talker, 3501, 1012312);
                    }
                    else {
                      CreatePet(talker, 3502, 1012313);
                    }
                  }
                }
                else {
                  if (i0 < 65) {
                    CreatePet(talker, 3500, 1012311);
                  }
                  else {
                    if (i0 < 95) {
                      CreatePet(talker, 3501, 1012312);
                    }
                    else {
                      CreatePet(talker, 3502, 1012313);
                    }
                  }
                }
                DeleteItem1(talker, @q_egg_of_wyrm_suzet, OwnItemCount(talker, @q_egg_of_wyrm_suzet));
              }
              else {
                if (OwnItemCount(talker, @q_egg_of_drake_kalibran) >= 1) {
                  if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                    if (i0 < 60) {
                      CreatePet(talker, 3500, 1012311);
                    }
                    else {
                      if (i0 < 90) {
                        CreatePet(talker, 3501, 1012312);
                      }
                      else {
                        CreatePet(talker, 3502, 1012313);
                      }
                    }
                  }
                  else {
                    if (i0 < 70) {
                      CreatePet(talker, 3500, 1012311);
                    }
                    else {
                      CreatePet(talker, 3501, 1012312);
                    }
                  }
                  DeleteItem1(talker, @q_egg_of_drake_kalibran, OwnItemCount(talker, @q_egg_of_drake_kalibran));
                }
                else {
                  if (OwnItemCount(talker, @q_egg_of_wyrm_shamhai) >= 1) {
                    if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                      if (i0 < 70) {
                        CreatePet(talker, 3500, 1012311);
                      }
                      else {
                        CreatePet(talker, 3501, 1012312);
                      }
                    }
                    else {
                      if (i0 < 85) {
                        CreatePet(talker, 3500, 1012311);
                      }
                      else {
                        CreatePet(talker, 3501, 1012312);
                      }
                    }
                    DeleteItem1(talker, @q_egg_of_wyrm_shamhai, OwnItemCount(talker, @q_egg_of_wyrm_shamhai));
                  }
                  else {
                    if (OwnItemCount(talker, @q_egg_of_drake_zwov) >= 1) {
                      if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                        if (i0 < 90) {
                          CreatePet(talker, 3500, 1012311);
                        }
                        else {
                          CreatePet(talker, 3501, 1012312);
                        }
                      }
                      else {
                        CreatePet(talker, 3500, 1012311);
                      }
                      DeleteItem1(talker, @q_egg_of_drake_zwov, OwnItemCount(talker, @q_egg_of_drake_zwov));
                    }
                  }
                }
              }
            }
            RemoveMemo(talker, @little_wings);
            SoundEffect(talker, "ItemSound.quest_finish");
            ShowPage(talker, "fairy_mymyu_q0420_16.htm");
          }
        }
      }
      if (reply == 7) {
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) {
          talker.quest_last_reward_time = GetCurrentTick();
          i0 = Rand(100);
          if (OwnItemCount(talker, @q_egg_of_drake_exarion) >= 1) {
            if (OwnItemCount(talker, @q_fairy_dust) == 1) {
              if (i0 < 45) {
                CreatePet(talker, 3500, 1012311);
              }
              else {
                if (i0 < 75) {
                  CreatePet(talker, 3501, 1012312);
                }
                else {
                  CreatePet(talker, 3502, 1012313);
                }
              }
            }
            else {
              if (i0 < 50) {
                CreatePet(talker, 3500, 1012311);
              }
              else {
                if (i0 < 85) {
                  CreatePet(talker, 3501, 1012312);
                }
                else {
                  CreatePet(talker, 3502, 1012313);
                }
              }
            }
            DeleteItem1(talker, @q_egg_of_drake_exarion, OwnItemCount(talker, @q_egg_of_drake_exarion));
          }
          else {
            if (OwnItemCount(talker, @q_egg_of_wyrm_suzet) >= 1) {
              if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                if (i0 < 55) {
                  CreatePet(talker, 3500, 1012311);
                }
                else {
                  if (i0 < 85) {
                    CreatePet(talker, 3501, 1012312);
                  }
                  else {
                    CreatePet(talker, 3502, 1012313);
                  }
                }
              }
              else {
                if (i0 < 65) {
                  CreatePet(talker, 3500, 1012311);
                }
                else {
                  if (i0 < 95) {
                    CreatePet(talker, 3501, 1012312);
                  }
                  else {
                    CreatePet(talker, 3502, 1012313);
                  }
                }
              }
              DeleteItem1(talker, @q_egg_of_wyrm_suzet, OwnItemCount(talker, @q_egg_of_wyrm_suzet));
            }
            else {
              if (OwnItemCount(talker, @q_egg_of_drake_kalibran) >= 1) {
                if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                  if (i0 < 60) {
                    CreatePet(talker, 3500, 1012311);
                  }
                  else {
                    if (i0 < 90) {
                      CreatePet(talker, 3501, 1012312);
                    }
                    else {
                      CreatePet(talker, 3502, 1012313);
                    }
                  }
                }
                else {
                  if (i0 < 70) {
                    CreatePet(talker, 3500, 1012311);
                  }
                  else {
                    CreatePet(talker, 3501, 1012312);
                  }
                }
                DeleteItem1(talker, @q_egg_of_drake_kalibran, OwnItemCount(talker, @q_egg_of_drake_kalibran));
              }
              else {
                if (OwnItemCount(talker, @q_egg_of_wyrm_shamhai) >= 1) {
                  if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                    if (i0 < 70) {
                      CreatePet(talker, 3500, 1012311);
                    }
                    else {
                      CreatePet(talker, 3501, 1012312);
                    }
                  }
                  else {
                    if (i0 < 85) {
                      CreatePet(talker, 3500, 1012311);
                    }
                    else {
                      CreatePet(talker, 3501, 1012312);
                    }
                  }
                  DeleteItem1(talker, @q_egg_of_wyrm_shamhai, OwnItemCount(talker, @q_egg_of_wyrm_shamhai));
                }
                else {
                  if (OwnItemCount(talker, @q_egg_of_drake_zwov) >= 1) {
                    if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                      if (i0 < 90) {
                        CreatePet(talker, 3500, 1012311);
                      }
                      else {
                        CreatePet(talker, 3501, 1012312);
                      }
                    }
                    else {
                      CreatePet(talker, 3500, 1012311);
                    }
                    DeleteItem1(talker, @q_egg_of_drake_zwov, OwnItemCount(talker, @q_egg_of_drake_zwov));
                  }
                }
              }
            }
          }
          RemoveMemo(talker, @little_wings);
          SoundEffect(talker, "ItemSound.quest_finish");
          ShowPage(talker, "fairy_mymyu_q0420_14.htm");
        }
      }
      if (reply == 6) {
        if ((GetCurrentTick()-talker.quest_last_reward_time) > 1) {
          talker.quest_last_reward_time = GetCurrentTick();
          i0 = Rand(100);
          if (OwnItemCount(talker, @q_egg_of_drake_exarion) >= 1) {
            if (OwnItemCount(talker, @q_fairy_dust) == 1) {
              if (i0 < 45) {
                CreatePet(talker, 3500, 1012311);
              }
              else {
                if (i0 < 75) {
                  CreatePet(talker, 3501, 1012312);
                }
                else {
                  CreatePet(talker, 3502, 1012313);
                }
              }
            }
            else {
              if (i0 < 50) {
                CreatePet(talker, 3500, 1012311);
              }
              else {
                if (i0 < 85) {
                  CreatePet(talker, 3501, 1012312);
                }
                else {
                  CreatePet(talker, 3502, 1012313);
                }
              }
            }
            DeleteItem1(talker, @q_egg_of_drake_exarion, OwnItemCount(talker, @q_egg_of_drake_exarion));
          }
          else {
            if (OwnItemCount(talker, @q_egg_of_wyrm_suzet) >= 1) {
              if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                if (i0 < 55) {
                  CreatePet(talker, 3500, 1012311);
                }
                else {
                  if (i0 < 85) {
                    CreatePet(talker, 3501, 1012312);
                  }
                  else {
                    CreatePet(talker, 3502, 1012313);
                  }
                }
              }
              else {
                if (i0 < 65) {
                  CreatePet(talker, 3500, 1012311);
                }
                else {
                  if (i0 < 95) {
                    CreatePet(talker, 3501, 1012312);
                  }
                  else {
                    CreatePet(talker, 3502, 1012313);
                  }
                }
              }
              DeleteItem1(talker, @q_egg_of_wyrm_suzet, OwnItemCount(talker, @q_egg_of_wyrm_suzet));
            }
            else {
              if (OwnItemCount(talker, @q_egg_of_drake_kalibran) >= 1) {
                if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                  if (i0 < 60) {
                    CreatePet(talker, 3500, 1012311);
                  }
                  else {
                    if (i0 < 90) {
                      CreatePet(talker, 3501, 1012312);
                    }
                    else {
                      CreatePet(talker, 3502, 1012313);
                    }
                  }
                }
                else {
                  if (i0 < 70) {
                    CreatePet(talker, 3500, 1012311);
                  }
                  else {
                    CreatePet(talker, 3501, 1012312);
                  }
                }
                DeleteItem1(talker, @q_egg_of_drake_kalibran, OwnItemCount(talker, @q_egg_of_drake_kalibran));
              }
              else {
                if (OwnItemCount(talker, @q_egg_of_wyrm_shamhai) >= 1) {
                  if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                    if (i0 < 70) {
                      CreatePet(talker, 3500, 1012311);
                    }
                    else {
                      CreatePet(talker, 3501, 1012312);
                    }
                  }
                  else {
                    if (i0 < 85) {
                      CreatePet(talker, 3500, 1012311);
                    }
                    else {
                      CreatePet(talker, 3501, 1012312);
                    }
                  }
                  DeleteItem1(talker, @q_egg_of_wyrm_shamhai, OwnItemCount(talker, @q_egg_of_wyrm_shamhai));
                }
                else {
                  if (OwnItemCount(talker, @q_egg_of_drake_zwov) >= 1) {
                    if (OwnItemCount(talker, @q_fairy_dust) == 1) {
                      if (i0 < 90) {
                        CreatePet(talker, 3500, 1012311);
                      }
                      else {
                        CreatePet(talker, 3501, 1012312);
                      }
                    }
                    else {
                      CreatePet(talker, 3500, 1012311);
                    }
                    DeleteItem1(talker, @q_egg_of_drake_zwov, OwnItemCount(talker, @q_egg_of_drake_zwov));
                  }
                }
              }
            }
          }
          RemoveMemo(talker, @little_wings);
          SoundEffect(talker, "ItemSound.quest_finish");
          if (OwnItemCount(talker, @q_fairy_dust) == 0) {
            ShowPage(talker, "fairy_mymyu_q0420_14.htm");
          }
          else {
            if (i0 < 5) {
              ShowPage(talker, "fairy_mymyu_q0420_15.htm");
              GiveItem1(talker, @hatchlings_soft_leather, 1);
            }
            else {
              ShowPage(talker, "fairy_mymyu_q0420_15t.htm");
              GiveItem1(talker, @food_for_hatchling, 20);
              DeleteItem1(talker, @q_fairy_dust, OwnItemCount(talker, @q_fairy_dust));
            }
          }
        }
      }
    }
    if (ask == 421) {
      if (reply == 1) {
        if ((HaveMemo(talker, 421) == 1)  &&  (GetMemoState(talker, 421) == 1)) {
          GiveItem1(talker, @q0421_fairy_leaf, 4);
          SetMemoState(talker, 421, 2);
          SoundEffect(talker, "ItemSound.quest_itemget");
          ShowPage(talker, "fairy_mymyu_q0421_002.htm");
        }
      }
      if (reply == 2) {
        if ((HaveMemo(talker, 421) == 1)  &&  (GetMemoState(talker, 421) == 3)  &&  (OwnItemCount(talker, @q0421_fairy_leaf) == 0)) {
          c0 = GetCreatureFromIndex(talker.flag);
          if ((c0.npc_class_id == 1012311)  ||  (c0.npc_class_id == 1012312)  ||  (c0.npc_class_id == 1012313)  &&  (DistFromMe(c0) < 150)  &&  (DistFromMe(c0) > 5)) {
            if (c0.level >= 55) {
              if ((OwnItemCount(talker, @dragonflute_of_wind) == 1)  &&  (OwnItemCount(talker, @dragonflute_of_star) == 0)  &&  (OwnItemCount(talker, @dragonflute_of_twilight) == 0)) {
                DeleteItem1(talker, @dragonflute_of_wind, 1);
                CreatePet(talker, 4422, 1012526);
                ShowPage(talker, "fairy_mymyu_q0421_010.htm");
                SoundEffect(talker, "ItemSound.quest_finish");
                RemoveMemo(talker, 421);
              }
              else {
                if ((OwnItemCount(talker, @dragonflute_of_star) == 1)  &&  (OwnItemCount(talker, @dragonflute_of_wind) == 0)  &&  (OwnItemCount(talker, @dragonflute_of_twilight) == 0)) {
                  DeleteItem1(talker, @dragonflute_of_star, 1);
                  CreatePet(talker, 4423, 1012527);
                  ShowPage(talker, "fairy_mymyu_q0421_010.htm");
                  SoundEffect(talker, "ItemSound.quest_finish");
                  RemoveMemo(talker, 421);
                }
                else {
                  if ((OwnItemCount(talker, @dragonflute_of_twilight) == 1)  &&  (OwnItemCount(talker, @dragonflute_of_wind) == 0)  &&  (OwnItemCount(talker, @dragonflute_of_star) == 0)) {
                    DeleteItem1(talker, @dragonflute_of_twilight, 1);
                    CreatePet(talker, 4424, 1012528);
                    ShowPage(talker, "fairy_mymyu_q0421_010.htm");
                    SoundEffect(talker, "ItemSound.quest_finish");
                    RemoveMemo(talker, 421);
                  }
                  else {
                    ShowPage(talker, "fairy_mymyu_q0421_007.htm");
                  }
                }
              }
            }
          }
          else {
            ShowPage(talker, "fairy_mymyu_q0421_005.htm");
          }
        }
      }
    }
    super;
  }
  // 218 functions called (135+83)

}
Code:
class hatchling_of_wind : pet_use_one_skill {

  handler:

  EventHandler CREATED(myself) {
    myself.sm.flag = 0;
    AddTimerEx(8997790, 500);
  }
  // 1 functions called (1+0)


  EventHandler TIMER_FIRED_EX(c0, i0, myself, timer_id) {
    if (timer_id == 8997790) {
      i0 = myself.master.target_index;
      c0 = GetCreatureFromIndex(i0);
      if (c0) {
        if ((c0.npc_class_id == 1007610)  ||  (c0.npc_class_id == 1007747)  &&  (DistFromMe(c0) < 500)) {
          myself.master.flag = GetIndexFromCreature(myself.sm);
        }
      }
      if (OwnItemCount(myself.master, @dragonflute_of_wind) < 1) {
        Despawn();
      }
      if (HaveMemo(myself.master, 421) == 1) {
        if ((myself.sm.flag == 1)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 4)) {
          SoundEffect(myself.master, "ItemSound.quest_middle");
          DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
        }
        else {
          if ((myself.sm.flag == 2)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 3)) {
            SoundEffect(myself.master, "ItemSound.quest_middle");
            DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
          }
          else {
            if ((myself.sm.flag == 3)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 2)) {
              SoundEffect(myself.master, "ItemSound.quest_middle");
              DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
            }
            else {
              if ((myself.sm.flag == 4)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 1)) {
                SoundEffect(myself.master, "ItemSound.quest_finish");
                DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
                SetMemoState(myself.master, 421, 3);
                myself.sm.flag = 0;
              }
            }
          }
        }
      }
      AddTimerEx(8997790, 500);
    }
  }
  // 20 functions called (11+9)

}
Firedaemon is offline  
Old 23.05.2006, 05:08   #42
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Code:
class hatchling_of_star : pet_use_one_skill {

  handler:

  EventHandler CREATED(myself) {
    myself.sm.flag = 0;
    AddTimerEx(8997791, 500);
  }
  // 1 functions called (1+0)


  EventHandler TIMER_FIRED_EX(c0, i0, myself, timer_id) {
    if (timer_id == 8997791) {
      i0 = myself.master.target_index;
      c0 = GetCreatureFromIndex(i0);
      if (c0) {
        if ((c0.npc_class_id == 1007610)  ||  (c0.npc_class_id == 1007747)  &&  (DistFromMe(c0) < 500)  &&  (myself.sm.level >= 55)) {
          myself.master.flag = GetIndexFromCreature(myself.sm);
        }
      }
      if (OwnItemCount(myself.master, @dragonflute_of_star) < 1) {
        Despawn();
      }
      if (HaveMemo(myself.master, 421) == 1) {
        if ((myself.sm.flag == 1)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 4)) {
          SoundEffect(myself.master, "ItemSound.quest_middle");
          DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
        }
        else {
          if ((myself.sm.flag == 2)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 3)) {
            SoundEffect(myself.master, "ItemSound.quest_middle");
            DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
          }
          else {
            if ((myself.sm.flag == 3)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 2)) {
              SoundEffect(myself.master, "ItemSound.quest_middle");
              DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
            }
            else {
              if ((myself.sm.flag == 4)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 1)) {
                SoundEffect(myself.master, "ItemSound.quest_finish");
                DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
                SetMemoState(myself.master, 421, 3);
                myself.sm.flag = 0;
              }
            }
          }
        }
      }
      AddTimerEx(8997791, 500);
    }
  }
  // 20 functions called (11+9)

}
Code:
class hatchling_of_twilight : pet_use_one_skill {

  handler:

  EventHandler CREATED(myself) {
    myself.sm.flag = 0;
    AddTimerEx(8997792, 500);
  }
  // 1 functions called (1+0)


  EventHandler TIMER_FIRED_EX(c0, i0, myself, timer_id) {
    if (timer_id == 8997792) {
      i0 = myself.master.target_index;
      c0 = GetCreatureFromIndex(i0);
      if (c0) {
        if ((c0.npc_class_id == 1007610)  ||  (c0.npc_class_id == 1007747)  &&  (DistFromMe(c0) < 500)  &&  (myself.sm.level >= 55)) {
          myself.master.flag = GetIndexFromCreature(myself.sm);
        }
      }
      if (OwnItemCount(myself.master, @dragonflute_of_twilight) < 1) {
        Despawn();
      }
      if (HaveMemo(myself.master, 421) == 1) {
        if ((myself.sm.flag == 1)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 4)) {
          SoundEffect(myself.master, "ItemSound.quest_middle");
          DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
        }
        else {
          if ((myself.sm.flag == 2)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 3)) {
            SoundEffect(myself.master, "ItemSound.quest_middle");
            DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
          }
          else {
            if ((myself.sm.flag == 3)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 2)) {
              SoundEffect(myself.master, "ItemSound.quest_middle");
              DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
            }
            else {
              if ((myself.sm.flag == 4)  &&  (OwnItemCount(myself.master, @q0421_fairy_leaf) == 1)) {
                SoundEffect(myself.master, "ItemSound.quest_finish");
                DeleteItem1(myself.master, @q0421_fairy_leaf, 1);
                SetMemoState(myself.master, 421, 3);
                myself.sm.flag = 0;
              }
            }
          }
        }
      }
      AddTimerEx(8997792, 500);
    }
  }
  // 20 functions called (11+9)

}
Code:
class quest_tree_1 : default_npc {

  parameter:

  string Privates = "guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec";

  handler:

  EventHandler CREATED(myself) {
    CreatePrivates(Privates);
    myself.i_quest0 = 0;
    myself.i_quest1 = 0;
  }
  // 1 functions called (1+0)


  EventHandler PARTY_DIED(_private, myself) {
    if (_private != myself.sm) {
      CreateOnePrivate(_private.npc_class_id, (_private+1336), _private.weight_point, _private.respawn_time);
    }
  }
  // 1 functions called (1+0)


  EventHandler ATTACKED(attacker, myself, skill_name_id) {
    if ((attacker.npc_class_id == 1012311)  ||  (attacker.npc_class_id == 1012312)  ||  (attacker.npc_class_id == 1012313)  &&  (skill_name_id == 0)) {
      SayInt(myself.i_quest1);
      if (myself.i_quest0 == 0) {
        myself.i_quest0 = GetIndexFromCreature(attacker);
      }
      else {
        if (myself.i_quest0 == GetIndexFromCreature(attacker)) {
          myself.i_quest1 = (myself.i_quest1+1);
          if ((myself.i_quest1 >= 98)  &&  (attacker.flag == 0)) {
            attacker.flag = 1;
            Say("You win!");
            myself.i_quest0 = 0;
            myself.i_quest1 = 0;
          }
        }
        else {
          if (myself.i_quest0 != GetIndexFromCreature(attacker)) {
            myself.i_quest0 = 0;
            myself.i_quest1 = 0;
          }
        }
      }
    }
    else {
      if ((HaveMemo(attacker, 421) == 1)  &&  (GetMemoState(attacker, 421) == 2)) {
        AddUseSkillDesire(attacker, @s_quest_fatal_poison, 0, 0, 1000000);
      }
    }
  }
  // 8 functions called (3+5)

}
Code:
class quest_tree_2 : default_npc {

  parameter:

  string Privates = "guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec";

  handler:

  EventHandler CREATED(myself) {
    CreatePrivates(Privates);
    myself.i_quest0 = 0;
    myself.i_quest1 = 0;
  }
  // 1 functions called (1+0)


  EventHandler PARTY_DIED(_private, myself) {
    if (_private != myself.sm) {
      CreateOnePrivate(_private.npc_class_id, (_private+1336), _private.weight_point, _private.respawn_time);
    }
  }
  // 1 functions called (1+0)


  EventHandler ATTACKED(attacker, myself, skill_name_id) {
    if ((attacker.npc_class_id == 1012311)  ||  (attacker.npc_class_id == 1012312)  ||  (attacker.npc_class_id == 1012313)  &&  (skill_name_id == 0)) {
      if (myself.i_quest0 == 0) {
        myself.i_quest0 = GetIndexFromCreature(attacker);
      }
      else {
        if (myself.i_quest0 == GetIndexFromCreature(attacker)) {
          myself.i_quest1 = (myself.i_quest1+1);
          if ((myself.i_quest1 >= 98)  &&  (attacker.flag == 1)) {
            attacker.flag = 2;
            Say("You Win!");
            myself.i_quest0 = 0;
            myself.i_quest1 = 0;
          }
        }
        else {
          if (myself.i_quest0 != GetIndexFromCreature(attacker)) {
            myself.i_quest0 = 0;
            myself.i_quest1 = 0;
          }
        }
      }
    }
    else {
      if ((HaveMemo(attacker, 421) == 1)  &&  (GetMemoState(attacker, 421) == 2)) {
        AddUseSkillDesire(attacker, @s_quest_fatal_poison, 0, 0, 1000000);
      }
    }
  }
  // 7 functions called (2+5)

}
Code:
class quest_tree_3 : default_npc {

  parameter:

  string Privates = "guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec";

  handler:

  EventHandler CREATED(myself) {
    CreatePrivates(Privates);
    myself.i_quest0 = 0;
    myself.i_quest1 = 0;
  }
  // 1 functions called (1+0)


  EventHandler PARTY_DIED(_private, myself) {
    if (_private != myself.sm) {
      CreateOnePrivate(_private.npc_class_id, (_private+1336), _private.weight_point, _private.respawn_time);
    }
  }
  // 1 functions called (1+0)


  EventHandler ATTACKED(attacker, myself, skill_name_id) {
    if ((attacker.npc_class_id == 1012311)  ||  (attacker.npc_class_id == 1012312)  ||  (attacker.npc_class_id == 1012313)  &&  (skill_name_id == 0)) {
      if (myself.i_quest0 == 0) {
        myself.i_quest0 = GetIndexFromCreature(attacker);
      }
      else {
        if (myself.i_quest0 == GetIndexFromCreature(attacker)) {
          myself.i_quest1 = (myself.i_quest1+1);
          if ((myself.i_quest1 >= 98)  &&  (attacker.flag == 2)) {
            DeleteItem1(attacker.master, @q0421_fairy_leaf, 1);
            attacker.flag = 3;
            Say("You Win!");
            myself.i_quest0 = 0;
            myself.i_quest1 = 0;
          }
        }
        else {
          if (myself.i_quest0 != GetIndexFromCreature(attacker)) {
            myself.i_quest0 = 0;
            myself.i_quest1 = 0;
          }
        }
      }
    }
    else {
      if ((HaveMemo(attacker, 421) == 1)  &&  (GetMemoState(attacker, 421) == 2)) {
        AddUseSkillDesire(attacker, @s_quest_fatal_poison, 0, 0, 1000000);
      }
    }
  }
  // 8 functions called (3+5)

}
Code:
class quest_tree_4 : default_npc {

  parameter:

  string Privates = "guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec;guardian_of_tree:guardian_tree:1:5sec";

  handler:

  EventHandler CREATED(myself) {
    CreatePrivates(Privates);
    myself.i_quest0 = 0;
    myself.i_quest1 = 0;
  }
  // 1 functions called (1+0)


  EventHandler PARTY_DIED(_private, myself) {
    if (_private != myself.sm) {
      CreateOnePrivate(_private.npc_class_id, (_private+1336), _private.weight_point, _private.respawn_time);
    }
  }
  // 1 functions called (1+0)


  EventHandler ATTACKED(attacker, myself, skill_name_id) {
    if ((attacker.npc_class_id == 1012311)  ||  (attacker.npc_class_id == 1012312)  ||  (attacker.npc_class_id == 1012313)  &&  (skill_name_id == 0)) {
      if (myself.i_quest0 == 0) {
        myself.i_quest0 = GetIndexFromCreature(attacker);
      }
      else {
        if (myself.i_quest0 == GetIndexFromCreature(attacker)) {
          myself.i_quest1 = (myself.i_quest1+1);
          if ((myself.i_quest1 >= 98)  &&  (attacker.flag == 3)) {
            attacker.flag = 4;
            Say("You Win!");
            myself.i_quest0 = 0;
            myself.i_quest1 = 0;
          }
        }
        else {
          if (myself.i_quest0 != GetIndexFromCreature(attacker)) {
            myself.i_quest0 = 0;
            myself.i_quest1 = 0;
          }
        }
      }
    }
    else {
      if ((HaveMemo(attacker, 421) == 1)  &&  (GetMemoState(attacker, 421) == 2)) {
        AddUseSkillDesire(attacker, @s_quest_fatal_poison, 1, 0, 1000000);
      }
    }
  }
  // 7 functions called (2+5)

}
Code:
class guardian_tree : default_npc {

  handler:

  EventHandler NO_DESIRE(myself) {
    if (myself.boss.alive) {
      AddFollowDesire(myself.boss, 5);
    }
    else {
      AddMoveAroundDesire(5, 5);
    }
  }
  // 2 functions called (2+0)


  EventHandler PARTY_ATTACKED(_private, attacker, myself) {
    if (_private == myself.boss) {
      AddAttackDesire(attacker, 1, 20000);
    }
  }
  // 1 functions called (1+0)


  EventHandler ATTACKED(attacker, damage, myself) {
    if (myself.boss.alive == 0) {
      Despawn();
    }
    else {
      if ((attacker.is_pc != 0)  ||  IsInCategory(9, attacker.npc_class_id)) {
        AddAttackDesire(attacker, 1, (((damage/myself.sm.max_hp)/0.050000)*100));
      }
    }
  }
  // 3 functions called (2+1)

}
Firedaemon is offline  
Old 23.05.2006, 06:09   #43
2Rain
Архивный участник
 
Join Date: Aug 2005
Posts: 194
Default

Thanks. You compel me to learn hard soft... Very bad.
2Rain is offline  
Old 26.05.2006, 00:50   #44
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

what happen with first post? no strider quest ?

???
wton is offline  
Old 10.06.2006, 07:37   #45
Decaz
Архивный участник
 
Join Date: Nov 2005
Posts: 32
Default

I receive a quest at Cronos, then I go to Fairy Mymyu, further talk in dialogue Hatchling to Strider and game hangs...what to do?
Decaz is offline  
Old 10.06.2006, 21:59   #46
TuMBLer
Архивный участник
 
Join Date: Apr 2005
Posts: 127
Default

Someone reshare please
TuMBLer is offline  
Old 10.06.2006, 22:23   #47
LoVeRSaMa
Архивный участник
 
Join Date: Jun 2006
Posts: 111
Default

Nice
Very good,i cant wait for translations then str8 to our server >.<
LoVeRSaMa is offline  
Old 19.06.2006, 09:14   #48
Zil
Архивный участник
 
Join Date: Jan 2006
Posts: 277
Default

Quote:
Originally Posted by TuMBLer
Someone reshare please
As I think here it is

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
straiderquest_155_808.rar — 14649 байт
Zil is offline  
Old 19.06.2006, 13:00   #49
_xor_
Архивный участник
 
Join Date: Jun 2006
Posts: 22
Default trouble

Quote:
Originally Posted by Decaz
I receive a quest at Cronos, then I go to Fairy Mymyu, further talk in dialogue Hatchling to Strider and game hangs...what to do?
Same thing.
ai, npcdata, npcpos, quest_pch, quest_pch2, itemdata injected.
Any ideas?
_xor_ is offline  
Old 19.06.2006, 16:24   #50
LoVeRSaMa
Архивный участник
 
Join Date: Jun 2006
Posts: 111
Default

*Bump*

anyone ?
LoVeRSaMa is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 19:54.