ArcanixIncantrix wrote...
So I've tested the script but it doesn't seem to be working.
When I destroy the crates, no gold is spawned.
This is what I have at the moment:
void main()
{
int nValue = Random(90)+10; // Range 10-99
CreateItemOnObject("goldpiece", OBJECT_SELF, nValue); // Create Gold Peices where object was destroyed.
}
Your problem is that there is no item with a resref of goldpiece
you need to use the resref of the item that already exsists or create an new item with the goldpiece resref useing the item wizard.
So the script looks like with an update to take care of the one gold that 420 is worried about.
void main()
{
int nValue = Random(91)+10; // Range 10-100
CreateItemOnObject("nw_it_gold001", OBJECT_SELF, nValue); // Create Gold Peices on the object before it is killed
}
Aslo the [ nwscript] dose not work on the social site. I normally just use the [ code] bbcode.
Modifié par Lightfoot8, 09 janvier 2011 - 03:30 .