ID:170605
![]() Jan 4 2005, 12:02 am
|
|
I have a problem with logging out with an overlay equipped because when you do so the icon is stuck on the char forever. Does anyone know how to fix this?
|
Eh I still get the same problem.
obj Here this might answer why i get the problem >.< The overlay already saves but the thing is that when you logout and come back you can't the the overlay off when you un equip |
OK, I have another idea:
mob/Logout() That will unequip all the Tests before the mob logs off. Or it should, anyway. |
You could add a variable to each Test that says whether it should be equipped or not, then when the mob logs in you loop through the Tests, equipping the ones that should be equipped:
obj |
It does. Or, at least, it should. Try making some differently named weapons and trying it with them.
|
I still have my original problem now the overlay icon is stuck on when i unequip after logging out with it on.
And does rebooting force a logout on the host? |
Did you just copy and paste the code? If so, you'll notice that the word "equipped" appears in my code with a lowercase "E", and in your code with an uppercase "E". So you'll need to change my code ever-so-slightly to make it work.
In short, don't just copy and paste code from the forum. |
Lol No i didn't copy and paste, I'm not that stupid to let something that minor to get in my way. >.< I beleive the error might be in my saves or something. So I've been trying to fix it but eh, I can't get it to work.
|
Can you equip and unequip them normally? If not, the problem might be in your overlay code - everytime you add or remove an overlay, you create a new one. Try replacing all the new/obj/Test/whatever with just src
|
Have you tried deleting the saves then trying again? Also, which library is it and how is it modified?
|
If you want to save the overlays: