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..
Question
janiko
Hi, i was writing Seven Signs quest but onFirstTalk function i stuck.
when i talk to npc example :
npcId == WestTeleportControlDevice
it shows me exact html what is written onFirstTalk function but,
when i press to teleport button it has no reaction.
Bypass of html
<a action="bypass -h Quest ToTheMonastery TeleWest">Move to West Watcher's Room</a>
i have written TeleWest function to teleport on exact cordinates, but no reaction,
hope mxc will help
@Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { int npcId = npc.getNpcId(); if(npcId == WestTeleportControlDevice) return "32816-01.htm"; else if(npcId == NorthTeleportControlDevice) return "32817-01.htm"; else if(npcId == EastTeleportControlDevice) return "32818-01.htm"; else if(npcId == SouthTeleportControlDevice) return "32819-01.htm"; for(int[] d : desks) if(Util.ArrayContains(d, npcId)) { if(npcId == d[0]) return npcId + "-01.htm"; else return "empty_desk.htm"; } return null; }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