Here is what I did to convert APPLY_LEVEL to a minlevel varible.
I perform_wear I placed.
for(ctr = 0; ctr < MAX_OBJ_AFFECT;ctr++){
if((obj->affected[ctr].location == APPLY_LEVEL) &&
(obj->affected[ctr].modifier > GET_LEVEL(ch))){
sprintf(buft, "You must be at least level %d to use that
item.",obj->affected[ctr].modifier);
send_to_char(buft,ch);
return;
}
}
______________________________ __ _ _
|TDRD tdlord@elite.net
|QuakeWorld TF2.7 PUBLIC: quake.elite.net ten.bigcity.net
|Irc : irc.elite.net irc.lowrider.com
|MUD : mud.elite.net 4000 HaqMUD
|Clan Epidemic
|Clan Infinity
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST