How to use the findPlayerSkill function from bindings

Find comprehensive JavaScript bindings.findPlayerSkill code examples handpicked from public code repositorys.

45
46
47
48
49
50
51
52
53
54
}

//鉴定物品,参数:物品位置
//返回:true / false
cga.assessItem = function(itempos){
        var skill = cga.findPlayerSkill('鉴定');
        if(skill){
                if(cga.StartWork(skill.index, 0))
                        return cga.AssessItem(skill.index, itempos);
        }
fork icon35
star icon0
watch icon1

+ 3 other calls in file

118
119
120
121
122
123
124
125
126
127
}

//修理武器,参数:物品位置
//返回:true / false
cga.repairWeapon = function(itempos){
        var skill = cga.findPlayerSkill('修理武器');
        if(skill){
                if(cga.StartWork(skill.index, 0))
                        return cga.AssessItem(skill.index, itempos);
        }
fork icon33
star icon0
watch icon0

+ 11 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)