What steps will reproduce the problem?
1. Create new type of NPC with @addnpc foo
2. Try to bring a new foo to life with @clone foo
3. Client is disconnected due to error
'NoneType' object is unsubcriptable
at admin.py line 178
What is the expected output? What do you see instead?
expected: foo has been cloned
got: client gets disconnected
What version of the product are you using? On what operating system?
svn r29 on Ubuntu Linux
Please provide any additional information below.
replace this line in admin.py at about line 178--
Insert.cloneItem(self.obj[0], session.p_id, time.time())
with:
Insert.cloneNpc(self.npc[0], session.p_id, time.time())
and you can then clone NPCs.
Original issue reported on code.google.com by
miss...@hotmail.comon 15 Nov 2008 at 9:56