I'm pretty sure i can just run that command as many times as i like, but i was wondering if there's another way to do it?
Thanks
Modifié par Shiek2005, 16 août 2011 - 05:46 .
Modifié par Shiek2005, 16 août 2011 - 05:46 .
Modifié par Failed.Bard, 16 août 2011 - 06:37 .
Modifié par _Knightmare_, 16 août 2011 - 10:30 .
Failed.Bard wrote...
Edit: Note that, this script, being simple, doesn't check inside containers. That can be done with a little tweaking if you'd need that aspect of it.
Lightfoot8 wrote...
Failed.Bard wrote...
Edit: Note that, this script, being simple, doesn't check inside containers. That can be done with a little tweaking if you'd need that aspect of it.
Your script will already check all the items in the containers in the inventory. No tweeking needed.
_Knightmare_ wrote...
@ Shiek - The code that FB posted is a function, not a full script.
As to the code you posted above, there are some loopholes in there. You have no check to make sure that the party has 25 Zombie Ears. If they only have 20, then all 20 of those would be taken away. Related to that, you have no check for Ears before awarding the Gold, XP and the Journal Entry. As written, the PC could have zero Ears and still get the gold, XP journal update.
if(nCount == 24) // Since we started counting at 0, we look to see in nCount equals 24
{
// Give 500 gold (to party) to the PC.
GiveGoldToAll(oPC, 500);
GiveXPToAll(oPC, 250);
// Update the party's journals.
AddJournalQuestEntry("AchieveQuest01", 2, oPC);
}