Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
28
_module/nss/by_store_worla.nss
Normal file
28
_module/nss/by_store_worla.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
void main()
|
||||
{
|
||||
object oPC=GetPCSpeaker();
|
||||
|
||||
// Either open the store with that tag or let the user know that no store exists.
|
||||
object oStore = GetNearestObjectByTag("by_Worlastore");
|
||||
if(GetObjectType(oStore) == OBJECT_TYPE_STORE)
|
||||
{
|
||||
object oPC=GetLastSpeaker();
|
||||
int nPersuade=GetSkillRank(SKILL_PERSUADE,oPC);
|
||||
int nAppraise=GetSkillRank(SKILL_APPRAISE,oPC);
|
||||
if (nAppraise>nPersuade)
|
||||
{
|
||||
nPersuade=nAppraise;
|
||||
}
|
||||
if (nPersuade>20)
|
||||
{
|
||||
nPersuade=20;
|
||||
}
|
||||
|
||||
OpenStore(oStore,oPC,-nPersuade,nPersuade);
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user