This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
AdBlock Extension Detected!
Our website is made possible by displaying online advertisements to our members.
Please disable AdBlock browser extension first, to be able to use our community.
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