View Single Post
  #1  
Old 12-24-2012, 07:25 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
GuiScrollCtrl scrollto

Does anyone know why I'd be getting this error:

NPC Code:
Script: Function Map_scroll.scrollto not found in function onTimeout in script of Weapon -System/MiniMap



for using this:

PHP Code:
if (Map_levelimg.zoom 1) {
    
temp.scroll = {int((player.x/((getmapx(this.BRlevel)+1)*64))*(Map_levelimg.width-Map_scroll.width+2)/1.5),int((player.y/((getmapy(this.BRlevel)+1)*64))*(Map_levelimg.height-Map_scroll.height+2)/1.5)};
    
Map_scroll.scrollto(temp.scroll[0],temp.scroll[1]);
  } else if (
Map_levelimg.zoom 1) {
    
temp.scroll2 = {int((player.x/((getmapx(this.BRlevel)+1)*64))*(Map_levelimg.width-Map_scroll.width+2)),int((player.y/((getmapy(this.BRlevel)+1)*64))*(Map_levelimg.height-Map_scroll.height+2))};
    
Map_scroll.scrollto(temp.scroll2[0],temp.scroll2[1]);
  } else {
    
temp.scroll3 = {int((player.x/((getmapx(this.BRlevel)+1)*64))*(Map_levelimg.width-Map_scroll.width+2)),int((player.y/((getmapy(this.BRlevel)+1)*64))*(Map_levelimg.height-Map_scroll.height+2))};
    
Map_scroll.scrollto(temp.scroll3[0],temp.scroll3[1]);
  } 
When it's a function here:
http://www.graal.net/index.php/Creat.../GuiScrollCtrl

Has something changed with scrollto in v6 or something?
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote