Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Save (gtx)
- xmlSaveFile(gtx)
- outputChatBox("True")
- end
- addCommandHandler("savexml",Save)
- local CLD = {
- {x=384.37130737305, y=2532.0554199219, z=16.546672821045, rx=384.37130737305, ry=2532.0554199219, rz=16.546672821045, dim=0},
- {x=321.30685424805, y=2539.3508300781, z=16.809648513794, rx=321.30685424805, ry=2539.3508300781, rz=16.809648513794, dim=0},
- }
- local Num = {
- {id=0},
- --{id=1},
- --{id=2},
- }
- function onDA()
- gtx = xmlLoadFile("dclas.xml")
- for a,b in pairs(CLD) do
- for g,v in pairs(Num) do
- troot = xmlFindChild ( gtx, "base", 0 )
- xmlSaveFile(gtx)
- xmlNodeSetAttribute(troot,"pos="..tostring(b["x"])..",".. tostring(b["y"])..","..tostring(b["z"]))
- outputChatBox("True")
- outputChatBox("pos="..tostring(b["x"])..",".. tostring(b["y"])..","..tostring(b["z"]))
- end
- end
- end
- addCommandHandler("Convert",onDA)
Advertisement
Add Comment
Please, Sign In to add comment