Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-09-25 21:32:17 -04:00
parent c1b271b363
commit ec287507a1
10074 changed files with 8442145 additions and 0 deletions

24
_module/nss/sellox.nss Normal file
View File

@@ -0,0 +1,24 @@
void main()
{
location lSpawn = GetLocation(GetPCSpeaker());
int iGold = GetGold(GetPCSpeaker());
object oPackAnimal;
object oPackStore;
if(GetLocalInt(GetPCSpeaker(), "ownOx") != 1)
{
if(iGold > 1000)
{
TakeGoldFromCreature(1000, GetPCSpeaker(), FALSE);
SetLocalInt(GetPCSpeaker(), "ownOx", 1);
oPackAnimal = CreateObject(OBJECT_TYPE_CREATURE, "packox", lSpawn, TRUE);
oPackStore = CreateObject(OBJECT_TYPE_STORE, "oxpack", lSpawn);
SetLocalObject(GetPCSpeaker(), "PackAnimal", oPackAnimal);
SetLocalObject(GetPCSpeaker(), "PackStore", oPackStore);
SetLocalObject(oPackAnimal, "Owner", GetPCSpeaker());
}
else
SpeakString("You do not have enough gold!");
}
else
SpeakString("You already own a pack animal!");
}