generated from Jaysyn/ModuleTemplate
21 lines
665 B
Plaintext
21 lines
665 B
Plaintext
/////////////////////////////////////
|
|
// Dragon's Edge
|
|
// by Charly Carlos
|
|
/////////////////////////////////////
|
|
// Destroys the scroll and sets the quest variable to 2, give appropriate xp.
|
|
/////////////////////////////////////
|
|
void main()
|
|
{
|
|
if (GetLocalInt(GetModule(), "nJenakQuest")< 2)
|
|
{
|
|
object oJScroll = GetItemPossessedBy(GetPCSpeaker(), "JenaksScroll");
|
|
if (GetIsObjectValid(oJScroll)== TRUE)
|
|
{
|
|
DestroyObject(oJScroll);
|
|
GiveXPToCreature(GetPCSpeaker(), 400);
|
|
AdjustAlignment(GetPCSpeaker(), ALIGNMENT_CHAOTIC, 3);
|
|
SetLocalInt(GetModule(), "nJenakQuest", 2);
|
|
}
|
|
}
|
|
}
|