How to use the GetCraftsInfo function from bindings

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

31
32
33
34
35
36
37
38
39
40

cga.getItemCraftInfo = function(itemname){
        var skills = cga.GetSkillsInfo();
        for(var i in skills){
                if(skills[i].type == 1){
                        var crafts = cga.GetCraftsInfo(skills[i].index);
                        for(var j in crafts){
                                if(crafts[j].name == itemname){
                                        return {skill : skills[i], craft : crafts[j]};
                                }
fork icon35
star icon0
watch icon1

+ 3 other calls in file

Other functions in bindings

Sorted by popularity

function icon

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