Thx......
but if its a string then it adds it to the players list of flags and doesnt effect any other people who touch the npc so as soon as they touch it they get the same string but with their account instead so it doesnt help very much. Also if someone tries to help someone finish it instead of helping it they start their own one from the same npc but at 0% again.
*wonders if anyone understood that*
Heres a script (with some things that arent important cut out) where the things above happen:
NPC Code:
if(created)
{this.percentage=0;
setstring this.owner,#a;}
if (actionmaking && this.percentage<=99) {
maker = strtofloat(#p(0));
this.percentage+=maker;
message #v(this.percentage)%;
}
if (this.icecreampercent>=100) {
freezeplayer 0.5;
sleep 0.5;
if(strequals(#a,#s(this.owner))){
freezeplayer 0.5;
sleep 0.5;
message blah;
destroy;}
else
if(!strequals(#a,#s(this.owner)))
{
message Owner: #a(this.owner);
sleep 2;
message;
}
}
Thx
