If you don't set the charmfile on an item it won't scale because the script is never called.
What is the trouble you're having setting the charmfile field on the item? If you use eqitems you can just type it in the box, or you can use a sql query to set it.
When you talk about using a local variable defined in another script it makes me think you really don't understand how perl works. Those variables are defined in that script to be used there, they are not global and can't be used elsewhere.
Without seeing your npc script I won't even try to guess at whatever that problem might be.
|