Aller au contenu

Photo

Giving quest items to quest giver (Solved)


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Sonmeister

Sonmeister
  • Members
  • 167 messages
Does anyone have an example script of giving a quest item to the quest giver after retrieving it?

Modifié par Sonmeister, 05 mai 2010 - 02:57 .


#2
TimelordDC

TimelordDC
  • Members
  • 923 messages
When the plot flag for completion is set, run a couple of commands in the plot script -> one to remove the item from the PC's inventory and another to add the item to the quest giver.

#3
Sonmeister

Sonmeister
  • Members
  • 167 messages
A little vague for me also why do I need to add the item to the quest giver? All I really need is the item to disappear from my inventory.

#4
Sunjammer

Sunjammer
  • Members
  • 925 messages
You might create them on the quest giver if,  for example, you wanted him to don his recovered armour. 

However if you only want to remove the plot items see the main script in "Joe vs The Brecilian", i.e.

case SJ_GATHERING_MAIN_REWARDED:
{
    // remove the specimens
    RemoveItemsByTag(oHero, "sj_gathering_specimen_a");
    RemoveItemsByTag(oHero, "sj_gathering_specimen_b");
    RemoveItemsByTag(oHero, "sj_gathering_specimen_c");

    // reward the player with 100cp and 100xp
    AddCreatureMoney(100, oHero);
    AddCreatureExperience(100, oHero);

    break;
}

Modifié par Sunjammer, 04 mai 2010 - 07:18 .


#5
Sonmeister

Sonmeister
  • Members
  • 167 messages
Worked like a charm, Sunjammer.  Thanks.

Modifié par Sonmeister, 05 mai 2010 - 02:57 .