Jump to content

Save list name player


79135

Recommended Posts

I create list string, charN1 add into the list some strings. How another char can use this list<string>? I use quester product. Quest type override pulse c# code

Безымянный.png

Link to comment
Share on other sites

14 minutes ago, Droidz said:

Hello, where is your list<string>? and you want use it is quest type (overidepulsecsharpcode)?

how to save this list so all my bots can see it? 

      //For example:
        string myNameIs = ObjectManager.Me.Name;
        List<string> nameOtherPlayer = new List<string>(){};
        if (myNameIs == "Putin")
        {
            nameOtherPlayer.Add("Trump");
        }
        //save the list in order to another chars can use the list

        //OR
        string myNameIs = ObjectManager.Me.Name;
        List<string> nameAllMyBots = new List<string>(){};
        if (!nameAllMyBots.Contains(myNameIs))
        {
            nameAllMyBots.Add(myNameIs);
        }

quest type (overidepulsecsharpcode)? - yes.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...