is check for pvps , but i dont know how to add the second,
i m unskiled for java and i m searching for hours to find solution but i cant ...
as u see in code have check for pvp count,
>=20
i need also 1 check about time to able this quest to be done every 24hours
can u some write me check for time & pvp ?
def onTalk (self,npc,player):
htmltext = "<html><body>You are either not carrying out your quest or don't meet the criteria.</body></html>"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getNpcId()
id = st.getState()
Pvp = player.getPvpKills()
cond = st.getInt("cond")
if id == CREATED :
if Pvp>=20 :
htmltext = "30078-01.htm"
else:
htmltext = "<html><body>This quest can only be taken by characters PvP count is more than 200 and higher!</body></html>"
st.exitQuest(1)
Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects.
If you are interested in anything like Adena, Coins, Equip, write to us
Discord - pchelacoin
Telegram - https://t.me/ipchelacoin
BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM
TOP PRICE !!!!!!!
Question
GsL
Hello there!!
I try to edit one quest and i need 2 check ,
1 check is working fine
is check for pvps , but i dont know how to add the second,
i m unskiled for java and i m searching for hours to find solution but i cant ...
as u see in code have check for pvp count,
i need also 1 check about time to able this quest to be done every 24hours
can u some write me check for time & pvp ?
def onTalk (self,npc,player): htmltext = "<html><body>You are either not carrying out your quest or don't meet the criteria.</body></html>" st = player.getQuestState(qn) if not st : return htmltext npcId = npc.getNpcId() id = st.getState() Pvp = player.getPvpKills() cond = st.getInt("cond") if id == CREATED : if Pvp>=20 : htmltext = "30078-01.htm" else: htmltext = "<html><body>This quest can only be taken by characters PvP count is more than 200 and higher!</body></html>" st.exitQuest(1)26 answers to this question
Recommended Posts