Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-05-2010, 11:15 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Script hindering movement, the use of the tab key, and word input.

Okay, so I've been working on this system to show how many buffs you have. And after some trial and error (as well as plenty of Access violations ) I had finally got it working. Everything was fine for a while, but now all of a sudden I've found that I cant move unless I rapidly click the mouse on the screen while holding down a direction, I cant use the chat box unless i hit tab and click on the screen at the same time, and if i do manage to bring up the chat box, it wont let me type anything. however the other default functions seems to work just fine (sword, open inventory, grab, etc)

I narrowed down the problem to the portion of this script that I was working on.. but theres nothing in it that would normally hinder movement ( it doesnt include movement speed mods nor player.freezetimes)

So I'm kind of lost on what's causing this. I have a hunch that it might be that the icons suddenly feel like taking focus when theyre made, but I'm not totally sure. And I cant check since I dont know the commands that manipulate the focus of a GUI. But this may not even be the case.

Here's the section of the code. The function is called every 0.05 seconds by the timeout function:

PHP Code:
function doCheckBuffs(){

  
temp.buffs clientr.buffs.tokenize(",");
  
temp.count temp.buffs.tokenize(",").size();
      
      if(
temp.iconnumbers == 0){      
        for(
temp.0temp.<= 100temp.++){   
          
makevar("Test_ShowImg_" temp.a).destroy();
        }
        
temp.iconnumbers 0;        
      }
      
      for(
temp.0temp.temp.counttemp.++){        
        new 
GuiShowImgCtrl("Test_ShowImg_" temp.b) {
             
192 + (32*temp.b);
             
130;
             
width 60;
             
height 60;
             
image "j7_buff_alternate.png";
             
temp.iconnumbers += 1;
        }
      }


Any ideas what's causing my problem?
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.