Author Topic: more pqj questions...  (Read 1021 times)

Legacy_seventh_son

  • Jr. Member
  • **
  • Posts: 74
  • Karma: +0/-0
more pqj questions...
« Reply #15 on: September 06, 2010, 05:20:13 am »


               I will give it a try, thanks for the help guys.
               
               

               
            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
more pqj questions...
« Reply #16 on: September 06, 2010, 05:37:52 pm »


               so, i use PQJ System as well, heres what i have for the exact thing your asking... it works 100%, just change the things you need to like quest name and state

#include "pqj_inc"

void main()
{
object oPC = GetLastKiller();
if(!GetIsPC(oPC))
{
oPC = GetMaster(oPC); // for pets
}
if(!GetIsPC(oPC))
{
return;
}

object oArea = GetArea(oPC);
object oParty = GetFirstFactionMember(oPC);
while(GetIsObjectValid(oParty)) // make sure they are in the party
{
if(GetArea(oParty) == oArea) //same area check
{
if(RetrieveQuestState("YOUR_QUEST",oParty) == 10) //quest check //10 to your quest state
{
AddPersistentJournalQuestEntry("YOUR_QUEST",20,oParty,FALSE,FALSE,FALSE); //journal update //change the 20 to your quest state
FloatingTextStringOnCreature( "** Your Journal Has Been Updated **", oParty);
CreateItemOnObject("YOUR_HEAD",oParty);
}
}
oParty = GetNextFactionMember(oPC); // finds next member
}
}

hope this helps '<img'>


edit:
use the line lightfoot8 gave you if you only want one head in the loot sack, mine gives one head to each player in the party, as long as they are in the same map.
               
               

               


                     Modifié par zero-feeling, 06 septembre 2010 - 04:39 .
                     
                  


            

Legacy_seventh_son

  • Jr. Member
  • **
  • Posts: 74
  • Karma: +0/-0
more pqj questions...
« Reply #17 on: September 07, 2010, 03:51:04 am »


               ShaDoOoW, that script was just what I needed...

Thanks for your help everyone....



zero-feeling, sorry ShaDoOoW beat you to it, but I would have tried your script... Thanks as well for your help...
               
               

               
            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
more pqj questions...
« Reply #18 on: September 08, 2010, 04:25:35 am »


               hey, don't wory, ShaDoOoW helps me a lot, and prolly helped me with this scipt.... just can't remember anymore '<img'>