Jump to content
  • 0

Problem with double kill in quest


ѕeмa™

Question

13 answers to this question

Recommended Posts

  • 0
  • VIP

If I understood well the source ( I didn't tested yet ), the solution you tried is quite stupid.

if (npc != QUEST_NO_NPC)
	m_mapNPC[QUEST_NO_NPC].OnKill(*pPC);

This extra function will also do a extra call, so more triggers.

 

Try this - not tested and if it works let us know:

Find this ( SAME function you posted ):

if (m_mapNPC[QUEST_NO_NPC].OnKill(*pPC))
	return;

if (leader)
{
	m_pCurrentPartyMember = ch;
	m_mapNPC[QUEST_NO_NPC].OnPartyKill(*GetPC(leader->GetPlayerID()));
}

And comment it. Try to test if it's still bugged. This also may cause another bug: the function may not trigger at all! So test it in all ways possible. Kill a player and then a mob.

  • Love 1
Link to comment
  • 0

If I understood well the source ( I didn't tested yet ), the solution you tried is quite stupid.

if (npc != QUEST_NO_NPC)
	m_mapNPC[QUEST_NO_NPC].OnKill(*pPC);

This extra function will also do a extra call, so more triggers.

 

Try this - not tested and if it works let us know:

Find this ( SAME function you posted ):

if (m_mapNPC[QUEST_NO_NPC].OnKill(*pPC))
	return;

if (leader)
{
	m_pCurrentPartyMember = ch;
	m_mapNPC[QUEST_NO_NPC].OnPartyKill(*GetPC(leader->GetPlayerID()));
}

And comment it. Try to test if it's still bugged. This also may cause another bug: the function may not trigger at all! So test it in all ways possible. Kill a player and then a mob.

ok i go to try it, thanks for reply :)

Link to comment
  • 0

Open your questmanager.cpp;
 
Search:

m_mapNPC[npc].OnKill(*pPC);

Change with this:

if (npc > MAIN_RACE_MAX_NUM)
	m_mapNPC[npc].OnKill(*pPC);
m_mapNPC[QUEST_NO_NPC].OnKill(*pPC);

----

 

Search:

m_pCurrentPartyMember = ch;

if (m_mapNPC[npc].OnPartyKill(*GetPC(leader->GetPlayerID())))
	return;

pPC = GetPC(pc);

Change with this:

m_pCurrentPartyMember = ch;

if (npc > MAIN_RACE_MAX_NUM)
	m_mapNPC[npc].OnPartyKill(*GetPC(leader->GetPlayerID()));
m_mapNPC[QUEST_NO_NPC].OnPartyKill(*GetPC(leader->GetPlayerID()));

//pPC = GetPC(pc);
  • Love 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 0

      Help with quest

    2. 0

      Will anyone modify the mount?Mounts need to be mounted to increase their stats.

    3. 11

      Lock Picking Skill + Missions

    4. 4

      Quest Deleter

    5. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    6. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    7. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    8. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    9. 6

      Skill Book Combination System

  • Recently Browsing

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.