////////////this is on pcrest
void main()
{ object oPC=GetLastPCRested();
int reststat=GetLastRestEventType();
int Check=GetLocalInt(oPC,"rest");
if(reststat==REST_EVENTTYPE_REST_FINISHED)
{ SetLocalInt(oPC,"rest",1);
}
////////////////////this is on onpcequip
int Check=GetLocalInt(oPC,"rest");
if (sSword == "bfg_sif_rhand" && sShield == "bfg_sif_lhand" && sHead == "bfg_sif_head" && sChest =="bfg_sif_chest"&& sBoots =="bfg_sif_boot" && Check==1)
{
}
/////////////////this on onpcunequip
if (sItemTag == "bfg_sif_rhand" || sItemTag == "bfg_sif_lhand" || sItemTag == "bfg_sif_head" || sItemTag == "bfg_sif_chest" || sItemTag == "bfg_sif_boot")
{
SetLocalInt(oPC,"rest",0);
as you said ,
i have already made it like this ,but there are some problems,i must wear at least two of the set items that can fire the extra power of the setitem. is there another way ?
|