generated from Jaysyn/ModuleTemplate
18 lines
522 B
Plaintext
18 lines
522 B
Plaintext
/////////////////////////////////////
|
|
// Dragon's Edge
|
|
// by Charly Carlos
|
|
/////////////////////////////////////
|
|
// Sets the variable to 1, meaning someone (the PC) has won the prize from Padush
|
|
// and gives the prize to the winner.
|
|
/////////////////////////////////////
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
if (GetLocalInt(OBJECT_SELF, "nPCWonArmW")!= 1)
|
|
{
|
|
SetLocalInt(OBJECT_SELF, "nPCWonArmW", 1);
|
|
CreateItemOnObject("ringofstrength", oPC);
|
|
GiveXPToCreature(oPC, 100);
|
|
}
|
|
}
|