Jump to content

iDSL

Members
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by iDSL

  1. Has made guards on outposts at everyone race the. Has made by analogy with guards fortresses only has cleaned checks on fortress clans etc. But guards don't attack the character simply agrlist all time empty at them. AI, Instance, knownlist, the manager is started at start of a current and spawn posts: http://rghost.ru/37070011
  2. Hi all. The problem such each of races can grasp posts and GK should display and move on those posts which are grasped by the given race. I could implement only display at attempt to be moved nothing happens. http://s019.radikal.ru/i612/1203/96/57c980c37841.bmp Quest GK # Created by Ham Wong on 2007.02.28 import sys from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gameserver.model.quest import QuestState from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest qn = "10001_RaceTeleport" #print "10001. Race Teleport" NPC=[30006,30059,30080,30134,30146,30177,30233,30256,30320,30540,30576,30836,30848,30878,30899,31275,31320,31964] class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onTalk (Self,npc,player): st = player.getQuestState(qn) if player.isNoble() == 1 : htmltext=player.getPost() else : htmltext=player.getPost() st.exitQuest(1) return htmltext QUEST = Quest(10001, qn, "Teleports") CREATED = State('Start', QUEST) QUEST.setInitialState(CREATED) for item in NPC: QUEST.addStartNpc(item) QUEST.addTalkId(item) From a core L2PcInstance: public String getPost(){ return OutpostManager.getOutpostRace(getRaceINT()); } OutpostManager: public static String getOutpostRace(int race){ String postlist="<html><body>\n&$556;<br><br>"; if(_outpost!=null){ for(Outpost post:_outpost){ if(post.getOwned()==race){ postlist+="\n<a action=\"bypass -h npc_%objectId%_goto "+post.getPort()+"\" msg=\"811;"+post.getName()+"\">"+post.getName()+"</a><br1>"; } } } if(postlist.equalsIgnoreCase("<html><body>&$556;<br><br>")){ postlist+="Нету захваченных постов"; } else{ postlist+= "\n</body></html>"; } System.out.print(postlist); return postlist; } Assembly L2jFrozen in the table teleport is added point ТП from Ides 80000. If the information is required still I will give.
×
×
  • Create New...

Important Information

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.

I've Disabled AdBlock