Rune_PRC8/_module/nss/eth_bindhere.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

14 lines
442 B
Plaintext

void main()
{
object oPersistantInfo = GetItemPossessedBy(GetPCSpeaker(), "persistinfo");
if(GetIsObjectValid(oPersistantInfo) != TRUE)
{
oPersistantInfo = CreateItemOnObject("persistinfo", GetPCSpeaker());
}
object oBinder = GetNearestObjectByTag("binder", GetPCSpeaker());
string sBindWPTag = GetLocalString(oBinder, "BindWP");
SetLocalString(oPersistantInfo, "Bind", sBindWPTag);
SetLocalInt(oPersistantInfo, "IsBound", 1);
}