public static void loadScriptsFile(String name)
    {
        try {
            File f = new File(name);
            DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
            DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
            Document doc = dBuilder.parse(f);
            doc.getDocumentElement().normalize();
            
            NodeList nList = doc.getElementsByTagName("action");

            for (int temp = 0; temp < nList.getLength(); temp++) {
                LuaActionScript scr = new LuaActionScript();
                Node nNode = nList.item(temp);

                if (nNode.getNodeType() == Node.ELEMENT_NODE) {
                    Element eElement = (Element) nNode;
                    if(eElement.hasAttribute("itemid"))
                        scr.itemid = Integer.parseInt(eElement.getAttribute("itemid"));
                    if(eElement.hasAttribute("actionid"))
                        scr.actionid = Integer.parseInt(eElement.getAttribute("actionid"));
                    if(eElement.hasAttribute("uniqueid"))
                        scr.uniqueid = Integer.parseInt(eElement.getAttribute("uniqueid"));
                    scr.type = TYPE.find(eElement.getAttribute("type"));
                    scr.name = eElement.getAttribute("name");
                }
            }
            
            
        } catch (Exception e) {
          e.printStackTrace();
        }
    }