![]() |
Irritating issue unsetting flags
I'm in the process of coding character slots which I have done perfectly fine before without this issue. I'm attempting to clear all the flags from the player when switching from one slot to another and this method has worked perfectly fine before for me. What I'm doing is the following in its simplest form
PHP Code:
|
Have you tried:
PHP Code:
|
Yes, that's actually what i was originally using. I started using the above code for debugging purposes so I could see what flags it could see and what flags it couldn't.
Edit: Just found this recent post by Dusty. Sounds like a similar issue except reconnecting does not resolve it Quote:
|
I just tried this on my pc:# account,
PHP Code:
Quote:
|
these are the current flags with everything else commented out on the control-npc as to not interfere.
Before: clientr.isStaff=1 clientr.mud_charslot=1,Novice,player,1,"" After: Size Before: 2 After: Size After: 0 clientr.isStaff=1 clientr.mud_charslot=1,Novice,player,1,"" clientr.testclear=abcdefg |
Quote:
Wrong: PHP Code:
PHP Code:
This doesn't sound like what's happening to you, but I figured I'd update on that little issue. Something similar may be happening with getstringkeys. Maybe Jerret will see this though since I know he's used clientr and getstringkeys for the Easter event on iClassic. |
Quote:
Quote:
|
I guess it's back to redditing while waiting for more responses
|
I just do:
clientr.(@flag) = ""; On Zodiac we have a list of variables that are specific to characters. So for items we do: PHP Code:
|
Quote:
PHP Code:
Edit: Just to reiterate I cannot echo the clientr vars that are from a previous session. I can echo anything from the current session im in but anything outside of that does not return anything. It's like they have been removed but they stay in the flags still. |
If anyone wants me to give them access to take a look just let me know and I'll add you. I'm stumped on what to try next.
Edit: I've added all 3 of you to server options with rw WEAPONS/accountname |
Just an update, it appears to be removing anything without an underscore in it now which is strange. It wont even recognize anything with an underscore. I haven't tried coding anything really since GS3 was enabled could it possible be a conflict with that even though I'm not currently using it?
|
http://static.tvtropes.org/pmwiki/pu...Drew_Carey.jpg
Welcome to Graal! Where everything is made up and the syntax don't matter! |
Quote:
maybe try doing two separate checks for flags with and without an underscore? |
Quote:
|
use
PHP Code:
|
Quote:
I recall reading a thread not to long ago in this same section "why do scripters make things to complicated" or something similar. This topic is probably an appropriate answer. |
I identified the issue, clientr flags or any flags that were set prior to GS3 being enabled with an underscore seem to be stuck in attributes and cannot be removed dynamically. it appears the only way to clear them is actually set it to clientr.muditem_1 = ""; i dont know why though
|
|
|
| All times are GMT +2. The time now is 02:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.