Thread: Bottle Help
View Single Post
  #4  
Old 06-21-2012, 03:32 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Empty Bottle:

PHP Code:
if (playerenters) { 
  
show; 
  
setimg eman_water_potion.png; 
  
timeout = 0.05; 
}

if (
playertouchsme) { 
  
toweapons Empty Bottle; 
  
hide; 
}

if (
timeout) { 
  if (
hasweapon(Red Potion) && timeout)
    
destroy;
  
  
timeout = 0.05; 
} 
As I said, you need to do the hasweapon check in a timeout. And I know it's just GS1, but you need to work on styling your code.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote