View Single Post
  #4  
Old 02-24-2007, 01:13 AM
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
This causes the last created ladder to unattach the player all the time since he/she isnt close to the ladder.

PHP Code:
if (player.x in |x-1,x+1| && player.y in |y-.5,y+8|) {
  if (
player.attached==falseattachplayertoobj(0,id);
  
// do stuff
} else  detachplayer(); 
Change to:

PHP Code:
if (player.x in |x-1,x+1| && player.y in |y-.5,y+8|) {
  if (
player.attached==falseattachplayertoobj(0,id);
  
// do stuff
} else if (player.attached == truedetachplayer(); 
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote