[QUEST]MEDALIA EROILOR+INELE/AMULETĂ/ACADEA [COMPLET]

Deconectat
Avatar utilizator
Alexandru™
Nivel 5
Nivel 5
Mesaje: 778
Membru din: 08 Sep 2015
Localitate: Italia
Status: Metin2Nefrax
Server Metin2: Metin2Nefrax
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 4

[QUEST]MEDALIA EROILOR+INELE/AMULETĂ/ACADEA [COMPLET]

Mesajde Alexandru™ » 01 Oct 2015, 22:31

Salut, vreau sa va arat cum sa bagati in sv medalia eroilor+ inel semiluna/inelul bucurie/acadeaua si in final amuleta dragostei eterne...!
Sa incepem!(o sa fac tutorialul in mai multi pasi):


1. Despachetam locale_**.epk/eix din clientul nostru de metin2, cauta prin fisiere pana gasim item_proto, pe care la randul lui il decriptam si adaugam urmatoarele in el:

Cod: Selectaţi tot

<Item vnum="71135" hashName="Ãʽ´ÞÀÇ ¹ÝÁö" name="Inel Semilună" type="16" subtype="0" weight="0" size="1" antiflag="106880" flag="0" wearflag="128" immuneflag="0" gold="0" buy_price="0" limittype0="7" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
      <Item vnum="71136" hashName="ÇÒ·ÎÀ© »çÅÁ" name="Acadea" type="16" subtype="0" weight="0" size="1" antiflag="106624" flag="0" wearflag="128" immuneflag="0" gold="0" buy_price="0" limittype0="7" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
   <Item vnum="71143" hashName="ÇູÀÇ ¹ÝÁö" name="Inelul Bucuriei" type="16" subtype="0" weight="0" size="1" antiflag="106880" flag="0" wearflag="128" immuneflag="0" gold="0" buy_price="0" limittype0="7" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
        <Item vnum="71145" hashName="¿µ¿øÇÑ »ç¶ûÀÇ ÆÒ´øÆ®" name="Amuleta Dragostei Eterne" type="16" subtype="0" weight="0" size="1" antiflag="106880" flag="0" wearflag="128" immuneflag="0" gold="0" buy_price="0" limittype0="7" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
   <Item vnum="71158" hashName="¿µ¿õÀÇ ÁõÇ¥" name="Medalia Eroilor" type="16" subtype="0" weight="0" size="1" antiflag="106624" flag="0" wearflag="128" immuneflag="0" gold="0" buy_price="0" limittype0="7" limitvalue0="86400" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />


Dupa ce am adaugat la sfarsit acestea, imachetam la loc item_proto si trecem mai departe.
2. Deschide item_desc si adaugam urmatoarele:

Cod: Selectaţi tot

71135   Inel Semilună    Un inel cu o gravura artistica si eleganta a unei semilune.
71136   Acadea    O acadea facuta din ingredinte secrete, care iti da putere si experienta in lupta.
71143    Inelul Bucuriei    Un inel cu o decoratiune facuta din jadesi pietre pretioase.
71145    Amuleta Dragostei Eterne    O forma de inima, decorata cu pietre magice.
71158    Medalia Eroilor  EXP +50%, +30% daune, +20% viteza atacului, +20% viteza farmecului, +10% PM si +10%  PM.


Iesim si salvam apoi...
3. Deschidem iitem_list, aici adaugam:

Cod: Selectaţi tot

71135   ETC   icon/item/71135.tga
71136   ETC   icon/item/71136.tga
71143   ETC   icon/item/71143.tga
71145   ETC   icon/item/71145.tga
71158   ETC   icon/item/71158.tga

Iesim si salvam!
DUPA CE AM FACUT TOATE ACESTEA CRIPTAM locale_**.epk/eix la loc si il pune in client.
5. Decriptam effect.epk/eix si punem in ymir work/effect/etc/buff urmatoarele fisiere:
Trebuie să fii logat sau înregistrat pentru a vedea acest link.
6.dupa ce am pus fisierele in XML adaugam :

Cod: Selectaţi tot

<File archivedPath="d:/ymir work/effect/etc/buff/buff_item1.mde" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\buff_item1.mde]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/buff_item1.mse" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\buff_item1.mse]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/buff_item2.mse" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\buff_item2.mse]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/buff_item3.mse" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\buff_item3.mse]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/buff_item4.mse" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\buff_item4.mse]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/buff_symbol1.mse" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\buff_symbol1.mse]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/item_symbol1_1.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\item_symbol1_1.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/item_symbol1_2.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\item_symbol1_2.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/item_buff1.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\item_buff1.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/light010.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\light010.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/light012.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\light012.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/light017.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\light017.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/light616.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\light616.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/candy1.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\candy1.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/happy_ring1.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\happy_ring1.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/heart_pendant1.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\heart_pendant1.dds]]></File>
      <File archivedPath="d:/ymir work/effect/etc/buff/ring1.dds" type="1"><![CDATA[extracted\effect\ymir work\effect\etc\buff\ring1.dds]]></File>


IMPACHETAM LA LOC effect.epk/eix SI IL PUNEM IN CLIENT LA LOC.

7.Despachetam root.epk/eix si deschidem : playersettingmodule.py
aici, cautam :

Cod: Selectaţi tot

#########################################################################################
   ## Emoticon
   EmoticonStr = "d:/ymir work/effect/etc/emoticon/"

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+0, "", EmoticonStr+"sweat.mse")
   net.RegisterEmoticonString("(Ȳ´ç)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+1, "", EmoticonStr+"money.mse")
   net.RegisterEmoticonString("(µ·)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+2, "", EmoticonStr+"happy.mse")
   net.RegisterEmoticonString("(±â»Ý)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+3, "", EmoticonStr+"love_s.mse")
   net.RegisterEmoticonString("(ÁÁ¾Æ)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+4, "", EmoticonStr+"love_l.mse")
   net.RegisterEmoticonString("(»ç¶û)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+5, "", EmoticonStr+"angry.mse")
   net.RegisterEmoticonString("(ºÐ³ë)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+6, "", EmoticonStr+"aha.mse")
   net.RegisterEmoticonString("(¾ÆÇÏ)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+7, "", EmoticonStr+"gloom.mse")
   net.RegisterEmoticonString("(¿ì¿ï)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+8, "", EmoticonStr+"sorry.mse")
   net.RegisterEmoticonString("(Á˼Û)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+9, "", EmoticonStr+"!_mix_back.mse")
   net.RegisterEmoticonString("(!)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+10, "", EmoticonStr+"question.mse")
   net.RegisterEmoticonString("(?)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+11, "", EmoticonStr+"fish.mse")
   net.RegisterEmoticonString("(fish)")


Si inlocui cu >

Cod: Selectaţi tot

#########################################################################################
   ## Emoticon
   EmoticonStr = "d:/ymir work/effect/etc/emoticon/"
   BuffStr = "d:/ymir work/effect/etc/buff/"

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+0, "", EmoticonStr+"sweat.mse")
   net.RegisterEmoticonString("(Ȳ´ç)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+1, "", EmoticonStr+"money.mse")
   net.RegisterEmoticonString("(µ·)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+2, "", EmoticonStr+"happy.mse")
   net.RegisterEmoticonString("(±â»Ý)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+3, "", EmoticonStr+"love_s.mse")
   net.RegisterEmoticonString("(ÁÁ¾Æ)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+4, "", EmoticonStr+"love_l.mse")
   net.RegisterEmoticonString("(»ç¶û)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+5, "", EmoticonStr+"angry.mse")
   net.RegisterEmoticonString("(ºÐ³ë)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+6, "", EmoticonStr+"aha.mse")
   net.RegisterEmoticonString("(¾ÆÇÏ)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+7, "", EmoticonStr+"gloom.mse")
   net.RegisterEmoticonString("(¿ì¿ï)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+8, "", EmoticonStr+"sorry.mse")
   net.RegisterEmoticonString("(Á˼Û)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+9, "", EmoticonStr+"!_mix_back.mse")
   net.RegisterEmoticonString("(!)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+10, "", EmoticonStr+"question.mse")
   net.RegisterEmoticonString("(?)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+11, "", EmoticonStr+"fish.mse")
   net.RegisterEmoticonString("(fish)")
   
   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+12, "", BuffStr+"buff_item1.mse")
   net.RegisterEmoticonString("(b1)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+13, "", BuffStr+"buff_item2.mse")
   net.RegisterEmoticonString("(b2)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+14, "", BuffStr+"buff_item3.mse")
   net.RegisterEmoticonString("(b3)")

   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+15, "", BuffStr+"buff_item4.mse")
   net.RegisterEmoticonString("(b4)")
   
   chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+16, "", BuffStr+"buff_symbol1.mse")
   net.RegisterEmoticonString("(b5)")


Inchidem si salvam iar apoi trecem la pasul 8:

Deschidem game.py (tot in root) si:

Cautam linia:

Cod: Selectaţi tot

"mall"         : self.__InGameShop_Show,


Si inlocuim cu :

Cod: Selectaţi tot

"mall"         : self.__InGameShop_Show,
         "buff1" : self.__buff1,
         "buff2" : self.__buff2,
         "buff3" : self.__buff3,
         "buff4" : self.__buff4,
         "buff5" : self.__buff5,


Tot in game.py cautam linia>

Cod: Selectaţi tot

  def AskSafeboxPassword(self):
      self.interface.AskSafeboxPassword()


Si o inlocuim cu :

Cod: Selectaţi tot

ef AskSafeboxPassword(self):
      self.interface.AskSafeboxPassword()
   #Buff
   
   def __buff1(self):
      net.SendChatPacket("(b1)")
   def __buff2(self):
      net.SendChatPacket("(b2)")
   def __buff3(self):
      net.SendChatPacket("(b3)")
   def __buff4(self):
      net.SendChatPacket("(b4)")
   def __buff5(self):
      net.SendChatPacket("(b5)")
   
   # End Buff


Iesim din game.py si salvam iar apoi...

9. Mergem in uicat.py , cautam linia :

Cod: Selectaţi tot

def __SendChatPacket(self, text, type):
#      if text[0] == '/':
#         if ENABLE_CHAT_COMMAND or constInfo.CONSOLE_ENABLE:
#            pass
#         else:
#            return

      if net.IsChatInsultIn(text):
         chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
      else:
         net.SendChatPacket(text, type)


Si punem:

Cod: Selectaţi tot

def __SendChatPacket(self, text, type):
      if text == "(b1)":
         return
      if text == "(b2)":
         return
      if text == "(b3)":
         return
      if text == "(b4)":
         return
      if text == "(b5)":
         return
      elif net.IsChatInsultIn(text):   
         chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
      else:
         net.SendChatPacket(text, type)


Acum am terminat cu root, deci impachetam root.epk/eix si il punem inapoi in client.

10. Despachetam icon.epk/eix si adaugam in: icon/item urmatoarele(download):
Trebuie să fii logat sau înregistrat pentru a vedea acest link.
apoi punem XML`urile:

Cod: Selectaţi tot

<File archivedPath="icon/item/71130.tga" type="1"><![CDATA[extracted\icon\icon\item\71130.tga]]></File>
      <File archivedPath="icon/item/71135.tga" type="1"><![CDATA[extracted\icon\icon\item\71135.tga]]></File>
      <File archivedPath="icon/item/71143.tga" type="1"><![CDATA[extracted\icon\icon\item\71143.tga]]></File>
      <File archivedPath="icon/item/71145.tga" type="1"><![CDATA[extracted\icon\icon\item\71145.tga]]></File>
      <File archivedPath="icon/item/71158.tga" type="1"><![CDATA[extracted\icon\icon\item\71158.tga]]></File>

11. NE CONECTAM LA Baza de Date, navicat in general, mergem in player/item_proto tastam ctrl+q si inseram codurile:

Cod: Selectaţi tot

INSERT INTO `item_proto` VALUES (71135, 'ČŔú˝ĹŔ', 'Inel Semiluna', 16, 2, 0, 1, 33024, 9216, 128, '', 0, 0, 0, 0, 0, 0, 1, 20, 0, 0, 0, 0, 0, 0, 0, 0, 420, 0, 0, 0, 0, 0, 0, 127, 127, 127, 127, 127, 0, 0, 0);
INSERT INTO `item_proto` VALUES (71136, '�ҷ��� ����', 'Acadea', 16, 2, 0, 1, 33024, 9216, 128, '', 0, 0, 0, 0, 0, 0, 1, 20, 0, 0, 0, 0, 0, 0, 0, 0, 420, 0, 0, 0, 0, 0, 0, 127, 127, 127, 127, 127, 0, 0, 0);
INSERT INTO `item_proto` VALUES (71143, '�ູ�� ����', 'Inelul Bucuriei', 16, 2, 0, 1, 33024, 9216, 128, '', 0, 0, 0, 0, 0, 0, 1, 20, 0, 0, 0, 0, 0, 0, 0, 0, 420, 0, 0, 0, 0, 0, 0, 127, 127, 127, 127, 127, 0, 0, 0);
INSERT INTO `item_proto` VALUES (71145, '������ ����� �Ҵ�Ʈ', 'Amuleta Dragostei Eterne', 16, 2, 0, 1, 33024, 9216, 128, '', 0, 0, 0, 0, 0, 0, 1, 20, 0, 0, 0, 0, 0, 0, 0, 0, 420, 0, 0, 0, 0, 0, 0, 127, 127, 127, 127, 127, 0, 0, 0);
INSERT INTO `item_proto` VALUES (71158, '������ ��ǥ', 'Medalia Eroilor', 16, 2, 0, 1, 33024, 9216, 128, '', 0, 0, 0, 0, 0, 0, 1, 20, 0, 0, 0, 0, 0, 0, 0, 0, 420, 0, 0, 0, 0, 0, 0, 127, 127, 127, 127, 127, 0, 0, 0);


Dam run si save si iesim din db apoi mergem in filezilla!
12.Deschidem filezilla mergem in dosarul quest si punem in el urmatoarele fisiere(download):
Trebuie să fii logat sau înregistrat pentru a vedea acest link.
Dupa ce am pus dam permisiunile la 777, intram in consola bagam cd...dosar iar apoi qc.numequest.quest si reboot!
ACUM AR TREBUI SA VA FIE FUNCTIONALE CU TOT CU EFECTE!(daca nu... reluatii pasi posibil sa fi gresit voi sau se poate ca eu sa fi gresit,... va rog sa ma anuntati)
Imagini: Imagine
Imagine
Imagine
Questul :

Cod: Selectaţi tot

----------------------------------
--  Medalia Eroului
--  Misiune Speciala
--  Facuta de alexXxX
----------------------------------
quest medalia_eroului begin
        state start begin
         when login and game.get_event_flag("olimpiada") ==1  begin
   set_state("informacion")
  end
end
state informacion begin
         when letter begin
          send_letter("Medalia Eroului")
   local v=find_npc_by_vnum(20017)
   if 0==v
   else
           target.vid("__TARGET__", v, "Medalia Eroului")
   end
  end
  when button or info begin
   say("Yu-Hwan are nevoie de ajutorul tau. Du-te sa-l vezi!")
   say("Il gasesti in al doilea oras.")
  end
  when __TARGET__.target.click or
          20017.chat."Medalia Eroului" begin
   target.delete("__TARGET__")
   say_title("Yu-Hwan")
   say("Ajutor!")
   say("Mizerabila banda de hoti...")
   say("Aseara mi-au intrat in casa!")
   say("Au furat Medalia Eroului. Un urmas de-al")
   say("meu a primit-o dupa ce a parcurs")
   say("42195 km de pe campul de lupta")
   say("pana a ajus sa-i comunice monarhului")
   say("victoria.")
   say("Si acum a disparut!")
   wait()
   say_title("Yu-Hwan")
   say("La naiba... pentru familia mea are")
   say("o valoare incalculabila. Ce fac acum?")
   say("Ma vei ajuta?")
   local s=select("Da","Nu" )
   if 2==s then
        say("Chiar vrei sa anulezi aceasta munca?")
        say("Daca acum alegi "Da" nu te vei")
        say("mai putea intoarce.")
        local a=select("Da","Nu")
        if  2==a then
         say_title("Yu-Hwan")
         say("Inteleg ca acum nu ai timp.")
         say("Revino cand o sa ai. Dar")
         say("nu ma fa sa astept mult!")
         return
        end
        say_title("Yu-Hwan")
        say("Cred ca ai venit prea tarziu")
        say("si nu ma mai poti ajuta. Iti urez")
        say("tot binele in drumul tau!")
        set_state(__GIVEUP__)
        return
   end
   say_title("Yu-Hwan")
   say("Omoara monstrii care m-au furat! Dr")
   say("ai grija: eram puternic, minim")
   say("nivel 30. Daca imi aduci inapoi Medalia")
   say("Eroului te voi rasplati pe masura!")
   set_state(Medalla_Héroe)
   end
  end
  state Medalla_Héroe begin
   when letter begin   
        if pc.count_item("30265")>=1 and pc.count_item("30266")>=1 and pc.count_item("30267")>=1 and pc.count_item("30268")>=1 and pc.count_item("30269")>=1 then
         send_letter("eram muy fuerte")
         local v=find_npc_by_vnum(20017)
         if 0!= v then
          target.vid("__TARGET__",v,"Inapoi la Yu-Hwan")
         end
         return
        end 
        send_letter("Medalia del Eroului")
   end
   when info or button begin
        if pc.count_item("30265")>=1 and pc.count_item("30266")>=1 and pc.count_item("30267")>=1 and pc.count_item("30268")>=1 and pc.count_item("30269")>=1 then
         say("Gaseste Medalia Eroului si da-i-o")
         say("lui Yu-Hwan.")
         return
        end
        say("Gaseste Medalia Eroului si da-i-o")
        say("lui Yu-Hwan.")
   end
 
   when kill begin
                        local m_ind = pc.get_map_index()
                        else
                                if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 30 then
                                        if game.get_event_flag("olimpiadas") == 1 then
               
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30265")==0  then
         pc.give_item2(30265, 1)-- Fragment de Medalie (1) 
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30266")==0  then
         pc.give_item2(30266, 1) -- Fragment de Medalie (2)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30267")==0  then
         pc.give_item2(30267, 1) -- Fragment de Medalie (3)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30268")==0  then
         pc.give_item2(30268, 1) -- Fragment de Medalie (4)
         return
        end
 
                                elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 40 then
                                        if game.get_event_flag("olimpiadas") == 1 then
                                         
          local s = number(1, 100)
        if s <= 5 and pc.count_item("30265")==0  then
         pc.give_item2(30265, 1)-- Fragment de Medalie (1) 
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30266")==0  then
         pc.give_item2(30266, 1) -- Fragment de Medalie (2)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30267")==0  then
         pc.give_item2(30267, 1) -- Fragment de Medalie (3)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30268")==0  then
         pc.give_item2(30268, 1) -- Fragment de Medalie (4)
         return
        end
                                elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 60 then
                                        if game.get_event_flag("olimpiadas") == 1 then
                                         
          local s = number(1, 100)
        if s <= 5 and pc.count_item("30265")==0  then
         pc.give_item2(30265, 1)-- Fragment de Medalie (1) 
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30266")==0  then
         pc.give_item2(30266, 1) -- Fragment de Medalie (2)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30267")==0  then
         pc.give_item2(30267, 1) -- Fragment de Medalie (3)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30268")==0  then
         pc.give_item2(30268, 1) -- Fragment de Medalie (4)
         return
        end
                                elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 70 then
                                        if game.get_event_flag("olimpiadas") == 1 then
                                         
          local s = number(1, 100)
        if s <= 5 and pc.count_item("30265")==0  then
         pc.give_item2(30265, 1)-- Fragment de Medalie (1) 
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30266")==0  then
         pc.give_item2(30266, 1) -- Fragment de Medalie (2)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30267")==0  then
         pc.give_item2(30267, 1) -- Fragment de Medalie (3)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30268")==0  then
         pc.give_item2(30268, 1) -- Fragment de Medalie (4)
         return
        end
                                elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 90 then
                                        if game.get_event_flag("olimpiadas") == 1 then
                                         
          local s = number(1, 100)
        if s <= 5 and pc.count_item("30265")==0  then
         pc.give_item2(30265, 1)-- Fragment de Medalie (1) 
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30266")==0  then
         pc.give_item2(30266, 1) -- Fragment de Medalie (2)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30267")==0  then
         pc.give_item2(30267, 1) -- Fragment de Medalie (3)
         return
        end
 
        local s = number(1, 100)
        if s <= 5 and pc.count_item("30268")==0  then
         pc.give_item2(30268, 1) -- Fragment de Medalie (4)
         return
        end
                        end
                end
 
  when __TARGET__.target.click or
          20017.chat."Medalia Eroului" begin
   target.delete("__TARGET__")
   say_title("Yu-Hwan")
   say("In sfarsit! Te-ai intors!")
   say("Ai gasit Medalia Eroului?")
 
   if pc.count_item(30265)>=1 and pc.count_item(30266)>=1 and  pc.count_item(30267) >= 1 and pc.count_item(30268)
        say_title("Yu-Hwan")
        say("Acesti hoti blestemati au distrus")
        say("patrimoniul meu pretios!")
        say("Iti multumesc foarte mult pentru ca ai gasit")
        say("toate fragmentele. Acum ma pot intoarce")
        say("sa le unesc pe toate.")
        wait()
        say_title("Yu-Hwan")
        say("Multumiri! Ai restaurat onoarea")
        say("familiei mele.")
        say("Eforturile tale nu au fost")
        say("degeaba. Aici ai recompensa ta!")
        say_item_vnum("71158")
        say_item_vnum("71159")
        pc.remove_item(30265,1)
        pc.remove_item(30266,1)
        pc.remove_item(30267,1)
        pc.remove_item(30268,1)
        pc.give_item2(71158)
        pc.give_item2(71159)
        clear_letter()
        set_state(__COMPLETE__)
   end
   else
        say_title("Yu-Hwan")
        say("Ai gasit Medalia mea!")
        say("Dar stai... asta este doar un fragment. ¡Ce")
        say("infamie, au distrus-o in 5!")
        say("Te rog, adu-mi toate fragmentele! Poate")
        say("le pot uni si reface Medalia!")
        return
   end
  end
end
state __GIVEUP__ begin
end
stat __COMPLETE__ begin
end
end


SUCCES !

Daca te-am ajutat, un thx nu strica..!
Imagine

Înapoi la “Quest-uri”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 4 vizitatori