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.
# 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());
}
📢 OBT Success – Get Ready for Launch: November 28!!
The Open Beta was an absolute blast!
Over 160+ Master Accounts successfully claimed their reward from The Judge, proving once again how strong and loyal this community truly is.
🔥 Missed the event?
Don’t worry — because so many players asked for another chance, we will host an additional Event very soon! Stay tuned for details.
Community Growth
We’ve already surpassed 500 Master Accounts registered on our forums — and the numbers keep rising every hour.
It feels like the old days… the same energy, the same hype, the same love for Lineage II.
Let’s rebuild L2Elixir the way we remember it:
No shortcuts, no nonsense — just pure old nostalgic gameplay, community spirit, and that classic adventure we all grew up with.
✨ The journey continues…
Launch: November 28, 21:00 UTC+2
Be there when the legend returns.
🔗 Website: https://l2elixir.org/
💬 Discord: https://discord.gg/5ydPHvhbxs
Question
iDSL
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.
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now