Any flag that exceeds a preset character limit does not display the entire length in player flags via RC when editing the player attributes <--- How is this not true?
Here is a snippet anyone can use to test for yourself.
Simply put this in a level npc.
PHP Code:
// Created by Torankusu
function onCreated() {
this.image = "door.png";
setshape(0,32,32);
}
//RIGHT CLICK IT...
function onActionRightMouse() {
//empty array for each re-test..
temp.tarr = {};
//simple loop..
for (temp.i = 0; temp.i < 400; temp.i++) {
//add about 400 vars to array...
temp.tarr.add(temp.i);
}
//set the clientr flag to the array (should be well over 400+ chars..)
player.clientr.testflag111 = temp.tarr;
//echo to RC to see the complete flag's contents..
echo("Flag List: " @ player.clientr.testflag111);
}
/*
At this point, Open your account via RC to edit attributes,
locate the flag (clientr.testflag111), and you should only see
up to about the #70.
Manually EDIT that flag, to remove any number,
for example, the 0, or the 1 at the beginning
And then do:
*/
//and type "test" on your player..
function onPlayerChats(){
if (player.chat == "test") {
this.chat = "Ok!";
echo(player.clientr.testflag111);
}
}
//Check RC to see what that flag is now equal to..
After following those steps, you will see that if the flag is manually edited via RC (which, as I said was a bad idea anyway,) you would be clipping off the rest of the data not displayed < -- again, how is that not true?
(you are only shown 205 chars into the flag via RC, 225 including the flag name and = sign)
Now, how this could relate to the original poster's question in regards to an item system:
If you write your system poorly, which is very likely, and pass certain information on to the player to be stored in clientr.flags, you will have to do as I previously mentioned, and write something to handle adding and deleting (or more or less updating the quantity of said item), even in the event that you or another admin need to remove or add an item to a player.
For example, if you or another admin need to add 20 grenades, or remove 200 shells from a player -- if that flag exceeds a certain limit, you will simply break it. The alternative is to script a command for handling the removing and adding of items to players in the event that you need to do this.
All I was saying John, but thanks for the help anyway.