Thread: this.owner
View Single Post
  #3  
Old 01-11-2002, 06:35 PM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by Shard_IceFire
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.
K thanks.
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote