Initial Commit

Initial Commit [v1.32PRC8]
This commit is contained in:
Jaysyn904
2025-04-03 13:38:45 -04:00
parent 1213977d8c
commit b464d8da05
6922 changed files with 6176025 additions and 2 deletions

View File

@@ -0,0 +1,52 @@
void main()
{
int iRandom;
int iQuest;
int iMax;
int iLastQuest;
int iLevel;
iLevel = GetHitDice(GetPCSpeaker());
iMax = 6;
iRandom = Random(iMax)+1;
//1=elf
//2=dwarf
//3=halfling
//4=human
//5=angelic
//6=special group
//7=good adventurers
//8=message delivery
if (iRandom < 4)
{
iQuest = Random(5)+1;
if (iQuest==3 && iLevel>10)
iQuest = Random(2)+1;
if (iQuest==4 && (iLevel<10 || iLevel>25))
iQuest = Random(2)+1;
if (iQuest==5 && iLevel<25)
iQuest = Random(2)+1;
}
else if (iRandom < 6)
{
iQuest=6;
if (iLevel<3)
iQuest=3;
}
else if (iRandom == 6)
{
iQuest=7;
}
else
{
iQuest=7;
}
SetLocalInt(OBJECT_SELF,"RandomStep",iQuest);
}