mob proc Medals() if(src.Yens<100) var/MedalYens = world.GetMedal("First Level!", usr) if(MedalYens) src.Yens=100
The proc calls more medals (4). It works perfectly when I'm on my server, I deleted a lot of times the Saves and it still gave me the medals back when I logged in! I even added a small code to make sure the proc was called so it'd be displayed on Chat, but when I logged in different servers (with the updated version), it didn't seem to work. Every HUB Detail is perfectly written in the source, so I doubt it's a problem with the medals / hub issues. Please, does somebody know how can I fix this? Thank you so much.
</100>
<code>if(Yens < 100 && world.GetMedal("Medal", key)) { Yens = 100 }</code>
It'll shorten your code by 3 lines.
Edit: Why are you setting medals using the <code>usr</code> instead of their <code>key</code>?