Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-26-2013, 09:33 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
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:
public function clearFlags(){
  for (
temp.clientr.getdynamicvarnames()) clientr.(@ temp.i) = null;

What is happening is that anything that has been added to the players flags in the current session can be echo'd to RC if i were to do echo(temp.i); however anything that wasnt removed is now hanging in the flags indefinately. Sure I could just do something along the lines of clientr.mud_item = null; however this worked previously and it just randomly stopped working so I don't think I should have to hack a way around it. I'm positive that it's within the scope of the player. I can echo the clientr variable to rc just not unset it with that line of code anymore. It's really strange. I've heard of people having issues with clientr variables in the past that randomly stopped working so I'm under the assumption that that is what is going on here but if anyone has any advice on fixing it please share ye wisdom. I've attempted restarting the NPC Server and reconnecting to RC but that did not fix it.
Reply With Quote
 


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:32 AM.


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