![]() |
showimg > timeout >< help !
Well i've been scripting a GUI and i've put a script into a timeout as follows
NPC Code: That isn't the whole script, but as you can see.. When you click in the x and y it is suppose to hide the image index of 302, but it dosn't :O Any idea how I can do it? any help would help :) |
it cause you hide the img but you don't tell the script that you hided the img o.0'
NPC Code: NPC Code: i guess with that you could go trought |
Ah I see, I get it. Thanks !!
I'll check it in 30 mins when i'm on my other comp ! I'll post if I have any problems :) |
Quote:
|
I thought you had to post scripts in the global format thingy where instead of && you added another ( )'s...or something like that...>_>;
|
Yes crono, but I havn't done that :p
And r0bins helping me over AIM :) I'll see if he can figure it out, it's completely broken now :p |
@loriel actualy it do the same but yeah could be 0.o
|
Quote:
|
That isn't the problem Osrs, go on MSN AIM i'll send you the script :P
edit could some one help me on this, i asked loriel over aim but he didn't seem to botherd NPC Code: When you click down on the NPC your weapons change to the next one in your inventory, i.e i have the weapon 'bow' in use, if I click it the next weapon along 'bomb' would now be in use :o (I don't want the whole script, but i'd like help on how to do it :p) |
selectedweapon : the index of the selected weapon of the player
Just mess around with that and you should be fine. |
Quote:
selectedweapon+1;? |
Quote:
Do you just mean selectedweapon++? |
Not exactly, your bit sets a `globally' editable flag and other NPCs will eventually mess around with it.
|
Howso loriel?
I'll try the selected weapon |
Quote:
I go over AIM later to give you an assistance, if you want. :) |
Yay!, thanks :D!
|
Quote:
oh and don't constantly do static showimgs in a timeout, only when something needs to update (hiding/showing, do that in a function to call it when neccesary) Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 09:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.