Jump to content
  • 0

Pailaka 73 Injured Dragon --Freya Ct2.5


Question

Posted

I got the pack in a previous thread: http://www.maxcheaters.com/topic/170431-pailaka-73-injured-dragon-freya-ct25/

 

There is at least one issue: the file 32499-over.htm contains:

<html><body>肯特拉獸人巫師:<br>
你在這個世界也已經是個馳名的勇士!這種事情不值得告訴你這麼傑出的人!<br>
(只有等級77以下的角色,才可以執行的任務。)<br>
<center><font color="FF0000">(任務尚未實裝!)</font></center>
</body></html>
This translates to (per Google):
 
<html><body>Kente La orc shaman.<br>
You also have in this world is a famous warrior! This kind of thing is not worth telling you such a distinguished man!<br>
(Only Level 77 the following roles can perform tasks.)<br>
<center><font color="FF0000">(Task is not real equipment!)</font></center>
</body></html>

Then also in 32499-no.htm:

<html><body>肯特拉獸人巫師:<br>
你還沒有資格去了解那偉大的肯特拉,以及其守護靈-赤龍一族的事情!<br>
(只有等級73以上的角色,才可以執行的任務。)<br>
<center><font color="FF0000">(功能尚未實裝!)</font></center>
</body></html>
Which is something about the feature not being implemented. I wanted to know if anyone has the English translations on these?
 
Also in the python init script:
 
def onTalk (self,npc,player) :
   npcId = npc.getNpcId()
   htmltext = "<html><body>¥Ø«e¨S¦³°õ¦æ¥ô°È¡A©Î±ø¥ó¤£²Å¡C</body></html>"
   st = player.getQuestState(qn)
   if not st: return htmltext
   id = st.getState()
   if id == State.CREATED :
     st.set("cond","0")
   if npcId == 32499 and st.getInt("cond") == 0  :
     if st.getPlayer().getLevel() >= 77 :
       htmltext = "32499-00.htm"
       st.exitQuest(1)
     else :
       htmltext = "32499-01.htm"
       st.exitQuest(1)
   return htmltext

QUEST       = Quest(144,qn,"µá©Ô¥d-¨ü¶ËªºÀs")
There is also a bit of this in the java file which isn't working out well. I checked the HI5 SVN and this quest is not implemented there. 
 
Any help is greatly appreciated.

11 answers to this question

Recommended Posts

  • 0
Posted

Ok, so when I make a new character, accept the quest, and choose to enter, I get a message in the system message window that says "Enter" and nothing happens. 

 

When I talk to him again, it says "No Quests for you".

 

I added the following to scripts.cfg:

instances/Pailaka/PailakaInjuredDragon.java
quests/144_PailakaInjuredDragon/__init__.py
 
 
The quest text is now correct leading up to the entry point, but thats it. 
 
Anybody have a clue or can point me in the right direction?
  • 0
Posted

Any error in console?

 

Debug the onAdvEvent method and check console

 

public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
	{
+System.out.println("event");
		final QuestState st = player.getQuestState(qn);
		if (st == null)
			return EMPTY;

		final int cond = st.getInt("cond");
+System.out.println("nullpass");
		if (event.equalsIgnoreCase("enter"))
		{
+System.out.println("entering");
			enterInstance(player);
			return null;
		}
  • 0
Posted

No messages printed to the logs, just the last line `telnet server is currently disabled` that is present from server start. 

 

Here is the relevant bits from the PailakaInjuredDragon.java file:

# grep -13 onAdvEvent game/data/scripts/instances/Pailaka/PailakaInjuredDragon.java
                {
                        final int instanceId = InstanceManager.getInstance().createDynamicInstance("PailakaInjuredDragon.xml");

                        world = new InstanceWorld();
                        world.instanceId = instanceId;
                        world.templateId = INSTANCE_ID;
                        InstanceManager.getInstance().addWorld(world);

                        world.allowed.add(player.getObjectId());
                        teleportPlayer(player, TELEPORT, instanceId);
                }
        }

        public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
        {
        System.out.println("event");
                final QuestState st = player.getQuestState(qn);
                if (st == null)
                        return EMPTY;

                final int cond = st.getInt("cond");
        System.out.println("nullpass");
                if (event.equalsIgnoreCase("enter"))
                {
        System.out.println("entering");
                        enterInstance(player);
                        return null;

  • 0
Posted

To add: when I try to enter it just sends the text "Enter" similar to this image:

 

http://puu.sh/24TgG

 

If I talk to the NPC again or choose "go later" and talk to him again his text is "No quest for you". 

 

It used to look like the image above, but I've been messing with this so much now that I can't remember what resolved that. Probably due to having Windows line endings in the file. 

  • 0
Posted

I think there is a mess in these files hmm... the quest/ file seems useless since the one inside instances/ it's already the quest.

Try removing it.

  • 0
Posted

That worked! Do you happen to know what I need to do to make the Silenos aggro, spawn the caster when killed, and teleport the player back when they try to run through? 

 

I am guessing that is all added to the npc table for the gameserver database?

  • 0
Posted

I have the following code in the java file for the instance:

public PailakaInjuredDragon(int questId, String name, String descr) {
super(questId, name, descr);
addStartNpc(KETRA_ORC_SHAMAN);
for (int npcId : NPCS)
addTalkId(npcId);

addKillId(LATANA);
for (int mobId : MONSTERS)
addKillId(mobId);

Nothing spawns when anything is killed. Any clue as to what needs to be done to correct this>?

  • 0
Posted

I found the following, but not sure if this is as simple as the function should be:

567	        public PailakaInjuredDragon(int questId, String name, String descr) 
568	        {
569	                super(questId, name, descr);
570	                addStartNpc(KETRA_ORC_SHAMAN);
571	                for (int npcId : NPCS)
572	                {
573	                        addFirstTalkId(npcId);
574	                        addTalkId(npcId);
575	                }
576	                addKillId(LATANA);
577	                for (int mobId : OTHER_MONSTERS)
578	                        addKillId(mobId);               
579	                addAggroRangeEnterId(LATANA);
580	                // Add aggro acting on main mobs
581	                for (int mobId : WALL_MONSTERS)
582	                {
583	                        addAggroRangeEnterId(mobId);   
584	                        addSpawnId(mobId);
585	                        addKillId(mobId);
586	                }
587	               
588	                addExitZoneId(ZONE);
589	                questItemIds = ITEMS;
590	        }
  • 0
Posted

I got the skills for the mobs in there:

UPDATE npc SET aggro=900 WHERE id IN (18635, 18636, 18642, 18646, 18654, 18653, 18649, 18650, 18655, 18657, 18659, 18644, 18641, 18640, 18648, 18645, 18658, 18656, 18652);
UPDATE npcaidata SET clan='pailaka_clan' WHERE npc_id IN (18635, 18636, 18642, 18646, 18654, 18653, 18649, 18650, 18655, 18657, 18659, 18644, 18641, 18640, 18648, 18645, 18658, 18656, 18652);

I am still looking for what causes the player to be teleported back if he tries to run through, and what causes the mobs to spawn when one is killed.

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...