Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
33
_module/nss/evil_qst7.nss
Normal file
33
_module/nss/evil_qst7.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "rd_questinc"
|
||||
#include "rd_spawnzones"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oBoss;
|
||||
int iMaxSpots;
|
||||
int iSpawn;
|
||||
int iLevel;
|
||||
int iDifficulty;
|
||||
string sTag;
|
||||
string sZone;
|
||||
|
||||
oPC=GetPCSpeaker();
|
||||
iLevel = GetHitDice(oPC);
|
||||
SetPartyInt(oPC,"EvilQuest",2);
|
||||
SetPartyInt(oPC,"QuestStep",1);
|
||||
|
||||
sZone = GetZone(oPC);
|
||||
iMaxSpots = GetMaxQuestSpots(sZone);
|
||||
iSpawn = Random(iMaxSpots)+1;
|
||||
sTag = sZone + "_Q_" + IntToString(iSpawn);
|
||||
|
||||
iLevel = GetHitDice(oPC);
|
||||
GetParty(iLevel,sTag,1);
|
||||
|
||||
SetPartyInt(oPC,"QuestType",3);
|
||||
SetPartyString(oPC,"QuestTargetNPC",GetTag(OBJECT_SELF));
|
||||
SetPartyString(oPC,"QuestCreatureTag",sTag + "_S");
|
||||
iDifficulty =1;
|
||||
SetPartyInt(oPC,"QuestDifficulty",iDifficulty);
|
||||
}
|
Reference in New Issue
Block a user