View Single Post
  #4  
Old 09-03-2002, 11:25 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Re: How does this NPC work please?

Quote:
Originally posted by Glory
if (created)
{ for (i=0;i<allplayerscount;i++)
{ if (strequals(#F,))
{ if (strequals(#a,accname))
{ setplayerprop #3,headname;}
}
}
}
But...that would set the heads of all the RCs when the script was created! You'd have to use actionplayeronline or so in the Control NPC.

Something like this:
NPC Code:

if (actionplayeronline) {
if (strequals(#F,)) setplayerprop #3,headname;
}

__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote