Thread: Script Help
View Single Post
  #3  
Old 06-08-2003, 04:27 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
Incorrect:
NPC Code:

for{i=0; i<EffectTime; i++)


Correct:
NPC Code:

for (i=0; i<EffectTime; i++)


Spot the difference?

Also, use if (playerchats && strequals(#c,text)) rarther than if (playersays())

There is a much more efficient method of doing that beer thing. Try using else, and you don't really need to set flags.
__________________
Former Global Scripting Team Member


Reply With Quote