he also compiled a legal code based in the indian dharmshastra [a hindu legal text] and thai custom which became the basis of royal legislation composed in pali an indo aryan langague of the theravada buddhist scriptures it had the force of divine injunction