ID:160481
Sep 2 2008, 10:02 pm
|
|
I'm trying to put together some sort of friends list/contact system, but I don't know how to put a mob into the usr's contents list and make it stay there then the mob's client logs out.
|
In response to Andre-g1
|
|
When they log out it deletes them from your list and they don't come back, even when they log on again
|
In response to Coilx
|
|
That's probably because you're saving that particular instance of the other players in your list. Once they're deleted, they get removed from the list. Maybe try saving their icon and name and just have that display?
|
In response to Michael3131
|
|
Actually, he only needs to save the list if he didn't make any big changes to it.
|
In response to Andre-g1
|
|
How do I save the list? So far I'm using a list of names that are tagged to players mobs as they login. Then I display them like this
statpanel("Friends") Only problem is that it still dissapears when someone logs off, but at least it will remember your friends now. Also M+"Text" doesn't work.. I don't know how to make it so that the M is before the text, stat("Text",M) is easy but I want it the other way around so that the mob is displayed in front of the text. |
In response to Coilx
|
|
> if(statpanel("Friends")) // use this to avoid unnecessary lag and resource hogging As for saving, just look up the Write() and Read() procedures, as they give enough information to do that on the DM Reference. :) |
In response to Andre-g1
|
|
Rather than saving a player's client or mob, I think it would make more sense to save their key in a list that gets saved with your character and then have a temporary list that their mob would get added to when they log in, for display in the stat panel.
|
I have have done some kind of error, but I'm sleepy so meh. If I did, point it out and I'll fix it :)