Page 1 of 1
Search and move corpses
Posted: Fri Mar 28, 2008 5:17 am
by westrupp
This script search and print name of corpse but dont move corpse, i already tryied others sintaxes but dont work, any have ideia?
Code: Select all
foreach corpse in ListItemsNearLocationOfType( coords.x, coords.y, coords.z, 5, UOBJ_CORPSE )
PrintTextAbovePrivate( corpse, corpse.desc, character );
MoveItemToLocation(corpse, obj.x, obj.y, obj.z , MOVEITEM_FORCELOCATION);
endforeach
Thanks,
Posted: Fri Mar 28, 2008 5:21 am
by ncrsn
That does not make sense.
I don't know what the obj is, but try this snippet instead:
Code: Select all
foreach corpse in ListItemsNearLocationOfType( coords.x, coords.y, coords.z, 5, UOBJ_CORPSE )
PrintTextAbovePrivate( corpse, corpse.desc, character );
MoveItemToLocation(corpse, obj.x, obj.y, obj.z , MOVEITEM_FORCELOCATION);
endforeach
Posted: Fri Mar 28, 2008 5:42 am
by westrupp
ncrsn wrote:That does not make sense.
I don't know what the obj is, but try this snippet instead:
I not in my home now and make this new script i forget change name of variable but already tryed this and dont work, he still dont move corpses...

Posted: Fri Mar 28, 2008 6:01 am
by ncrsn
Corpses are unmovable by default; thus.
Code: Select all
foreach corpse in ListItemsNearLocationOfType( coords.x, coords.y, coords.z, 5, UOBJ_CORPSE )
PrintTextAbovePrivate( corpse, corpse.desc, character );
corpse.movable := 1;
MoveItemToLocation(corpse, obj.x, obj.y, obj.z , MOVEITEM_FORCELOCATION);
corpse.movable := 0;
endforeach
That should do.
Posted: Fri Mar 28, 2008 6:37 am
by westrupp
thanks for the hinkt, i try this...
Posted: Fri Mar 28, 2008 11:52 pm
by westrupp
ncrsn wrote:Corpses are unmovable by default; thus.
Code: Select all
foreach corpse in ListItemsNearLocationOfType( coords.x, coords.y, coords.z, 5, UOBJ_CORPSE )
PrintTextAbovePrivate( corpse, corpse.desc, character );
corpse.movable := 1;
MoveItemToLocation(corpse, obj.x, obj.y, obj.z , MOVEITEM_FORCELOCATION);
corpse.movable := 0;
endforeach
That should do.
this work perfect, thanks...
any idea how equip items from corpse?