Jump to content
  • 0

[HELP] instances


sancak

Question

is there any guide for creating new instances i search but cant found a good guide thanx

 

 

my problem is : i cant take a party or a clan to an instance what is problem or what should i do

   1.  def onTalk (self,npc,player):
   2. st = player.getQuestState(qn)
   3. npcId = npc.getNpcId()
   4. party = player.getParty()
   5. if not party :
   6. html = "5000-01.htm"
   7. else :
   8. have_quest = False
   9. wrong_Level = False
  10. for partyMember in party.getPartyMembers().toArray() :
  11. pst = partyMember.getQuestState("Hisar")
  12. if pst : have_quest = True
  13. if partyMember.getLevel() < 60 or partyMember.getLevel() > 80 :
  14. wrong_Level = True
  15. player_name = partyMember.getName()
  16. if not have_quest :
  17. html = "5000-02.htm"
  18. elif player != party.getLeader() :
  19. party.broadcastToPartyMembers(SystemMessage(2185))
  20. html = "5000-03.htm"
  21. elif wrong_Level :
  22. party.broadcastToPartyMembers(SystemMessage(2097).addString(player_name))
  23. html = "5000-03.htm"
  24. else :
  25. for partyMember in party.getPartyMembers().toArray() :
  26. enterInstance(self, player, "Hisar.xml", tele)
  27. st.playSound("ItemSound.quest_middle")
  28. partyMember.teleToLocation(157041, 53662, -3264)
  29. html = ""
  30.  

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

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.

I've Disabled AdBlock