Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
This commit is contained in:
30
nwnds_module/tlr_buyoutfit.nss
Normal file
30
nwnds_module/tlr_buyoutfit.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Tailor - Buy Outfit
|
||||
//:: tlr_buyoutfit.nss
|
||||
//:: Copyright (c) 2003 Jake E. Fitch
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Jake E. Fitch (Milambus Mandragon)
|
||||
//:: Created On: March 8, 2004
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oItem = GetItemInSlot(INVENTORY_SLOT_CHEST, OBJECT_SELF);
|
||||
|
||||
//-- int iCost = GetGoldPieceValue(oItem) * 2;
|
||||
int iCost = GetLocalInt(OBJECT_SELF, "CURRENTPRICE");
|
||||
/*
|
||||
if (GetGold(oPC) < iCost) {
|
||||
SendMessageToPC(oPC, "This outfit costs" + IntToString(iCost) + " gold!");
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
TakeGoldFromCreature(iCost, oPC, TRUE);
|
||||
|
||||
CopyItem(oItem, oPC, TRUE);
|
||||
}
|
Reference in New Issue
Block a user