wield.txt
snippets · 718 B · 2010-03-30
Wield check: makes Buddha check an object's minimum level when players grab or wield it.
Download « Back to the snippets list
Now I noticed, that buddha didn't have it check objects min level when players tried to grab or wield the item. So, here's the snippet to make them check:
-Rikishi
1. Open act.item.c, and find do_wield, now find send_to_char(ch, "It's too heavy for you to use.\r\n"); under that add:
else if (GET_LEVEL(ch) < GET_OBJ_LEVEL(obj))
send_to_char(ch, "Your not a high enough level to equip.\r\n");
2.With act.item.c still open find do_grab, now find send_to_char(ch, "You don't seem to have %s %s.\r\n", AN(arg), arg); under that add:
else if(GET_LEVEL(ch) < GET_OBJ_LEVEL(obj))
send_to_char(ch, "Your not a high enough level to equip this.\r\n");
3. now close and compile :)