View Single Post
  #1  
Old 07-08-2013, 07:31 PM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
compressing script

What is a better, more efficient way to write this. Preferably without TimeOuts or scheduleEvent.

It's for an npc item I'm making. There's more to it, but I'm just pasting the little snippet I want compressed.

PHP Code:
      if (blocked[0]==0) { 
       
player.-= 0.5;
       
sleep(0.05);   
       
player.-= 0.5;
       
sleep(0.05);
       
player.-= 0.5;
       
sleep(0.05);
       
player.-= 0.5;
       
sleep(0.05);
       
player.-= 0.5;
       
sleep(0.05);      
       
player.-= 0.5;
       
sleep(0.05);   
       
player.-= 0.5;
       
sleep(0.05);
       
player.-= 0.5;
       
sleep(0.05);
       
player.-= 0.5;
       
sleep(0.05); 
__________________
No matter how much I hate graal, I'm always coming back.

smh
Reply With Quote