this script is spawning a key, to do something else, just replace the 31 into tne npc's id https://dc597.4shared.com/img/d9Y6JBr3ee/16336924268/loot1 https://dc586.4shared.com/img/qn7NJPCxfi/163369261a8/loot2 with npc(Sysval(param1)) call ncreate(31, .x, .y, 0, 0, 0, 0) end with