Areas and Fixes
Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
This commit is contained in:
19
_module/nss/store_storegold.nss
Normal file
19
_module/nss/store_storegold.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
void main()
|
||||
{
|
||||
object oPC=GetPCSpeaker();
|
||||
string svarname=GetName(oPC)+GetPCPublicCDKey(oPC);
|
||||
int nPattern=GetListenPatternNumber();
|
||||
if(nPattern==1)
|
||||
{
|
||||
string nHeard=GetMatchedSubstring(0);
|
||||
int nGoldDaDepositare=StringToInt(nHeard);
|
||||
int GoldPG=GetGold(oPC);
|
||||
if(nGoldDaDepositare<=GoldPG)
|
||||
{
|
||||
SetCampaignInt("Bank_ORO",svarname,GetCampaignInt("Bank_ORO",svarname,oPC)+nGoldDaDepositare,oPC);
|
||||
TakeGoldFromCreature(nGoldDaDepositare,oPC,TRUE);
|
||||
}
|
||||
else
|
||||
AssignCommand(OBJECT_SELF,SpeakString("U do not have enough gold"));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user