View Single Post
  #5  
Old 08-25-2002, 11:14 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Since people want to speak ill'y of peoples coding styles, THIS was horrible x.X
NPC Code:

if (created){
timeout=0.25;
}

if (timeout)
{ for (i=0;i<playerscount;i++)
{ if (abs(mousex-x)=<1 && abs(mousey-y)=<1)
{message test;}
else message ;
}
timeout=0.25;
}


Original code by Shifter XP. And unlike yours, which will ONLY do it if it is at that certain X and Y, mine will do it regardless of where really. 0.05 timeout... he he, I really don't use it anymore. 0.1 laggs a bit w/ an NPC Server, but 0.25 still does it enough times a second where it makes no differece
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote