UW2_PRC8/_module/nss/allowsockeys.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

20 lines
527 B
Plaintext

//Created by Guile 3/31/07
//This variable is set on the pc while they are on the module to prevent
//them from relooting chest when they open them for socketed items.
//whenever a pc opens a chest the chest will check to see if they have
//opened any others anytimes soon, if not, they get a 15% chance of getting
//a rare socketed item.
//Put this script OnEnter of your starting area of the module.
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
SetLocalString(oPC, "nosockeysoon", "1");
}