Did you make it to the vet?
That doesn't look like worms to me, really. It looks like a possible hardened sperm/seminal plug or maybe a urate plug.
You can try soaking him to see if they soften up enough to come out with a stool possibly.
Definitely let us know how it goes! I honestly think that it will be a sperm/seminal type of plug or a urate plug, but I am leaning more to a sperm/seminal plug. It should work itself out or maybe the vet can manually help him out too. I hope it goes well.
That is 1 unhealthy dragon.
What I see just from the picture is a dehydrated animal with either a burned or nacrotic foot.
The femoral pores are clogged and that does look like a seminal plug that has dried out.
I just learned of clogged femoral pores myself and ive been doing this for some time.
I hope the vet is a good one.
Keep us posted and good luck.
i never knew they could get burn from the heat rock he lives on that thing i just unplugged it he alwees has lots of food and water ill see what the vet say thanks for all the help what should i do about the heat rock?