Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo.
Caso seja registrado, efetue login.
Esqueceu sua senha? Clique aqui
Recomendamos o uso do Mozilla Firefox para uma melhor visualização.    


Início Postados Hoje Marcar Fóruns Como Lidos Álbums Banidos SE Team Medalhas
Voltar   Secret Experience > Área L2J > [L2J] Tutoriais
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

 
 
Ferramentas do Tópico Modos de Exibição
Prev Post Anterior   Próximo Post Next
Antigo 14-02-2011, 07:38 PM   #1
Quest Mimi's Elixir
73n3br0s0 73n3br0s0 está offline 14-02-2011, 07:38 PM

Bom Galera To aqui pra passa 1 pouco do que eu aprendi aqui no fórum,é a quest Mimir's Elixir,e serve para muitos servidores Medium e ate High rate.
Para aqueles que gostão de dificultar um pouco seus servidores.
Passei muito tempo tentando descobrir de como criar 1 servidor Medium Rate,como quest de sub classe reduzida e nobles inteira.
Bom vamos ao que interessa.

aqui o codigo vocês coloquem na pasta quest/235_MimirsElixir.

Código PHP: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
import sys
from net
.sf.l2j.gameserver.model.quest import State
from net
.sf.l2j.gameserver.model.quest import QuestState
from net
.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
from net
.sf.l2j.gameserver.model.base import Race
#Quest info
qn "235_MimirsElixir"
QUEST_NUMBER,QUEST_NAME,QUEST_DESCRIPTION 235,"MimirsElixir","Mimir's Elixir"

DROP_RATE 20

#prerequisites:
STAR_OF_DESTINY 5011
MINLEVEL 
75

#Quest items
PURE_SILVER 6320
TRUE_GOLD 
6321
SAGES_STONE 
6322
BLOOD_FIRE 
6318
MIMIRS_ELIXIR 
6319

SCROLL_ENCHANT_WEAPON_A 
729

#NPCs
LADD,JOAN=30721,30718
#Mobs, cond, Drop
DROPLIST = {
20965: [3,SAGES_STONE],   #Chimera Piece
21090: [6,BLOOD_FIRE]    #Bloody Guardian
}

class 
Quest (JQuest) :
 
 
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
 
 
def onEvent (self,event,st) :
    if 
event == "1" :
        
st.setState(State.STARTED)
        
st.set("cond","1")
        
htmltext "30166-02a.htm"
    
elif event == "30718_1" :
        
st.set("cond","3")
        
htmltext "30718-01a.htm"
    
return htmltext
 
 def onTalk 
(self,npc,player):
    
htmltext "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"
    
st player.getQuestState(qn)
    if 
not st : return htmltext

    npcId 
npc.getNpcId()
    
id st.getState()
    
cond st.getInt("cond")
    if 
npcId == LADD :
        if 
id == State.CREATED :
            
st.set("cond","0")
            if 
player.getLevel() < MINLEVEL :
                
st.exitQuest(1)
                
htmltext "30166-01.htm"     #not qualified
            
elif not st.getQuestItemsCount(STAR_OF_DESTINY) :
                
st.exitQuest(1)
                
htmltext "30166-01a.htm"     #not qualified
            
elif st.getInt("cond")==:
                
htmltext "30166-02.htm"    # Successful start: Bring me Pure silver from Reagents quest
        
elif id == State.COMPLETED :
            
htmltext "<html><body>You have already completed this quest.</body></html>"
        
# was asked to get pure silver but has not done so yet.  Repeat: get pure silver
        
elif cond==and not st.getQuestItemsCount(PURE_SILVER) :
            
htmltext "30166-03.htm"    # Bring me Pure silver from Reagents quest
        # got the pure silver and came back.  Ask for TrueGold.
        
elif cond==and st.getQuestItemsCount(PURE_SILVER) :
            
st.set("cond","2")
            
htmltext "30166-04.htm"    # Bring me True Gold from Joan
        
elif 1<cond<:
            
htmltext "30166-05.htm"    # Where is my GOLD?!  Bring to me first.
        # got the true gold...look for Blood fire
        
elif cond==:
            
st.set("cond","6")
            
htmltext "30166-06.htm"    # find Blood Fire from "bloody guardians"
        # still looking for blood fire?
        
elif cond==:
            
htmltext "30166-07.htm"    # find Blood Fire from "bloody guardians"
        # Ah, you got the blood fire!  Time to mix them up!
        
elif cond==and st.getQuestItemsCount(PURE_SILVER) and st.getQuestItemsCount(TRUE_GOLD):
            
htmltext "30166-08.htm"     # what are you standing there for?  Go to the cauldron and mix them...
        # you idiot, how did you lose your quest items?
        
elif cond==:   
            
htmltext "30166-09.htm"     # Well...you already know what to do...go get the 3 items...
            
st.set("cond","3")          # start over...yay...
        # cond for this quest is set to 8 from Supplier or Reagents, when you create Mimir's Elixir.
        # Finally, all is done...time to learn how to use the Elixir...
        
elif cond==:
            
htmltext "30166-10.htm"     # here's what you do...
            
st.takeItems(MIMIRS_ELIXIR,-1)  #remove this line for compatibility with L2JServer revisions prior to 376
            
st.giveItems(SCROLL_ENCHANT_WEAPON_A,1)
            
st.giveItems(STAR_OF_DESTINY,2)
            
st.giveItems(MIMIRS_ELIXIR,3)
            
st.exitQuest(False)
            
st.unset("cond")
    
elif npcId == JOAN and id == State.STARTED:
       
# first time talking to Joan: You ask for True Gold, she sends you for Sage's stone
        
if cond==:
            
htmltext "30718-01.htm"      # You want True Gold?  Please get the sage's stone.  Kill Chimera!
        # Why are you back alraedy?  You don't have the stone.
        
elif cond==:
            
htmltext "30718-02.htm"     # you haven't gotten the sage's stone yet?
        # aha!  Here is the sage's stone!  Cool, now we can make true gold
        
elif cond==:
            
st.takeItems(SAGES_STONE,-1)
            
st.giveItems(TRUE_GOLD,1)
            
st.set("cond","5")
            
htmltext "30718-03.htm"     # here you go...take the gold.  Now go back to ladd.
        
elif cond>=:
            
htmltext "30718-04.htm"     # Go back to ladd already!
    
return htmltext
 
 def onKill
(self,npc,player,isPet):
     
st player.getQuestState(qn)
     if 
not st : return 
     if 
st.getState() != State.STARTED : return 
   
     
npcId npc.getNpcId()
     
drop st.getRandom(100)
     
cond st.getInt("cond")
     
dropcond DROPLIST[npcId][0]
     if 
drop DROP_RATE and cond == dropcond :
        if 
st.getQuestItemsCount(DROPLIST[npcId][1]) == :
            
st.giveItems(DROPLIST[npcId][1],1)
            
st.playSound("ItemSound.quest_itemget")
            
st.set("cond",str(cond+1))
     return

# Quest class and state definition
QUEST       Quest(QUEST_NUMBERqnQUEST_DESCRIPTION)


# Quest NPC starter initialization
QUEST.addStartNpc(LADD)
# Quest initialization
QUEST.addTalkId(LADD)
QUEST.addTalkId(JOAN)

for 
i in DROPLIST.keys():
  
QUEST.addKillId(i

Aii despois e so deixar assim no seu altsettings.properties



#-------------------------------------------------------------
# Skills config
#-------------------------------------------------------------
# Allow players to change occupation via Npc Class Master
# If you need change occupation only use quest then set them to False
AllowClassMasters = True

# Spell Book needed to learn skills
SpBookNeeded = True

# Alternative skill learn rules:
# - all classes can learn all skills
# - skills of another class costs x2 SP
# - skills of another race costs x2 SP
# - skills of fighters/mages costs x3 SP
AltGameSkillLearn = False

# Allow player sub-class addition without checking for unique quest items.
AltSubClassWithoutQuests = false

# This option allows a player to get a subclass with only the Star of Destiny, and Mimir's Elixir.
SubclassWithItemAndNoQuest = True



Dai é so você colocar os 3 itens "Star of Destiny,Lunargent e Quiksilver" para vender ou um craft bem rapido.
Bom é so isso,não esqueçam de agradecer.

Arquivos Anexados
Tipo de Arquivo: txt code.txt (5.7 KB, 30 visualizações) Baixar


 
Avatar de 73n3br0s0
73n3br0s0
Membro - Capitão
Registrado em: Jan 2009
Posts: 117
Visitas: 698
Os Seguintes 3 Usuários disseram Obrigado(a) para 73n3br0s0 por gostarem deste post :
KIREDRAGOM (01-03-2011)
Links Patrocinados
 


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não

Ir para...


Horários baseados na GMT -3. Agora são 11:35 PM.