Thread: this.owner
View Single Post
  #2  
Old 01-11-2002, 09:13 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
here's a SIMPLE example..
NPC Code:

if (playertouchsme) {
if (this.owned==0) {
sleep 0.05;
this.owned=1;
setstring server.rockowner1,#a;
timeout=0.05;
}
if (this.owned==1) {
if (strequals(#a,#s(server.rockowner1))) {
say2 Hey owner, wassup?;
}
if (!strequals(#a,#s(server.rockowner1))) {
say2 You're not my owner!;
}
}
}
if (playerenters||timeout) {
message #s(server.rockowner1);
timeout=0.05;
}


I think that would work...maybe.
__________________

-=Shard IceFire=-
Reply With Quote