Thread: this.owner
View Single Post
  #7  
Old 02-04-2002, 12:37 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Quote:
Originally posted by TDO2000
Um why should u use server-strings for this?

use save-vars and playerid:
NPC Code:

if(playertouchsme){
//New Owner
if(save[0] <=0){
save[0]=playerid;
}
//If Owner nice message
if(save[0]==playerid){
say2 Hey Boss;
}
//if not Owner not so nice
if(save[0]<>playerid){
say2 Go away bastard;
}
}


for showing the owner's name I would use messagecodes, showcharacter and an empty gani (without showcharacter I always had problems with messagecodes, they didn't work the right way)
arent save vars local?
Reply With Quote