Exemplo n.º 1
0
    public void ChangeSkin(PlayerSkin skin, Button sender)
    {
        Text  currentText  = !IsFirstSelect ? firstPlayerName : secondPlayerName;
        Image currentImage = !IsFirstSelect ? firstImage : secondImage;

        currentText.text    = skin.name;
        currentImage.sprite = skin.roundSprite;
        currentImage.SetNativeSize();
        currentImage.GetComponent <RectTransform>().localScale = new Vector3(0.8f, 0.8f, 1);

        if (previousButton != null)
        {
            previousButton.interactable = true;
        }
        sender.interactable = false;
        previousButton      = sender;

        if (!IsFirstSelect)
        {
            GameManager.firstPlayerSkin = skin.name != RandomSkin.name ? skin : GetRandomSkin();
        }
        else
        {
            GameManager.secondPlayerSkin = skin.name != RandomSkin.name ? skin : GetRandomSkin();
        }
    }
Exemplo n.º 2
0
    public void changeLevel(int level)
    {
        Level = level;
        PlayerSkin playerSkin = Sprite.transform.GetChild(1).GetChild(1).GetComponent <PlayerSkin>();

        playerSkin.setLevel(level);
    }
Exemplo n.º 3
0
    public void Setup()
    {
        cursorPointer = Resources.Load("Prefabs/Cursor Pointer", typeof(GameObject)) as GameObject;
        dead          = false;

        //Setup movement script
        playerMovement = playerInstance.GetComponent <PlayerMovement> ();
        playerMovement.setMoves(playerNumber);
        playerMovement.cursorPointerPrefab = cursorPointer;
        playerMovement.playerColor         = playerColor;
        playerMovement.distanceTravelled   = 0f;

        //Setup Inventory references
        powerUpInventory = playerInstance.GetComponent <PowerUpInventory> ();
        powerUpInventory.playerNumber = playerNumber;
        GameManager.Instance.uiInventory.SetColor(playerNumber, playerColor);

        //Setup weapon controller script
        playerWeaponController = playerInstance.GetComponent <PlayerWeaponController>();
        playerWeaponController.setNumber(playerNumber);
        playerData      = playerInstance.GetComponent <PlayerData> ();
        playerSkin      = playerInstance.GetComponent <PlayerSkin> ();
        active          = true;
        movementEnabled = true;
    }
Exemplo n.º 4
0
    void Start()
    {
        //PlayerPrefs.SetInt("skinID", pc.skin);

        ps = FindObjectOfType <PlayerSkin>();
        pc = FindObjectOfType <PlayerController>();

        launch = Resources.Load <GameObject>("Prefabs/Effects/Projectiles/" + PlayerPrefs.GetInt("skinID"));
    }
Exemplo n.º 5
0
    public static void SavePlayerSkin(PlayerSkin playerSkin)
    {
        BinaryFormatter formatter  = new BinaryFormatter();
        string          filepath   = Application.persistentDataPath + "/skin.sav";
        FileStream      fileStream = new FileStream(filepath, FileMode.Create);
        SaveData        data       = new SaveData(playerSkin);

        formatter.Serialize(fileStream, data); //convert the data to binary and send it to the stream's filepath.
        fileStream.Close();
    }
Exemplo n.º 6
0
    float maxExp;                                                               // Experiencia máxima.

    void Awake()
    {
        //level = 1;                                                              // Fijar el nivel inicial del jugador.
        //currentExp = 0f;                                                        // Fijar la experiencia inicial del jugador.

        playerHealth = GetComponent <PlayerHealth>();                           // Componente de la salud del jugador.
        playerSkin   = GetComponent <PlayerSkin>();                             // Componente de la apariencia del jugador.
        playerAudio  = GetComponent <AudioSource>();                            // Componente del audio.
        //maxExp = 100f;                                                          // Fijar la experiencia máxima.
        expText.color = new Color(0, 0, 0, 1);
    }
Exemplo n.º 7
0
    public void SetupPlayerSkin()
    {
        currentPlayerSkin     = playerSkins[currentPlayerSkinIndex];
        weaponPositionsLenght = currentPlayerSkin.weaponPositions.Length;
        currentWeaponPosition = playerSkins[currentPlayerSkinIndex].weaponPositions[0];

        for (int i = 0, n = playerSkins.Length; i < n; i++)
        {
            playerSkins[i].playerSkin.SetActive(false);
        }

        playerSkins[currentPlayerSkinIndex].playerSkin.SetActive(true);
    }
Exemplo n.º 8
0
    void Start()
    {
        // PlayerPrefs.SetInt("skinID", skin);
        uc            = FindObjectOfType <UIController>();
        ec            = FindObjectOfType <EnemyController>();
        ps            = FindObjectOfType <PlayerSkin>();
        position      = 1;
        startGameplay = false;

        GameObject childObj = Instantiate(pyramids[PlayerPrefs.GetInt("skinID")], player.transform.position, player.transform.rotation) as GameObject;

        childObj.transform.parent = player.transform;
    }
Exemplo n.º 9
0
    public void Initialize(SkinScriptableObject newSkin, PlayerSkin playerForSkinIcon, RenderTexture skinIconRenderTexture)
    {
        busy = true;
        skin = newSkin;
        playerForSkinIcon.ChangeSkinTexture(newSkin.skinTexture);

        StartCoroutine(GenerateIcon(skinIconRenderTexture));

        /*
         * Texture2D skinTexture = RenderTextureToTexture2D(skinIconRenderTexture);
         * Sprite sprite = Sprite.Create(skinTexture, new Rect(0, 0, skinTexture.width, skinTexture.height), new Vector2(0.5f, 0.5f));
         * image.sprite = sprite;
         */
    }
Exemplo n.º 10
0
 void Start()
 {
     foreach (var skin in AllSkins)
     {
         var button = Instantiate(butttonPrefab, panel.transform);
         button.GetComponent <Image>().sprite = skin.roundSprite;
         var Changer = button.GetComponent <SkinChangerButtonScript>();
         Changer.skin   = skin;
         Changer.parent = this;
         button.GetComponent <RectTransform>().localScale = GetScale(skin.roundSprite) * skin.SelectButtonScale;
         Debug.Log(button.GetComponent <RectTransform>().localScale);
     }
     RandomSkin = AllSkins.Last();
     GameManager.firstPlayerSkin  = GetRandomSkin();
     GameManager.secondPlayerSkin = GetRandomSkin();
 }
Exemplo n.º 11
0
    /// <summary>
    /// Constructor
    /// </summary>
    private GameController_v7()
    {
        pauseController    = new PauseController_v2();
        spawnPointManager  = new SpawnPointManager_v2();
        objectStateManager = new ObjectStateManager();
        dialogueManager    = new DialogueManager_v2();
        lcdManager         = new LCDManager();

//		eventManager = new EventManager ();
        mobileUIManager           = new MobileUIManager();
        imageManager              = new ImageManager();
        blockManager              = new BlockManager();
        tutorialGlowManager       = new TutorialGlowManager();
        SceneManager.sceneLoaded += OnLevelFinishedLoading;

        roomsVisited    = 0;
        maxRoomsToVisit = 5;
        this.playerSkin = PlayerSkin.DEFAULT;
    }
    public void SetColor(int order)
    {
        if (skin)
        {
            Destroy(skin.gameObject);
        }

        skin = Instantiate <PlayerSkin>(playerSkins[order]);
        skin.transform.parent = transform;
        this.order            = order;

        // handle camera
        if (!photonView.IsMine)
        {
            playerCam.gameObject.SetActive(false);
        }
        else
        {
            playerCam.transform.parent        = skin.transform;
            playerCam.transform.localPosition = new Vector3(0f, 0f, -1f);
        }
    }
Exemplo n.º 13
0
 /// <summary>
 /// Sets the skin to be used by the player avatar.
 /// </summary>
 /// <param name="skin">Player Avatar Skin</param>
 public void SetPlayerSkin(PlayerSkin skin)
 {
     Debug.LogError("Set player skin");
     this.playerSkin = skin;
 }
Exemplo n.º 14
0
        private void SetView()
        {
            if (lane == null) return;

            if (LivingState == LivingState.Alive)
            {
                switch (lane.LaneKind)
                {
                    case LaneKind.DrownWater:
                        PlayerSkin = PlayerSkin.Normal; // bridge or boat or death
                        break;
                    case LaneKind.SwimWater:
                        PlayerSkin = PlayerSkin.Swimming;
                        break;
                    case LaneKind.Spaceship:
                        PlayerSkin = PlayerSkin.Spacesuit;
                        break;
                    case LaneKind.Train:
                    case LaneKind.Shinkansen:
                        PlayerSkin = PlayerSkin.TrainTrack;
                        break;
                    default :
                        PlayerSkin = PlayerSkin.Normal;
                        break;
                }
            }
            else if (LivingState == LivingState.Dying)
            {
                switch (lane.LaneKind)
                {
                    case LaneKind.SwimWater:
                        skipDeathMarker = true;
                        PlayerSkin = PlayerSkin.Drowning;
                        break;
                    case LaneKind.DrownWater:
                        if (isOnWater)
                        {
                            skipDeathMarker = true;
                            PlayerSkin = PlayerSkin.Drowning;
                        }
                        else
                        {
                            PlayerSkin = PlayerSkin.Tumbling;
                        }
                        break;
                    case LaneKind.Spaceship:
                        PlayerSkin = PlayerSkin.Spacesuit;
                        break;
                    default:
                        PlayerSkin = PlayerSkin.Tumbling;
                        break;
                }
            }
        }
Exemplo n.º 15
0
 public void Reset(float x, float y, float rot)
 {
     this.roundScore = 0;
     this.lane = null;
     this.playerSkin = PlayerSkin.None;
     this.isExploding = false;
     this.skipDeathMarker = false;
     this.autoCenterOnLane = true;
     this.dampingRatio = .7f;
     this.impulseScale = 50f;
     this.X = x;
     this.Y = y;
     this.Rotation = rot;
     this.SpeedLevel = SpeedLevel.Normal;
     lastStepPos = body.GetPosition();
     goalIsTop = !(lastStepPos.Y < this.screen.ClientSize.Y / 2);
     this.SpeedLevel = SpeedLevel.Normal;
     aboardVehicle = null;
     this.LivingState = LivingState.Alive;
 }
Exemplo n.º 16
0
 public SaveData(PlayerSkin playerSkin)
 {
     this.skinNum = playerSkin.GetSkinNum();
 }
Exemplo n.º 17
0
        public static void UserAccount(Player player)
        {
            var plId = User.GetServerId(player);

            if (!Sync.Data.Has(plId, "id"))
            {
                return;
            }

            PlayerSkin skin = new PlayerSkin
            {
                GTAO_SHAPE_FIRST_ID  = Sync.Data.Get(plId, "GTAO_SHAPE_FIRST_ID"),
                GTAO_SHAPE_SECOND_ID = Sync.Data.Get(plId, "GTAO_SHAPE_SECOND_ID"),
                GTAO_SHAPE_THRID_ID  = Sync.Data.Get(plId, "GTAO_SHAPE_THRID_ID"),
                GTAO_SKIN_FIRST_ID   = Sync.Data.Get(plId, "GTAO_SKIN_FIRST_ID"),
                GTAO_SKIN_SECOND_ID  = Sync.Data.Get(plId, "GTAO_SKIN_SECOND_ID"),
                GTAO_SKIN_THRID_ID   = Sync.Data.Get(plId, "GTAO_SKIN_THRID_ID"),
                GTAO_SHAPE_MIX       = Sync.Data.Get(plId, "GTAO_SHAPE_MIX"),
                GTAO_SKIN_MIX        = Sync.Data.Get(plId, "GTAO_SKIN_MIX"),
                GTAO_THRID_MIX       = Sync.Data.Get(plId, "GTAO_THRID_MIX"),
                GTAO_HAIR            = Sync.Data.Get(plId, "GTAO_HAIR"),
                GTAO_HAIR_COLOR      = Sync.Data.Get(plId, "GTAO_HAIR_COLOR"),
                GTAO_HAIR_COLOR2     = Sync.Data.Get(plId, "GTAO_HAIR_COLOR2"),
                GTAO_EYE_COLOR       = Sync.Data.Get(plId, "GTAO_EYE_COLOR"),
                GTAO_EYEBROWS        = Sync.Data.Get(plId, "GTAO_EYEBROWS"),
                GTAO_EYEBROWS_COLOR  = Sync.Data.Get(plId, "GTAO_EYEBROWS_COLOR"),
                GTAO_OVERLAY         = Sync.Data.Get(plId, "GTAO_OVERLAY"),
                GTAO_OVERLAY_COLOR   = Sync.Data.Get(plId, "GTAO_OVERLAY_COLOR"),
                GTAO_OVERLAY4        = Sync.Data.Get(plId, "GTAO_OVERLAY4"),
                GTAO_OVERLAY4_COLOR  = Sync.Data.Get(plId, "GTAO_OVERLAY4_COLOR"),
                GTAO_OVERLAY5        = Sync.Data.Get(plId, "GTAO_OVERLAY5"),
                GTAO_OVERLAY5_COLOR  = Sync.Data.Get(plId, "GTAO_OVERLAY5_COLOR"),
                GTAO_OVERLAY6        = Sync.Data.Get(plId, "GTAO_OVERLAY6"),
                GTAO_OVERLAY6_COLOR  = Sync.Data.Get(plId, "GTAO_OVERLAY6_COLOR"),
                GTAO_OVERLAY7        = Sync.Data.Get(plId, "GTAO_OVERLAY7"),
                GTAO_OVERLAY7_COLOR  = Sync.Data.Get(plId, "GTAO_OVERLAY7_COLOR"),
                GTAO_OVERLAY8        = Sync.Data.Get(plId, "GTAO_OVERLAY8"),
                GTAO_OVERLAY8_COLOR  = Sync.Data.Get(plId, "GTAO_OVERLAY8_COLOR"),
                GTAO_OVERLAY9        = Sync.Data.Get(plId, "GTAO_OVERLAY9"),
                GTAO_OVERLAY9_COLOR  = Sync.Data.Get(plId, "GTAO_OVERLAY9_COLOR"),
                GTAO_OVERLAY10       = Sync.Data.Get(plId, "GTAO_OVERLAY10"),
                GTAO_OVERLAY10_COLOR = Sync.Data.Get(plId, "GTAO_OVERLAY10_COLOR"),
                SEX = Sync.Data.Get(plId, "SEX")
            };


            Sync.Data.Set(plId, "skin", Main.ToJson(skin));

            string sql1 = "UPDATE users SET empty_col = 'null'";

            foreach (var property in typeof(PlayerData).GetProperties())
            {
                if (property.Name == "id" || property.Name == "password" || property.Name == "rp_name" || property.Name == "is_auth")
                {
                    continue;
                }
                if (property.Name == "car_id1_key" || property.Name == "car_id2_key" || property.Name == "car_id3_key" || property.Name == "car_id4_key" || property.Name == "car_id5_key" || property.Name == "car_id6_key" || property.Name == "car_id7_key" || property.Name == "car_id8_key")
                {
                    continue;
                }
                if (!Sync.Data.Has(plId, property.Name))
                {
                    continue;
                }

                var propertyValue = Sync.Data.Get(plId, property.Name);
                if (propertyValue is bool)
                {
                    propertyValue = propertyValue == true ? 1 : 0;
                }

                sql1 = sql1 + ", " + property.Name + " = '" + propertyValue + "'";
            }
            sql1 = sql1 + " where id = '" + (int)Sync.Data.Get(plId, "id") + "'";

            Appi.MySql.ExecuteQuery(sql1);

            /*return;
             *
             * string sql;
             *
             * sql = "UPDATE users SET";
             *
             * sql = sql + " car_id5 = '" + data.car_id5 + "'";
             * sql = sql + ", car_id4 = '" + data.car_id4 + "'";
             * sql = sql + ", car_id3 = '" + data.car_id3 + "'";
             * sql = sql + ", car_id2 = '" + data.car_id2 + "'";
             * sql = sql + ", car_id1 = '" + data.car_id1 + "'";
             * sql = sql + ", business_id = '" + data.business_id + "'";
             * sql = sql + ", id_house = '" + data.id_house + "'";
             * sql = sql + ", id_house = '" + data.id_house + "'";
             * sql = sql + ", posob = '" + (data.posob ? "1" : "0") + "'";
             * sql = sql + ", money_payday = '" + data.money_payday + "'";
             * sql = sql + ", money_bank = '" + data.money_bank + "'";
             * sql = sql + ", money = '" + data.money + "'";
             * sql = sql + ", health = '" + data.health + "'";
             * sql = sql + ", wanted_reason = '" + data.wanted_reason + "'";
             * sql = sql + ", wanted_level = '" + data.wanted_level + "'";
             * sql = sql + ", exp_age = '" + data.exp_age + "'";
             * sql = sql + ", age = '" + data.age + "'";
             * sql = sql + ", reg_time = '" + data.reg_time + "'";
             * sql = sql + ", reg_status = '" + data.reg_status + "'";
             * sql = sql + ", exp = '" + data.exp + "'";
             * sql = sql + ", job = '" + data.job + "'";
             * sql = sql + ", skin = '" + data.skin + "'";
             * sql = sql + ", med_vitamin = '" + data.med_vitamin + "'";
             * sql = sql + ", med_antibiotic = '" + data.med_antibiotic + "'";
             * sql = sql + ", med_antipyretic = '" + data.med_antipyretic + "'";
             * sql = sql + ", med_tablet_cough = '" + data.med_tablet_cough + "'";
             * sql = sql + ", med_vasoconstrictive = '" + data.med_vasoconstrictive + "'";
             * sql = sql + ", med_syrup = '" + data.med_syrup + "'";
             * sql = sql + ", med_carbon = '" + data.med_carbon + "'";
             * sql = sql + ", water_redbull = '" + data.water_redbull + "'";
             * sql = sql + ", water_cola = '" + data.water_cola + "'";
             * sql = sql + ", water_limonad = '" + data.water_limonad + "'";
             * sql = sql + ", water_tea = '" + data.water_tea + "'";
             * sql = sql + ", water_coffie = '" + data.water_coffie + "'";
             * sql = sql + ", water = '" + data.water + "'";
             * sql = sql + ", eat_veg = '" + data.eat_veg + "'";
             * sql = sql + ", eat_mre = '" + data.eat_mre + "'";
             * sql = sql + ", eat_rabbit = '" + data.eat_rabbit + "'";
             * sql = sql + ", eat_quesadilla = '" + data.eat_quesadilla + "'";
             * sql = sql + ", eat_roast = '" + data.eat_roast + "'";
             * sql = sql + ", eat_pizza = '" + data.eat_pizza + "'";
             * sql = sql + ", eat_hamburger = '" + data.eat_hamburger + "'";
             * sql = sql + ", eat_cesar = '" + data.eat_cesar + "'";
             * sql = sql + ", eat_roll = '" + data.eat_roll + "'";
             * sql = sql + ", eat_appi_pot = '" + data.eat_appi_pot + "'";
             * sql = sql + ", eat_appi_nuts = '" + data.eat_appi_nuts + "'";
             * sql = sql + ", eat = '" + data.eat + "'";
             * sql = sql + ", fuel_item = '" + data.fuel_item + "'";
             * sql = sql + ", jail_time = '" + data.jail_time + "'";
             * sql = sql + ", jailed = '" + (data.jailed ? "1" : "0") + "'";
             *
             * sql = sql + " where id = '" + data.id + "'";
             *
             * //Main.SaveLog("SQL", sql);
             * Appi.MySql.ExecuteQuery(sql);
             *
             *
             * sql = "UPDATE users SET";
             *
             * sql = sql + " toolskit = '" + data.toolskit + "'";
             * sql = sql + ", caroil = '" + data.caroil + "'";
             * sql = sql + ", picklock = '" + data.picklock + "'";
             * sql = sql + ", is_old_money = '" + (data.is_old_money ? "1" : "0") + "'";
             * sql = sql + ", is_buy_lic_sp = '" + (data.is_buy_lic_sp ? "1" : "0") + "'";
             * sql = sql + ", is_buy_mob_sp = '" + (data.is_buy_mob_sp ? "1" : "0") + "'";
             * sql = sql + ", is_buy_walkietalkie = '" + (data.is_buy_walkietalkie ? "1" : "0") + "'";
             * sql = sql + ", is_buy_mob = '" + (data.is_buy_mob ? "1" : "0") + "'";
             * sql = sql + ", walkietalkie_num = '" + data.walkietalkie_num + "'";
             * sql = sql + ", phone = '" + data.phone + "'";
             * sql = sql + ", phone_code = '" + data.phone_code + "'";
             * sql = sql + ", bank_number = '" + data.bank_number + "'";
             * sql = sql + ", bank_prefix = '" + data.bank_prefix + "'";
             * sql = sql + ", helper_level = '" + data.helper_level + "'";
             * sql = sql + ", admin_level = '" + data.admin_level + "'";
             * sql = sql + ", tag = '" + data.tag + "'";
             * sql = sql + ", rank = '" + data.rank + "'";
             * sql = sql + ", fraction_id = '" + data.fraction_id + "'";
             * sql = sql + ", warn = '" + data.warn + "'";
             * sql = sql + ", date_mute = '" + data.date_mute + "'";
             * sql = sql + ", date_ban = '" + data.date_ban + "'";
             * sql = sql + ", last_login = '******'";
             * sql = sql + ", sick_poisoning = '" + data.sick_poisoning + "'";
             * sql = sql + ", sick_cold = '" + data.sick_cold + "'";
             * sql = sql + ", temp_level = '" + data.temp_level + "'";
             * sql = sql + ", health_level = '" + data.health_level + "'";
             * sql = sql + ", water_level = '" + data.water_level + "'";
             * sql = sql + ", eat_level = '" + data.eat_level + "'";
             * sql = sql + ", animal_name = '" + data.animal_name + "'";
             * sql = sql + ", animal = '" + data.animal + "'";
             * sql = sql + ", vip_time = '" + data.vip_time + "'";
             * sql = sql + ", vip_status = '" + data.vip_status + "'";
             * sql = sql + ", weapons = '" + data.weapons + "'";
             * sql = sql + ", guns = '" + data.guns + "'";
             * sql = sql + ", drug_marg = '" + data.drug_marg + "'";
             * sql = sql + ", drugs = '" + data.drugs + "'";
             * sql = sql + ", foot_color = '" + data.foot_color + "'";
             * sql = sql + ", foot = '" + data.foot + "'";
             * sql = sql + ", parachute_color = '" + data.parachute_color + "'";
             * sql = sql + ", parachute = '" + data.parachute + "'";
             * sql = sql + ", hand_color = '" + data.hand_color + "'";
             * sql = sql + ", hand = '" + data.hand + "'";
             * sql = sql + ", leg_color = '" + data.leg_color + "'";
             * sql = sql + ", leg = '" + data.leg + "'";
             * sql = sql + ", torso_color = '" + data.torso_color + "'";
             * sql = sql + ", torso = '" + data.torso + "'";
             * sql = sql + ", body_color = '" + data.body_color + "'";
             * sql = sql + ", body = '" + data.body + "'";
             * sql = sql + ", head_color = '" + data.head_color + "'";
             * sql = sql + ", head = '" + data.head + "'";
             * sql = sql + ", story_1 = '" + data.story_1 + "'";
             * sql = sql + ", story_timeout_1 = '" + data.story_timeout_1 + "'";
             * sql = sql + ", sell_car_time = '" + data.sell_car_time + "'";
             * sql = sql + ", sell_car = '" + (data.sell_car ? "1" : "0") + "'";
             *
             * sql = sql + " where id = '" + data.id + "'";
             *
             * //Main.SaveLog("SQL", sql);
             * Appi.MySql.ExecuteQuery(sql);
             *
             *
             * sql = "UPDATE users SET";
             *
             * sql = sql + " count_aask = '" + data.count_aask + "'";
             * sql = sql + ", count_hask = '" + data.count_hask + "'";
             * sql = sql + ", skill_shop = '" + data.skill_shop + "'";
             * sql = sql + ", skill_scrap = '" + data.skill_scrap + "'";
             * sql = sql + ", skill_builder = '" + data.skill_builder + "'";
             * sql = sql + ", house_grab = '" + data.house_grab + "'";
             * sql = sql + ", referer = '" + data.referer + "'";
             * sql = sql + ", mailhouses = '" + data.mailhouses + "'";
             * sql = sql + ", ip_last = '" + data.ip_last + "'";
             * sql = sql + ", s_lang = '" + data.s_lang + "'";
             * sql = sql + ", s_is_characher = '" + (data.s_is_characher ? "1" : "0") + "'";
             * sql = sql + ", s_is_load_blip_house = '" + (data.s_is_load_blip_house ? "1" : "0") + "'";
             * sql = sql + ", s_is_pay_type_bank = '" + (data.s_is_pay_type_bank ? "1" : "0") + "'";
             * sql = sql + ", law_lic = '" + (data.law_lic ? "1" : "0") + "'";
             * sql = sql + ", gun_lic = '" + (data.gun_lic ? "1" : "0") + "'";
             * sql = sql + ", psy_lic = '" + (data.psy_lic ? "1" : "0") + "'";
             * sql = sql + ", ship_lic = '" + (data.ship_lic ? "1" : "0") + "'";
             * sql = sql + ", taxi_lic = '" + (data.taxi_lic ? "1" : "0") + "'";
             * sql = sql + ", air_lic = '" + (data.air_lic ? "1" : "0") + "'";
             * sql = sql + ", heli_lic = '" + (data.heli_lic ? "1" : "0") + "'";
             * sql = sql + ", c_lic = '" + (data.c_lic ? "1" : "0") + "'";
             * sql = sql + ", b_lic = '" + (data.b_lic ? "1" : "0") + "'";
             * sql = sql + ", a_lic = '" + (data.a_lic ? "1" : "0") + "'";
             * sql = sql + ", allow_marg = '" + (data.allow_marg ? "1" : "0") + "'";
             *
             * sql = sql + " where id = '" + data.id + "'";
             *
             * //Main.SaveLog("SQL", sql);
             * Appi.MySql.ExecuteQuery(sql);*/
        }