Quote: "But I want the item to be dropped appears in the same square where the enemy dies"
That's the difficult part and I don't think it's possible.
Having the player drop something is possible but not an NPC.
Addendum:
We have a start because we can find out where the NPC is when he dies by using the internal variables, $EPX, $EPY, and $EPZ. I at least think we can have that information. But next we have to figure out a way to move an entity to that position. First the entity has to be in the map somewhere. You can either hide it or have it invisible. Best way is to hide it perhaps. Then we need to move it to the NPC's position. I don't think there is a scripting command to do that.But, I'm not sure yet. It would probably have to be modded.
Addendum #2:
Yes, I'm sure someone would have to create commands to move the entity that is to be dropped. We would know the name of the entity, find it in the entity element list by it's name. Then perhaps using that entity elements x, y, and z it can be changed to match the NPC's position. However, I'm not sure that this would automatically move the entity to the NPC's position. There might be more code that needs to be executed.
So, none of this is in the scripting langauage. This would all have to be created in the FPSC engine as individual scripting commands.

Anyone game? :LOL:
"A programmer is just a tool which converts caffeine into code . . . reminds me….. if I had one more brain cell, I could have a synapse! woo hoo, Sparky!
~I'm the Terry of the Flatlands.