Initial Upload
Initial Upload
This commit is contained in:
16
_module/nss/tke_dragon_orb.nss
Normal file
16
_module/nss/tke_dragon_orb.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
// NPC take item from PC script
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oItemToTake;
|
||||
|
||||
oItemToTake = GetItemPossessedBy(oPC, "DragonOrb"); // Place item Tag here
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
DeleteLocalInt(oPC, "YGDragonQuest");
|
||||
DeleteLocalInt(oPC, "AngryDragon");
|
||||
SetLocalInt(oPC, "YGDragonComplete", 1);
|
||||
|
||||
CreateItemOnObject("dryadboots", oPC); // Item ResRef here
|
||||
GiveXPToCreature(oPC, 450); // XP Value here
|
||||
}
|
Reference in New Issue
Block a user